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,858 times
Last updated: Jul 10 '17
Mavros read second battery monitor
Adding QT libraries with qt-plugin
Make sure geometry_msgs::Twist or cmd_vel units
Problem with multirobots navigation
Broken kobuki reference in Indigo Gazebo
sensor_msgs/Imu Frame of reference?
How to determine the units used in odom_combined and Twist on Turtlebot Kobuki?
I need help, I have a basic error with kabuki and cmd_vel
move_base dies when I publish range data to the range_sensor_layer