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
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Plugin added to the wildlife world.
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
  • Loading branch information
caguero committed Nov 21, 2022
commit 928721f50d67f5eef8cca562f71040421e242424
31 changes: 31 additions & 0 deletions vrx_gz/worlds/wildlife_task.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -632,5 +632,36 @@
</vertical>
</plugin>

<!-- The scoring plugin -->
<plugin name="vrx::WildlifeScoringPlugin"
filename="libWildlifeScoringPlugin.so">
<!-- Common parameters -->
<vehicle>wamv</vehicle>
<task_name>wildlife</task_name>
<initial_state_duration>10</initial_state_duration>
<ready_state_duration>10</ready_state_duration>
<running_state_duration>300</running_state_duration>
<collision_buffer>10</collision_buffer>

<!-- wildlife specific parameters -->
<buoys>
<buoy>
<name>crocodile_buoy::link</name>
<goal>avoid</goal>
</buoy>
<buoy>
<name>platypus_buoy::link</name>
<goal>circumnavigate_clockwise</goal>
</buoy>
<buoy>
<name>turtle_buoy::link</name>
<goal>circumnavigate_counterclockwise</goal>
</buoy>
</buoys>
<engagement_distance>10.0</engagement_distance>
<time_bonus>30.0</time_bonus>
<animals_topic>/vrx/wildlife/animals/poses</animals_topic>
</plugin>

</world>
</sdf>