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

Issue relocalization command if the robot is on the wrong map #316

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

mxgrey
Copy link
Contributor

@mxgrey mxgrey commented Jan 8, 2024

There is a rare edge case when a replan happens while a robot is moving between floors: the new commanded path will be based on a floor that the robot is not yet localized to.

With this PR, the EasyFullControl adapter will check if the new path is on the same map that the robot most recently reported being on. If there's a difference then it will send a localization command first.

…h the inital map of the path

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>
Copy link
Member

@xiyuoh xiyuoh left a comment

Choose a reason for hiding this comment

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

Tested this PR out over some time with different scenarios, map switches have been triggered correctly as intended.

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