Gazebo | Ignition | Community
Ask Your Question

How to dynamically create or modify terrain

asked 2019-09-24 04:54:56 -0500

Grisha gravatar image

I run Gazebo with another 'partner' simulation, that provides terrain info to Gazebo around the actor at runtime, via C++ plugin.

So I want to put a small patch of terrain under the actor, say 10x10 vertex grid, and have a plugin that will dynamically change the grid points altitude.

How can I modify vertex grid at runtime in Gazebo from a C++ Plugin? If that is not possible, can I at least create/destroy collider geometry at runtime in Gazebo?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-09-26 04:40:08 -0500

kumpakri gravatar image

updated 2019-09-26 04:40:31 -0500

Looking into the Gazebo API for the world plugin, you can insert model (several different ways), remove model and update state SDF. Those functions might be what you need, but I do not have any personal experience with them.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-09-24 04:46:23 -0500

Seen: 362 times

Last updated: Sep 26 '19