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 | Q&A answers.ros.org |
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
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2017-07-10 08:04:45 -0500
Seen: 1,534 times
Last updated: Jul 10 '17
Rviz2 not showing lidar points
How to set the source of odom published by turtlebot2 or kobuki?
Pick and place - All supplied grasps failed
Payload - Velocity Relation of Turtlebot 2
Nodelet Usage and it’s role in designing a complex controller
How to use sensor_msgs/Joy instead of joystick_drivers/Joy?
Kobuki "gyro" versus "inertia" packets?