4am-robotics / cob_common

The cob_common stack hosts common packages that are used within the Care-O-bot repository. E.g. utility packages or common message and service definitions etc. Also the urdf desciption of the robot is located in this stack.
https://mojin-robotics.de/
Apache License 2.0
66 stars 136 forks source link

add explicit power_state.connected #297

Closed floweisshardt closed 2 years ago

floweisshardt commented 2 years ago

ref https://github.com/mojin-robotics/cob4/issues/2496

This explicitly adds an additional bool flag for the connection status to the charger.

Up to now we used to interpret power_state.charging as plugged to charging station or plugged to external charger by evaluating the power_state.current with magic thresholds. With the new field power_state.connected we can express better that we are connected to the charger but not charging (because battery might be full already).