Getting charge state of the robot

Hi @mstaniaszek, welcome to the forum.

The Stretch 2 has a mechanical switch in its charge port that is tied to robot_status['pimu']['charger_connected']. Stretch RE1 doesn’t have this switch and therefore this value will always be zero.

For the RE1 @bshah has developed a simple script that can detect the charger by monitoring the reported battery voltage. We’ll share this here once he’s back in the office early next week.

–Aaron