Ask Your Question
0

for uwsim, how can I create two currents?

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

chanhyeoni gravatar image

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

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
0

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

Javier Perez gravatar image

Hi,

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

Comments

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 imagechanhyeoni ( 2017-03-08 17:46:59 -0600 )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 imageJavier Perez ( 2017-03-09 02:59:03 -0600 )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

Stats

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

Seen: 48 times

Last updated: Mar 08 '17