21 #include <std_msgs/Float32.h>
22 #include <std_msgs/Float64.h>
23 #include <std_msgs/String.h>
24 #include <std_msgs/Int8.h>
25 #include <std_msgs/Int64.h>
26 #include <std_msgs/Bool.h>
27 #include <rosgraph_msgs/Clock.h>
28 #include <nav_msgs/Odometry.h>
29 #include <tf2/LinearMath/Quaternion.h>
30 #include <geometry_msgs/Pose.h>
31 #include <geometry_msgs/Twist.h>
67 return new MotionCommandReader(
n_,
"FUN/MotionCommand/acceleration",
"FUN/MotionCommand/steeringAngle",1);
73 std_msgs::Int8ConstPtr,
84 return new MotionStateWriter(
n_,
"utm",
"SIM/state",
"VEH/steering_angle_measured",
"VEH/ax",1);
106 "VEH/AutomaticControlState/acceleration",
107 "VEH/AutomaticControlState/accelerationActive",
108 "VEH/AutomaticControlState/steering",
109 "VEH/IndicatorState/left",
110 "VEH/IndicatorState/right",
111 "VEH/Checkpoints/clearance",
136 geometry_msgs::PoseConstPtr,
143 geometry_msgs::TwistConstPtr,
156 geometry_msgs::Twist,
172 adore_if_ros_msg::SimResetVehicleDimensions,
179 adore_if_ros_msg::SimResetVehicleDimensionsConstPtr,
186 adore_if_ros_msg::TrafficParticipantSet,
193 adore_if_ros_msg::TrafficParticipantSimulation,
Definition: ros_com_patterns.h:32
Definition: indicatorcommandconverter.h:72
Definition: motioncommandconverter.h:70
Definition: funvehiclemotionstateconverter.h:47
Definition: funvehiclemotionstateconverter.h:416
Definition: ros_com_patterns.h:113
Definition: simfactory.h:54
virtual TClockTimeWriter * getClockTimeWriter() override
write clock time
Definition: simfactory.h:127
virtual TVehicleMotionStateWriter * getOdometryEstimatedVehicleStateWriter() override
write updates on the odometry estimated vehicle motion state
Definition: simfactory.h:87
virtual TVehicleTwistResetWriter * getVehicleTwistResetWriter() override
send simulation commands for vehicle speed resetting
Definition: simfactory.h:153
virtual TVehicleDimensionsResetFeed * getVehicleDimensionsResetFeed() override
receive simulation commands for resetting vehicle dimensions
Definition: simfactory.h:176
SIM_Factory(ros::NodeHandle *n)
Definition: simfactory.h:58
virtual TParticipantWriter * getParticipantWriter() override
send ego state to simulation feed
Definition: simfactory.h:190
virtual TMotionCommandReader * getMotionCommandReader() override
read a motion command
Definition: simfactory.h:65
ros::NodeHandle * n_
Definition: simfactory.h:56
virtual TSimulationTimeWriter * getSimulationTimeWriter() override
write the simulation time
Definition: simfactory.h:121
virtual TVehicleMotionStateWriter * getLocalizationEstimatedVehicleStateWriter() override
write updates on the localization estimated vehicle motion state
Definition: simfactory.h:92
virtual TIndicatorCommandReader * getIndicatorCommandReader() override
read an indicator command
Definition: simfactory.h:77
virtual adore::mad::AWriter< adore::env::SimTrafficLight > * getTrafficLightWriter() override
send simulated traffic light states
Definition: simfactory.h:205
virtual TParticipantFeed * getParticipantFeed()
get state updates from all vehicles
Definition: simfactory.h:197
virtual TSimulationTimeReader * getSimulationTimeReader() override
read the simulation time
Definition: simfactory.h:115
virtual TParticipantSetWriter * getParticipantSetWriter() override
send simulated sensor data
Definition: simfactory.h:183
virtual TGearSelectionCommandReader * getGearSelectionCommandReader() override
read a gear selection command
Definition: simfactory.h:70
virtual TVehicleMotionStateWriter * getVehicleMotionStateWriter() override
write updates on the true vehicle motion state
Definition: simfactory.h:82
virtual TSimulationIDResetFeed * getSimulationIDResetFeed() override
send simulation commands for resetting simulation id and v2xstation id
Definition: simfactory.h:160
virtual TVehicleExtendedStateWriter * getVehicleExtendedStateWriter() override
write updates on the vehicle extended state (buttons, etc.)
Definition: simfactory.h:102
virtual TV2XStationIDResetFeed * getV2XStationIDResetFeed() override
read simulation commands for v2x station id resetting
Definition: simfactory.h:164
virtual TVehicleDimensionsResetWriter * getVehicleDimensionsResetWriter(std::string ns) override
send simulation commands for resetting vehicle dimensions
Definition: simfactory.h:169
virtual adore::mad::AReader< adore::env::SimTrafficLightMap > * getTrafficLightReader() override
receive simulated traffic light states
Definition: simfactory.h:210
virtual TVehiclePoseResetWriter * getVehiclePoseResetWriter() override
Definition: simfactory.h:147
virtual TVehicleMotionStateReader * getVehicleMotionStateReader() override
read updates on the true vehicle motion state
Definition: simfactory.h:97
virtual adore::mad::AWriter< int64_t > * getTransformIDtoAdoreWriter()
send id of vehicle to transform
Definition: simfactory.h:215
virtual TVehicleTwistResetFeed * getVehicleTwistResetFeed() override
read simulation commands for vehicle speed resetting
Definition: simfactory.h:140
virtual TVehiclePoseResetFeed * getVehiclePoseResetFeed() override
read simulation commands for vehicle position and orientation resetting
Definition: simfactory.h:133
Definition: trafficparticipantconverter.h:119
Definition: trafficparticipantconverter.h:200
Definition: trafficlightsimconverter.h:90
Definition: trafficlightsimconverter.h:32
Definition: trafficsimulationfeed.h:25
Definition: funvehiclemotionstateconverter.h:347
Definition: ros_com_patterns.h:153
abstract factory for adore::sim communication
Definition: afactory.h:43
std::vector< Participant > TParticipantSet
Definition: participant.h:164
Definition: areaofeffectconverter.h:20
Struct for representing a participant in traffic.
Definition: participant.h:30
Definition: gearselectioncommand.h:26
Definition: clocktimeconverter.h:25
Definition: gearselectioncommandconverter.h:39
Definition: simresetvehicledimensionsconverter.h:24
Definition: simvehicleresetconverter.h:33
provides encapsulation of values needed to reset the vehicle dimensions in a simulation
Definition: resetvehicledimensions.h:26
provides encapsulation of values needed to reset the vehicle pose in a simulation
Definition: resetvehiclepose.h:26
provides encapsulation of values needed to reset the vehicle twist (vx,vy and omega) in a simulation
Definition: resetvehicletwist.h:26