hello-robot / stretch_ros

ROS packages for the Stretch mobile manipulators from Hello Robot Inc.
https://docs.hello-robot.com/0.2/stretch-tutorials/ros1/
167 stars 84 forks source link

Provide charging status in BatteryState message #82

Closed hello-binit closed 1 year ago

hello-binit commented 1 year ago

This PR fills out the previously unfilled power_supply_status field in the BatteryState msg, that is published from the Stretch Driver node. Since charging status is estimated from jumps/dips in voltage readings, the charging status can be incorrect due to outliers and external factors impacting the system voltage. However, the status is good enough to be used in an upcoming auto docking node, where the node will query the /battery field at the end of its docking procedure to determine whether the robot docked successfully.