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

Handle empty startset in full_control #13

Merged
merged 9 commits into from
Mar 29, 2021
Merged

Conversation

Yadunund
Copy link
Member

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

Bug fix

Fixed bug

Fix for #12

Fix applied

Check if output of `compute_plan_starts() is empty and if so return after outputting an error

Signed-off-by: Yadunund <yadunund@openrobotics.org>
@Yadunund Yadunund requested a review from mxgrey March 22, 2021 06:47
@mxgrey
Copy link
Contributor

mxgrey commented Mar 24, 2021

One other suggestion for this PR: Let's have the add_robot function throw an exception if it receives an empty start set. This isn't just an issue for the legacy fleet adapter. Any fleet adapter that gives us an empty start set is going to have problems.

Yadunund and others added 3 commits March 24, 2021 11:25
Signed-off-by: Yadunund <yadunund@openrobotics.org>
Signed-off-by: Yadunund <yadunund@openrobotics.org>
Co-authored-by: Grey <grey@openrobotics.org>
Signed-off-by: Yadunund <yadunund@openrobotics.org>
Signed-off-by: Yadunund <yadunund@openrobotics.org>
Signed-off-by: Yadunund <yadunund@openrobotics.org>
@Achllle
Copy link

Achllle commented Mar 26, 2021

I can confirm this fixes osrf/rmf_core/#266. It would be useful to inform the user why exactly the start set is empty.

Signed-off-by: Michael X. Grey <grey@openrobotics.org>
@mxgrey
Copy link
Contributor

mxgrey commented Mar 29, 2021

@Achllle I've added some more information to the error message that may help debug the problem.

@mxgrey mxgrey enabled auto-merge (squash) March 29, 2021 11:24
@mxgrey mxgrey merged commit 2fe08e3 into main Mar 29, 2021
@mxgrey mxgrey deleted the bug/full_control_starts branch March 29, 2021 11:24
@Achllle
Copy link

Achllle commented Mar 29, 2021

Amazing, those debug messages are very helpful @mxgrey

mxgrey pushed a commit that referenced this pull request Apr 22, 2021
* add CI and docs gen

* use rmf src instead of rolling
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.

full_control fleet adapter will crash if empty StartSet is passed into FleetUpdateHandle::add_robot()
3 participants