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

libHydrodynamicsPlugin.so init function Issue #14

Closed
ElQemmah opened this issue Sep 13, 2021 · 2 comments
Closed

libHydrodynamicsPlugin.so init function Issue #14

ElQemmah opened this issue Sep 13, 2021 · 2 comments

Comments

@ElQemmah
Copy link

ElQemmah commented Sep 13, 2021

Dear ASV Wave Developers!
I am currently working with your ASV Wave Simulator plugins on ROS Noetic, and in particular exploiting the asv_wave_sim devel branch, combined with uuv_simulator (in particular the libuuv_thruster_ros_plugin). I have built the urdf model of my vehicle, contaning the links, joints ecc.) combined with the urdf model of the actuators and gps/imu models.
When I start my simulation I get the following error:

[Msg] Vertex:     24
[Msg] links:  6
[Msg] meshes: 6
[Msg] Water patch size: 2.52761
[Msg] Water patch size: 0
[Err] [Model.cc:1155] Exception occured in the Init function of plugin with name[hydrodynamics] and filename[libHydrodynamicsPlugin.so]. This plugin will not run

I have done some studies regarding your toolbox. I have become aware that the plug in at the beginning tries to create a water patch size not only for the vehicle but also for the thrusters. The reason for this is that there is a continuous joint connects the thrusters links to the vehicle link in the thruster urdf (if I change it to fixed then there is no water patch size for the thrusters, but the thruster plugin does not work).
The problem can actually be solved by specifying the collision tag inside the urdf of the thrusters (doing so I get a real time factor of 0.01 and simulations are impossible). But since I have decided to not put any collision inside the urdf of the thrusters, I would like to solve this problem and get rid of the previous error.

I would like to add that we successfully made all work (only on one machine) with no collision, the water patch size gets set to 0 for all thruster and no error pops up. We are not able to make it work with other machines.

@srmainwaring
Copy link
Owner

Hello @ElQemmah - I have not been active in this repo for some time so apologies for the delay.

The plugin attempts to assign buoyancy to all links in the model. The easiest way to get your model working is to assign a simple collision mesh (a small cube) to each of the thrusters. This will have a minimal impact on performance as the mesh is simple, and won't require any coding on my part. If you use the visual mesh for the thrusters it will run very slowly as the vertex count will be very high for these.

@srmainwaring
Copy link
Owner

Closing to lack of activity - fairly sure the issue was that the model was missing a collision mesh for thrusters.

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