Skip to content

Add a --start-at-departure option for dispatch_go_to_place#331

Merged
arjo129 merged 3 commits intomainfrom
start-at-departure
Oct 7, 2025
Merged

Add a --start-at-departure option for dispatch_go_to_place#331
arjo129 merged 3 commits intomainfrom
start-at-departure

Conversation

@mxgrey
Copy link
Collaborator

@mxgrey mxgrey commented Sep 24, 2025

This PR is motivated by #467 which introduces the start_at_departure option for go_to_place events.

In this PR we add a --start-at-departure flag for dispatch_go_to_place so we can test the behavior of the new flag.

To try it out, launch the hotel world:

ros2 launch rmf_demos_gz hotel.launch.xml

Then in another terminal dispatch a go_to_place task for tinyBot_1, telling it to start at the 90s mark:

ros2 run rmf_demos_tasks dispatch_go_to_place --use_sim_time -F tinyRobot -R tinyBot_1 -p L2_master_suite -st 90

The robot should start moving to the goal right away because the default behavior is to arrive at the goal by the start time.

Now if you restart the simulation and try again with the new flag, the robot should wait at its charger until the simulation reaches its 90s mark:

ros2 run rmf_demos_tasks dispatch_go_to_place --use_sim_time -F tinyRobot -R tinyBot_1 -p L2_master_suite -st 90 --start-at-departure

Signed-off-by: Michael X. Grey <greyxmike@gmail.com>
Signed-off-by: Michael X. Grey <greyxmike@gmail.com>
@mxgrey mxgrey moved this from Inbox to In Review in PMC Board Sep 25, 2025
@mxgrey mxgrey requested a review from arjo129 October 7, 2025 01:28
@arjo129 arjo129 merged commit a22f5eb into main Oct 7, 2025
3 checks passed
@arjo129 arjo129 deleted the start-at-departure branch October 7, 2025 02:25
@github-project-automation github-project-automation bot moved this from In Review to Done in PMC Board Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants