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/
174 stars 86 forks source link

Support Pimu hw id 2 in /battery topic #94

Closed hello-binit closed 1 year ago

hello-binit commented 1 year ago

The /battery topic from Stretch Driver checks for the Pimu hardware ID before deciding what info is used in determining the PowerStatus field. For the newest batch, which have ID 2, the PowerStatus field is set using the same logic as ID 1: "Charging" if the battery_connected flag is true and the filtered voltage indicated that the charger was plugged in.