Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifications to support refactor of rmf_task #51

Merged
merged 9 commits into from
May 10, 2021
Merged

Conversation

Yadunund
Copy link
Member

@Yadunund Yadunund commented May 5, 2021

This PR makes suitable changes to the fleet adapter to accommodate open-rmf/rmf_task#15

Summary of changes:

  • Update internal request generation and task planning calls based on API refactor
  • Remove FleetUpdateHandle::account_for_battery_drain() and FleetUpdateHandle::set_recharge_threshold(). These properties for task planning are now set using the enhanced FleetUpdateHandle::set_task_planner_params(). If users wish to toggle battery drain or modify the recharge threshold, they may call set_task_planner_params() again.
  • Fix bug where a TaskManager waits for deployment_time even though the task's earliest_start_time has passed df32614
  • Minor changes to RobotContext, TaskManager and rmf_fleet_adapter::tasks::<TASKS> to accommodate refactor
  • Update legacy full_control and launch file
  • Update python bindings

Signed-off-by: Yadunund <yadunund@openrobotics.org>
Signed-off-by: Yadunund <yadunund@openrobotics.org>
Signed-off-by: Yadunund <yadunund@openrobotics.org>
Signed-off-by: Yadunund <yadunund@openrobotics.org>
Signed-off-by: Yadunund <yadunund@openrobotics.org>
Signed-off-by: Yadunund <yadunund@openrobotics.org>
…e or deployment_time

Signed-off-by: Yadunund <yadunund@openrobotics.org>
@Yadunund Yadunund requested a review from mxgrey May 7, 2021 03:48
@Yadunund Yadunund requested review from youliangtan and removed request for mxgrey May 10, 2021 02:14
Copy link
Member

@youliangtan youliangtan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested all possible scenarios with different tasks, and battery settings. Works!

@Yadunund Yadunund merged commit dc405aa into main May 10, 2021
@Yadunund Yadunund deleted the refactor/rmf_task branch May 10, 2021 09:21
arjo129 pushed a commit that referenced this pull request Oct 12, 2021
* Initial changes

Signed-off-by: Yadunund <yadunund@openrobotics.org>

* Changes after Request::Model

Signed-off-by: Yadunund <yadunund@openrobotics.org>

* Updated python bindings

Signed-off-by: Yadunund <yadunund@openrobotics.org>

* Update fleet adapter launch

Signed-off-by: Yadunund <yadunund@openrobotics.org>

* Better logic for clean task in fleet adapter

Signed-off-by: Yadunund <yadunund@openrobotics.org>

* Update make() for requests

Signed-off-by: Yadunund <yadunund@openrobotics.org>

* Start next task if time now is greater than either earliest_start_time or deployment_time

Signed-off-by: Yadunund <yadunund@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants