-
Notifications
You must be signed in to change notification settings - Fork 192
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
Scoring plugin port - part1 #501
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>
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>
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>
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>
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
This keeps crashing for me with errors relating to not being able to find
I've tried cleaning out the workspace and rebuilding, but it's very consistent. In contrast, the current code on Update:The problem seems to be related to the change in model |
This runs fine on my machine - took a very long time to download the models, but after that all seems to work ok. The simulation does not exit when it hits the "finished" state - is this intended? |
Great. It's working for me now too. I'm not 100% sure, but I think the issue was an upstream change to |
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.
All looks good! The world is loading with the ScoringPlugin and the /vrx/task/info
is working as described. The simulation doesn't exit when the task times out, but I think that is expected for 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.
See comment on CMakeLists - I can make the updates when I submit the Stationkeeping PR, or if you've got a cleaner way to enable the linking and want to set it up here, that works too.
@@ -64,6 +64,7 @@ install( | |||
|
|||
# Plugins | |||
list(APPEND VRX_IGN_PLUGINS |
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.
There may be a better way to do this, but when I built the Stationkeeping plugin I had to pull the base ScoringPlugin out into a separate library to get everything to link correctly. I treated it just like the Waves library (but with the right dependencies) and was then able to add Stationkeeping to the for loop with no issues.
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 makes sense that we have to do that. I updated the code in ef2115b.
It's expected not to finish. That's on the ToDo list for the next part of this plugin. |
That's also expected and it also happened to me. Sorry, I forgot to mention it in the description. The problem should be fixed if you update your |
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>
This pull request ports the main functionality of the
ScoringPlugin
class. It replaces #486 and #498.It should be fully functional except for:
finished
I'll implement these features in a following pull request.
How to test it?
Launch the simulation:
On a separate terminal:
You should observe the task message. Verify that
elapsed_time
increases accordingly,remaining_time
decrements, the states transition frominitial->ready->running->finished
.Other aspects of this plugin will be tested in the derived scoring plugins.
Bonus
I'm loading a few buoys in the world. We'll rearrange it better in the future but I'd like to see objects running the buoyancy plugins to detect potential issues.