how can I use sensor_msgs/BatteryState
I have to Display values of : voltage current charge and capacity of my turtlebot (kobuki) in real time. Can you help me please
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
I have to Display values of : voltage current charge and capacity of my turtlebot (kobuki) in real time. Can you help me please
You can write a simple suscriber ( you can follow this tutorial ) that will suscribe to your battery state topic.
In the callback function you can access and display the voltage (for example) using msg->voltage
.
All the parameters you can access to are available here .
You will find how to write a simple suscriber in python here.
I don't know the name of your topic but I am pretty sure you can find it using the rostopic list
command when your robot is awake.
Does it solve your problem ? If yes please accept the answer so others can also benefit
Asked: 2017-07-10 08:04:45 -0500
Seen: 1,839 times
Last updated: Jul 10 '17
TF set location, frame and frame relation for objects
How to mute turtlebot with kobuki base?
[ROS2] Difference between joint_states topic and dynamic_joint_states topic
Adding QT libraries with qt-plugin
A question about eclipse and c++ in ROS
How to do GMapping and SLAM Navigation using RPLIDAR A2 and Kobuki?