-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add lookahead behavior for GoToPlace and fix various sources of seg faults #205
Conversation
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These features look great! The refactoring in Task manager also makes it easier to go through, thanks!
I just have 2 pretty trivial comments, but otherwise LGTM! Should we be updating the change logs for these packages as well? You can also mention the newly added API for cancelling or killing tasks from RobotUpdateHandle
, those were extremely useful ✨
pending_json["unix_millis_start_time"] = | ||
to_millis(pending.deployment_time().time_since_epoch()).count(); | ||
copy_assignment(pending_json["assigned_to"], *_context); | ||
pending_json["status"] = "canceled"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got confused by this for a while and thought it was a typo, we might need to converge to single or double L at some point, I found multiple locations where we use double Ls, https://github.com/open-rmf/rmf_api_msgs/blob/main/rmf_api_msgs/schemas/task_state.json#L51.
This should not block merging this PR though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, the inconsistency between the number of l
s in canceled
versus cancellation
probably creates a high risk of typos, but I chose those spellings as they're the more common spellings in American English, which is usually preferred over British spellings in the global software industry. I'm open to revising the API if people anticipate that it will cause problems.
// std::cout << "No deps for " << description->name() | ||
// << " " << plan_id << "|" << r << " vs " | ||
// << vc->description.name() << " " << vc->plan_id << "|" << vc->route_id | ||
// << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these comments still useful?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching that, comments are removed in 9433066
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On second thought, since these are using features in 2.1.0
of rmf_task
and rmf_task_sequence
, I'd say we should probably consider bumping a minor release to match as well. I'm not super well versed in our versioning workflow, let me know what you think.
I tested a few scenarios, with queue task cancellation and the new generic |
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
@aaronchongth great idea, CHANGELOG is updated in 46d1cac. Let me know if there's anything else to block this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes fixes! 🙇LGTM!
This PR came from some rapid development cycles while getting a demo to work, so it's a mixed bag of changes.
GoToPlace
, which helps to smooth out traffic negotiations for tasks that involve passing through a sequence of waypoints (e.g. patrolling)update_position
overload to give system integrators maximum flexibility in how they report their robot's position