18 KiB
18 KiB
ROS 2 Topics & Services
| Symbol | Meaning |
|---|---|
| 🤖 | Available for physical robot |
| 🖥️ | Available in simulation |
| ⚙️ | Requires specific configuration |
Topics
| 🤖 | 🖥️ | Topic | Description |
|---|---|---|---|
| ✅ | ✅ | battery/battery_status |
Mean values of both batteries will be published if the robot has two batteries. Otherwise, the state of the single battery will be published. sensor_msgs/BatteryState |
| ✅ | ❌ | battery/charging_status |
Battery charging status value. husarion_ugv_msgs/ChargingStatus |
| ✅ | ✅ | cmd_vel |
Command velocity value. geometry_msgs/TwistStamped |
| ✅ | ✅ | diagnostics |
Diagnostic data. diagnostic_msgs/DiagnosticArray |
| ✅ | ✅ | dynamic_joint_states |
Information about the state of various movable joints in a robotic system. control_msgs/DynamicJointState |
| ✅ | ✅ | ⚙️ gps/filtered ⚙️ |
Filtered GPS position after fusing odometry data. sensor_msgs/NavSatFix |
| ✅ | ✅ | ⚙️ gps/fix ⚙️ |
Raw GPS data. sensor_msgs/NavSatFix |
| ✅ | ❌ | gps/time_reference |
The timestamp from the GPS device. sensor_msgs/TimeReference |
| ✅ | ❌ | gps/vel |
Velocity output from the GPS device. geometry_msgs/TwistStamped |
| ✅ | ✅ | hardware/e_stop |
Current E-stop state. std_msgs/Bool. |
| ✅ | ❌ | hardware/io_state |
Current IO state. husarion_ugv_msgs/IOState |
| ✅ | ✅ | hardware/robot_driver_state |
Current motor controllers' state and error flags. Subscribed if using Roboteq motor controllers data. husarion_ugv_msgs/RobotDriverState |
| ✅ | ✅ | imu/data |
Filtered IMU data. sensor_msgs/Imu |
| ✅ | ✅ | joint_states |
Provides information about the state of various joints in a robotic system. sensor_msgs/JointState |
| ✅ | ✅ | lights/channel_1_frame |
Frame to be displayed on robot Front Bumper Lights. sensor_msgs/Image |
| ✅ | ✅ | lights/channel_2_frame |
Frame to be displayed on robot Rear Bumper Lights. sensor_msgs/Image |
| ✅ | ✅ | localization/set_pose |
Sets the pose of the EKF node. geometry_msgs/PoseWithCovarianceStamped |
| ✅ | ✅ | odometry/filtered |
Contains information about the filtered position and orientation. When localization_mode is relative, the position and orientation are relative to the starting point. When localization_mode is enu, the orientation is relative to the east-north-up (ENU) coordinates.nav_msgs/Odometry |
| ✅ | ✅ | odometry/wheels |
Robot odometry calculated from wheels. nav_msgs/Odometry |
| ✅ | ✅ | robot_description |
Contains information about robot description from URDF file. std_msgs/String |
| ✅ | ❌ | system_status |
State of the system, including Built-in Computer's CPU temperature and load. husarion_ugv_msgs/SystemStatus |
| ✅ | ✅ | tf |
Transforms of robot system. tf2_msgs/TFMessage |
| ✅ | ✅ | tf_static |
Static transforms of robot system. tf2_msgs/TFMessage |
Hidden topics
| 🤖 | 🖥️ | Topic | Description |
|---|---|---|---|
| ✅ | ❌ | _battery/battery_1_status_raw |
First battery raw state. sensor_msgs/BatteryState |
| ✅ | ❌ | _battery/battery_2_status_raw |
Second battery raw state. Published if second battery detected. sensor_msgs/BatteryState |
| ✅ | ❌ | _gps/heading |
Not supported for current configuration. geometry_msgs/QuaternionStamped |
| ✅ | ✅ | ⚙️ _odometry/gps ⚙️ |
Transformed raw GPS data to odometry format. nav_msgs/Odometry |
Services
| 🤖 | 🖥️ | Service | Description |
|---|---|---|---|
| ✅ | ✅ | controller_manager/configure_controller |
Manage lifecycle transition. controller_manager_msgs/srv/ConfigureController |
| ✅ | ✅ | controller_manager/list_controller_types |
Output the available controller types and their base classes. controller_manager_msgs/srv/ListControllerTypes |
| ✅ | ✅ | controller_manager/list_controllers |
Output the list of loaded controllers, their type and status. controller_manager_msgs/srv/ListControllers |
| ✅ | ✅ | controller_manager/list_hardware_components |
Output the list of available hardware components. controller_manager_msgs/srv/ListHardwareComponents |
| ✅ | ✅ | controller_manager/list_hardware_interfaces |
Output the list of available command and state interfaces. controller_manager_msgs/srv/ListHardwareInterfaces |
| ✅ | ✅ | controller_manager/load_controller |
Load a controller in a controller manager. controller_manager_msgs/srv/LoadController |
| ✅ | ✅ | controller_manager/reload_controller_libraries |
Reload controller libraries. controller_manager_msgs/srv/ReloadControllerLibraries |
| ✅ | ✅ | controller_manager/set_hardware_component_state |
Adjust the state of the hardware component. controller_manager_msgs/srv/SetHardwareComponentState |
| ✅ | ✅ | controller_manager/switch_controller |
Switch controllers in a controller manager. controller_manager_msgs/srv/SwitchController |
| ✅ | ✅ | controller_manager/unload_controller |
Unload a controller in a controller manager. controller_manager_msgs/srv/UnloadController |
| ✅ | ❌ | hardware/aux_power_enable |
Enables or disables AUX power. std_srvs/srv/SetBool |
| ✅ | ❌ | hardware/charger_enable |
Enables or disables external charger. std_srvs/srv/SetBool |
| ✅ | ❌ | hardware/digital_power_enable |
Enables or disables digital power. std_srvs/srv/SetBool |
| ✅ | ✅ | hardware/e_stop_reset |
Resets E-stop. std_srvs/srv/Trigger |
| ✅ | ✅ | hardware/e_stop_trigger |
Triggers E-stop. std_srvs/srv/Trigger |
| ✅ | ❌ | hardware/fan_enable |
Enables or disables fan. std_srvs/srv/SetBool |
| ✅ | ❌ | hardware/motor_torque_enable |
Allows to enable/disable motor torque when the E-Stop is triggered. std_srvs/srv/SetBool |
| ✅ | ✅ | lights/set_animation |
Sets LED animation. husarion_ugv_msgs/srv/SetLEDAnimation |
| ✅ | ✅ | localization/enable |
Enable EKF node. std_srvs/srv/Empty |
| ✅ | ❌ | lights/set_brightness |
Sets global LED brightness, value ranges from 0.0 to 1.0. husarion_ugv_msgs/SetLEDBrightness |
| ✅ | ✅ | localization/set_pose |
Set pose of EKF node. robot_localization/srv/SetPose |
| ✅ | ✅ | localization/toggle |
Toggle filter processing in the EKF node. robot_localization/srv/ToggleFilterProcessing |
Nützliche Commands
# Alle aktiven Topics anzeigen
ros2 topic list
# Topic Frequenz prüfen
ros2 topic hz /panther/odom
# Topic Inhalt anzeigen
ros2 topic echo /panther/battery_state
# Node-Graph visualisieren
rqt_graph
# TF-Tree anzeigen
ros2 run tf2_tools view_frames