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

[Garden] Wildlife scoring plugin - Part2 #547

Merged
merged 6 commits into from
Dec 1, 2022
Merged

Conversation

caguero
Copy link
Contributor

@caguero caguero commented Nov 24, 2022

This pull request ports the WildlifeScoringPlugin from Gazebo classic.

How to test it?

  • Launch the wildlife_task world:
ros2 launch vrx_gz competition.launch.py world:=wildlife_task
  • On a new terminal launch the joystick teleop node:
ros2 launch vrx_gz usv_joy_teleop.py
  • On a new terminal check the /vrx/task/info topic:
ros2 topic  echo /vrx/task/info

Try circumnavigating the buoys (platypus clockwise and turtle counter clockwise). You should see messages of this type:

[Dbg] [WildlifeScoringPlugin.cc:409] platypus::link Virtual gate crossed clockwise! (25% completed)

Bonus: I enabled contact checking again. For some reason the topic subscription was removed.

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

@M1chaelM M1chaelM left a comment

Choose a reason for hiding this comment

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

All works for me! If you have time, I left a few questions and suggestions but all very minor and optional. The only one that we might want to think about relates to our current scoring, which sets the minimum score to 0. I think it would be slightly better (and more aligned with our last documentation) to allow a negative score, but I could be convinced either way as long as we make the documentation consistent.

vrx_gz/src/WildlifeScoringPlugin.cc Outdated Show resolved Hide resolved
vrx_gz/src/WildlifeScoringPlugin.cc Show resolved Hide resolved
vrx_gz/src/WildlifeScoringPlugin.cc Outdated Show resolved Hide resolved
vrx_gz/src/WildlifeScoringPlugin.cc Outdated Show resolved Hide resolved
vrx_gz/src/WildlifeScoringPlugin.cc Outdated Show resolved Hide resolved
vrx_gz/src/WildlifeScoringPlugin.cc Outdated Show resolved Hide resolved
vrx_gz/src/WildlifeScoringPlugin.cc Show resolved Hide resolved
Signed-off-by: Carlos Agüero <caguero@osrfoundation.org>
@caguero caguero merged commit 4e31dc9 into gazebosim Dec 1, 2022
@caguero caguero deleted the caguero/wildlife_2 branch December 1, 2022 19:31
@M1chaelM
Copy link
Collaborator

M1chaelM commented Dec 3, 2022

@caguero Thanks for all these helpful responses!

@caguero caguero mentioned this pull request Feb 8, 2023
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.

2 participants