qrb_ros_battery package communicates with the battery service through DBus. The battery service gets the current battery status by accessing the sys nodes.
Pipeline flow for qrb_ros_battery
The following figure shows the pipeline flow for qrb_ros_battery.

The qrb_ros_battery pipeline.
ROS nodes used in the qrb_ros_battery pipeline
The following table lists the ROS nodes used in the qrb_ros_battery pipeline and describes what each node does.
ROS topic used in the qrb_ros_battery pipeline
The following table lists the ROS topics used in the qrb_ros_battery pipeline, with the message type and a description of each topic.
Prerequisites
You have set up the device, installed ROS2 Jazzy and the Qualcomm Intelligent Robotics (QIR) SDK on the device according to Install the QIR SDK.Run out-of-the-box qrb_ros_battery
1
Run the battery node
Run the battery node
2
Get the topic of this node
List the ROS topics
3
Echo the battery information
Echo the battery topic
Example output
The following figure shows the terminal output ofros2 topic echo /battery_stats.


