ros2 / ros2/common_interfaces

Charging time information in battery state

Open Beginner friendly
#341 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C++
Stars
393
Forks
157
PR merge metrics
No merged PRs in 30d

Description

Description

The sensor_msgs/BatteryState should be extended to allow additional information about elapsed and future (estimated) time for charging.

One way would be adding the fields

uint32 charging_time_elapsed # Elapsed charging time in charging mode (in seconds)

uint32 charging_time_remaining # Remaining charging time in charging mode (in seconds)

Motivation

When dealing with a robotic fleet coordination also depends on the state of charge. Therefore, having an estimate when a robot is finished charging is very useful.

Furthermore, statistics about charging time can be useful for trouble shooting (finding bad battery batches, ...).

Design / Implementation Considerations

No response

Additional Information

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the sensor_msgs/BatteryState message definition in the common_interfaces repository and review how existing fields are declared. Add the proposed elapsed and remaining charging-time fields with their documented units, then verify the interface generation and build checks pass.

Written by the indexing model from the issue text.

Assessment

Domain
robotics
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
74/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.