Skip to content

ROS 2 Topics#

This page lists the topics of the ROS 2 workspace. The bridge sim_bridge (package acres_sim) publishes the topics of a simulated vehicle. The vehicle node vehicle_node (package acres_vehicle) reads the topics of the Polaris and writes its commands.

Sources: Vehicle/ROS/acres_sim/src/vehicle_bridge.cpp, Vehicle/ROS/acres_sim/src/sim_control.cpp, Vehicle/ROS/acres_vehicle/src/vehicle_node.cpp.

A topic without a leading / is relative to the namespace of the bridge. With agents:=auto, agent 0 uses the namespace of the node and each other agent uses the namespace of its name.

The Polaris (vehicle:=polaris)#

Topic Type Direction
vehicle/odom nav_msgs/Odometry Out
oxts/imu sensor_msgs/Imu Out
oxts/velocity geometry_msgs/TwistStamped Out
oxts/fix sensor_msgs/NavSatFix Out
oxts/ncom oxts_msgs/Ncom Out, with ncom:=true
sim/ground_truth/odom nav_msgs/Odometry Out
vehicle/steering/report, vehicle/throttle/report, vehicle/brake/report, vehicle/gear/report, vehicle/ulc/report ds_dbw_msgs reports Out
vehicle/vehicle_velocity ds_dbw_msgs/VehicleVelocity Out
vehicle/dbw_enabled std_msgs/Bool Out
vehicle/steering/cmd, vehicle/throttle/cmd, vehicle/brake/cmd, vehicle/gear/cmd, vehicle/ulc/cmd ds_dbw_msgs commands In
vehicle/enable, vehicle/disable std_msgs/Empty In

The Maxxum (vehicle:=maxxum)#

Topic Type Direction
odom, ground_truth/odom nav_msgs/Odometry Out
imu/data sensor_msgs/Imu Out
gnss/fix sensor_msgs/NavSatFix Out
engine_rpm, steering_angle std_msgs/Float32 Out
implement/state std_msgs/String Out
cmd_vel geometry_msgs/Twist In
guidance/curvature_cmd, speed_cmd, hitch/lever_cmd, hand_throttle_cmd std_msgs/Float32 In
hitch/raise_cmd, pto/cmd std_msgs/Bool In
implement/cmd std_msgs/String In: the keys of the JSON key implement of the game (AcresRlBridge.h) as a JSON text
implement/command acres_interfaces/ImplementCmd In: the same commands as typed fields. The field set names the fields that are commands. The game and the CAN rig of the Case tractor use the same message.
can/rx can_msgs/Frame Out, with can_udp_port:=PORT
can/tx can_msgs/Frame In, with can_udp_port:=PORT

Both Vehicles#

Topic Type Direction
lidar/points sensor_msgs/PointCloud2 Out
camera/image_raw, camera_rear/image_raw sensor_msgs/Image Out
camera/camera_info, camera_rear/camera_info sensor_msgs/CameraInfo Out
sim/reset geometry_msgs/PoseStamped In: puts the vehicle at a pose
/clock rosgraph_msgs/Clock Out, from one bridge (publish_clock:=true)
/sim/episode acres_interfaces/Episode Out, from the simulator control client. Reliable, transient local.

The Vehicle Node#

The node reads /oxts/ncom, /vehicle/odom, /lidar/points, /oxts/fix, /vehicle/steering/report, /vehicle/gear/report, /vehicle/vehicle_velocity, /vehicle/wheel_speeds, /vehicle/dbw_enabled and /safety_stop. With the parameter bag, it reads a recording and has no subscription.

Topic Type Direction
/vehicle/steering/cmd, /vehicle/ulc/cmd ds_dbw_msgs Out, only with drive:=true
/vehicle/gear/cmd ds_dbw_msgs/GearCmd Out, only with gear:=node
~/status, ~/verdicts, ~/skill_counters std_msgs/String Out
~/proposer_observation, ~/proposer_pose std_msgs/Float64MultiArray Out
~/proposal std_msgs/Float64MultiArray In: a proposed path chunk
/acres/observation, /acres/clock, /acres/events std_msgs/String (JSON) Out, with skills:=true

The action /acres/skill is on ROS 2 Services and Actions.

Episode Log Channels#

The episode log is an MCAP file of ROS 2 messages. The game and ACRES Core write the same channels. The messages are in the package acres_interfaces (Messages).

Channel Message Content
/sim/episode Episode The episode, the reset epoch, the step, the seed, the map and the agents.
/sim/agents Agents (of AgentInfo) The agents of the session.
/sim/agent_states AgentStates (of AgentState, with EnergyLedger) The state of each agent at the physics rate.
/sim/farm_events FarmEvents (of FarmEvent) The events of the farm.
/sim/farm_stamps FarmStamps (of FarmStamp) The stamps of the wheels, the body and the field work.
/sim/conditions Conditions The weather, the clock and the soil water.
/sim/shifts VehicleShifts (of VehicleShift) The hardware shifts of the vehicles.
/sim/task TaskStatus The status of the task.
/sim/objects PathObjects (of PathObject) The objects on the path.
/sim/object_contacts ObjectContact The contacts of a vehicle with an object.

Source: Game/Source/Acres/AcresEpisodeLog.h. Tests/Game/EpisodeLog/check_ros.py checks that ROS 2 reads the file. The service FarmState uses the message FieldState.