open-rmf / rmf_task

RMF library for managing task allocations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow all battery considerations to be disabled

mxgrey opened this issue · comments

commented

Feature request

Description

When running simulation tests of traffic management, it can be useful to have the robots do very very long driving tasks non-stop without any need to charge the battery.

Battery draining can be disabled in the simulation, but the task planner will still reject any tasks that it believes will drain the battery too much. For those cases, it would be useful to disable the battery constraint altogether so the planner does not reject those requests.

commented

To clarify, there is a FleetUpdateHandle::account_for_battery_drain() method that can be used to toggle battery considerations when performing task allocation planning. If set false, battery drain will not be considered when planning.The full_control adapter takes in an argument to indicate whether battery drain should be considered or not. The implementation is here

commented

Thanks for pointing that out. I thought I already tried using that parameter, but I must have messed something up. I tried it again just now, and it's working 👍