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] Port scan, dock, deliver - Part 3 #542

Merged
merged 21 commits into from
Nov 23, 2022
Merged

Conversation

caguero
Copy link
Contributor

@caguero caguero commented Nov 18, 2022

This pull request finishes porting the ScanDockScoringPlugin from Gazebo classic. In particular, it ports the functionality related with the detection of the projectile in the placard targets.

How to test it?

  1. Apply the following patch to move the vehicle to the central bay.

    patch
    diff --git a/vrx_gz/launch/competition.launch.py b/vrx_gz/launch/competition.launch.py
    index 9d13e862..2590106a 100644
    --- a/vrx_gz/launch/competition.launch.py
    +++ b/vrx_gz/launch/competition.launch.py
    @@ -39,7 +39,7 @@ def launch(context, *args, **kwargs):
             with open(config_file, 'r') as stream:
                 models = Model.FromConfig(stream)
         else:
    -      m = Model('wamv', 'wam-v', [-532, 162, 0, 0, 0, 1])
    +      m = Model('wamv', 'wam-v', [-486.4, 197, 0, 0, 0, 1])
           if robot_urdf and robot_urdf != '':
               m.set_urdf(robot_urdf)
           models.append(m)
    
  • Recompile and launch the scan_dock_deliver_task world:
ros2 launch vrx_gz competition.launch.py world:=scan_dock_deliver_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
  • Let's shoot a projectile. Open a new terminal and run:
ros2 topic pub --once /wamv/shooters/ball_shooter/fire std_msgs/Empty

If everything goes well, the ball should go inside the big target. Verify that the scoring increments in 5 points each time a target is hit. Remember that we only allow 4 attempts.

Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Carlos Agüero <[email protected]>
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.

Looks good! Working as expected for me.

Signed-off-by: Carlos Agüero <[email protected]>
Base automatically changed from caguero/scan_dock_2 to gazebosim November 23, 2022 20:37
Signed-off-by: Carlos Agüero <[email protected]>
@caguero caguero merged commit 1eb295a into gazebosim Nov 23, 2022
@caguero caguero deleted the caguero/scan_dock_3 branch November 23, 2022 20:50
@caguero caguero mentioned this pull request Nov 29, 2022
14 tasks
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