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

Fix pinger location in gymkhana task #438

Merged
merged 3 commits into from
Mar 18, 2022
Merged

Fix pinger location in gymkhana task #438

merged 3 commits into from
Mar 18, 2022

Conversation

caguero
Copy link
Contributor

@caguero caguero commented Mar 15, 2022

See issue #437.

How to test it?

  • Launch any of the 2022_practice gymkhana worlds (change the path to the world accordingly):
roslaunch vrx_gazebo gymkhana.launch verbose:=true world:=/home/caguero/vrx2022_ws/src/vrx/vrx_gazebo/worlds/2022_practice/gymkhana0.world
  • Echo the set_pinger_position topic. Open a new terminal and run:
rostopic echo /wamv/sensors/pingers/pinger/set_pinger_position

You should observe that the pinger location is set to something different than the content of the pinger.yaml (-483, 295.5, 0).

  • You can also teleoperate the robot to that location and echo the acoustic pinger:
/wamv/sensors/pingers/pinger/range_bearing

Verify that the range is close to 0.

caguero added 2 commits March 15, 2022 19:23
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
@j-herman
Copy link
Collaborator

@caguero I tested this as described with gymkhana0.world - all looks good! I am going to try generating the worlds via xacro to make sure everything flows through correctly from the yamls and then I will approve.

Copy link
Collaborator

@j-herman j-herman left a comment

Choose a reason for hiding this comment

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

All looks good!

* removed set pinger position node from vrx.launch as well

* Update vrx.launch

Co-authored-by: Carlos Agüero <cen.aguero@gmail.com>
@j-herman
Copy link
Collaborator

@caguero When I tried starting via roslaunch vrx_gazebo vrx.launch world:=gymkhana0.world the pinger position is not being published - the pinger position stays at the origin. From your comments I think this is not the expected behavior when the gymkhana scoring plugin is running. Do you want me to take a look to see what's up, or did I misunderstand what's supposed to happen?

@caguero
Copy link
Contributor Author

caguero commented Mar 18, 2022

roslaunch vrx_gazebo vrx.launch world:=gymkhana0.world

Hmm, I see the position being published. Is gymkhana0.world the one under 2022_practice?

@j-herman
Copy link
Collaborator

Never mind - dumb mistake on my part! I am fixing it now and will confirm it's working.

@j-herman
Copy link
Collaborator

It's working now. Good to merge.

@caguero caguero merged commit 94385d0 into master Mar 18, 2022
@caguero caguero deleted the issue_437 branch January 5, 2023 21:24
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.

3 participants