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,846 times
Last updated: Jul 10 '17
How to mute turtlebot with kobuki base?
subscribe sensor_message/Image without opencv
How to get hector_quadrotor to fly autonomously
sensor_msgs.msg Image type value error. "Not a message data class"
How to publish realtime /LaserScan data?
How to implement open package to my robot?
move_base dies when I publish range data to the range_sensor_layer
rostopic shows /imu message, but topic monitor shows "unknown"