Skip to content

How doe sthe automatic go to battery task work? #184

Answered by Yadunund
RDaneelOlivav asked this question in Q&A
Discussion options

You must be logged in to vote

The logic is baked into the TaskManger as seen here. When the robot is idle, a timer periodically computes the estimated battery drain if the robot were to head back to the charger now. If the battery level after the estimated drain is within a safety factor applied to the recharge_threshold, the TaskManager will automatically begin a task to take the robot back to its charging station.

The recharge_threshold is used in a similar manner during task allocation. When deciding the order of tasks performed, the TaskPlanner will estimate the battery level of the robot after performing a task A. If the estimate is below the recharge_threshold, it will then check if the robot can perform task A …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RDaneelOlivav
Comment options

@zhangyuran-gg
Comment options

Answer selected by RDaneelOlivav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants