Ask Your Question

for uwsim, how can I create two currents?

asked 2017-03-07 12:02:07 -0500

chanhyeoni gravatar image

updated 2017-03-07 12:48:59 -0500

For my project, I would like to make my scene in which two currents are generated in different directions. I thought having two oceanState tags would get this done, but it gave me an error.

Any method or resource I should know? Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-03-08 04:37:25 -0500

Javier Perez gravatar image


Unfortunately, it is not possible to create two oceanStates in UWSim, this is controlled by osgOcean that simulates the visual characteristics of the ocean thus it would require to modify osgOcean itself in order to be able to do it.

Anyway, this only controls the visual characteristics of the ocean, it has no effect in the vehicle physics that is controlled dynamically by underwater_vehicle_dynamics package when running a dynamic simulation as explained here. This node accepts an external forces input via ROS topic so you can add any perturbation force to it in order to simulation underwater currents for the vehicles.

edit flag offensive delete link more


Hi Javier,

Thank you for the reply. Then do you know any references (like xsd) that I can use in order to build up my scene file?

chanhyeoni gravatar image chanhyeoni  ( 2017-03-08 17:46:59 -0500 )edit

Hi again, Sorry if I did not explain myself correctly but this is something that CANNOT be solved just modifying the scene file. If you want to do it visually you need to modify the osgocean source. If you want currents that move the vehicle you need to implement them yourself through dynamics.

Javier Perez gravatar image Javier Perez  ( 2017-03-09 02:59:03 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2017-03-07 12:02:07 -0500

Seen: 93 times

Last updated: Mar 08 '17