simulation.src.simulation_evaluation.src.speaker.node module¶
ROS node that connects multiple speakers to ROS topics.
Reference¶
-
class
SpeakerNode[source]¶ Bases:
simulation.utils.ros_base.node_base.NodeBaseROS node that integrates all speakers into the ROS framework.
-
speakers¶ All speakers with their message type and a publisher that publishes messages created by the speaker.
- Type
List[Tuple[Speaker, rospy.Message, rospy.Publisher]]
-
subscriber¶ Receive CarState messages with position and speed of the car.
- Type
rospy.Subscriber
-
section_proxy, lane_proxy, parking_proxy, obstacle_proxy, intersection_proxy Proxies that the speakers need to request groundtruth information.
- Type
rospy.ServiceProxy
-
carstate_cb(msg: gazebo_simulation.msg._CarState.CarState)[source]¶ Receive CarState message and pass it to all speakers.
- Parameters
msg – New CarState message
-