-
Notifications
You must be signed in to change notification settings - Fork 204
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
[Garden] Port scan, dock, deliver - Part 1 #537
Conversation
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
Signed-off-by: Carlos Agüero <caguero@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.
Two very small suggestions. Otherwise this is working as expected.
// Sanity check: Only one submission is allowed. | ||
if (this->colorSequenceReceived) | ||
{ | ||
gzerr << "The color sequence has already been submitted" << 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.
This does not seem to be displaying, despite the fact that the variable gets set to true in line 137, below. Maybe the problem is that the color checker gets disabled and stops listening for messages.
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.
It's a bit redundant because as you said, it's disabled when the first submission is processed.
vrx_gz/src/ScanDockScoringPlugin.cc
Outdated
} | ||
|
||
// Sanity check: We should receive three colors. | ||
if (_sequence.data_size() < 3u) |
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.
Currently, if we submit a sequence with more than 3 colors, it will just score the first three. I'm wondering if we should change < 3u
to != 3u
to also discard sequences that are too long.
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.
Sounds good to me. Changed in 558ef4d.
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
This pull request partially ports the
ScanDockScoringPlugin
from Gazebo classic. In particular, it ports the functionality related with the color sequence checker.How to test it?
/vrx/task/info
topic:running
state (around 20 secs), and then, submit a correct color sequence. On a new terminal launch:Verify in your previous terminal that you get 10 points.