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

BlueROV2 Sinks to Bottom of World #5

Open
JHoldenCode opened this issue Oct 25, 2021 · 4 comments
Open

BlueROV2 Sinks to Bottom of World #5

JHoldenCode opened this issue Oct 25, 2021 · 4 comments

Comments

@JHoldenCode
Copy link

When I first implemented these files, the ROV fell right through the bottom of the world. After adding some collision to it, it now just sinks to the bottom of the world. I saw the other issue posted about needing to calculate the actual hydrodynamic parameters of the ROV. I am wondering if that has been done and someone has successfully got the ROV working in Gazebo, or if my problem may be stemming from something else.

@zerodamage
Copy link

zerodamage commented Nov 5, 2021

Hi, the issue is that the underwater object plugin is incorrectly named:

diff --git a/bluerov2_description/robots/bluerov2_default.xacro b/bluerov2_description/robots/bluerov2_default.xacro
index e7e2c6c..8fd6a44 100644
--- a/bluerov2_description/robots/bluerov2_default.xacro
+++ b/bluerov2_description/robots/bluerov2_default.xacro
@@ -12,7 +12,7 @@

  •  <plugin name="uuv_plugin" filename="libunderwater_object_ros_plugin.so">
    
  •  <plugin name="uuv_plugin" filename="libuuv_underwater_object_ros_plugin.so">
       <fluid_density>1028.0</fluid_density>
       <flow_velocity_topic>hydrodynamics/current_velocity</flow_velocity_topic>
       <debug>$(arg debug)</debug>
    

@JHoldenCode
Copy link
Author

Thank you for this suggestion. I have made these changes to the bluerov2_default.xacro file, but the same behavior seems to be happening. I have tried typing random letters into the filename to make it invalid, but the simulation runs anyway and just makes the bluerov2 sink. This makes me unsure of if the files are importing this plugin at all. Any other help would be appreciated.

@zerodamage
Copy link

You can check which code is targeted using rospack / roscd to verify where the code is stored. The above fix should be enough to make it float usually.

Also worth checking one of the more current forks such as: https://github.com/FletcherFT/bluerov2

@zerodamage
Copy link

If the plugin doesn't load, the robot will sink since there will be zero buoyancy to hold it up. Check your gazebo terminal log whether it is loaded correctly.

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

No branches or pull requests

2 participants