Create rough terrain for used in gazebo
hi all, i have to create a world with rough terrain. how shall i do that? somebody can suggest me a good tutorial?
thanks in advance
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
hi all, i have to create a world with rough terrain. how shall i do that? somebody can suggest me a good tutorial?
thanks in advance
I use Blender, an open-source 3D modelling and animation program, to create my terrains. For example, you could try this tutorial to get you started. There is also the option to use the sculpt tool to create terrains. You can also use Blender to create other meshes.
Once I create my terrain, I then export the terrain to Collada 1.4 (.dae) using the built-in Blender Collada exporter. This format is readable by Gazebo.
Finally, to get the terrain into Gazebo, I copy the .dae file to my Gazebo "models" directory (see below). I then add the terrain to the .world file so that it is guaranteed to be static.
<model:physical name="hill">
<xyz>5.0 -5.0 0.1</xyz>
<rpy>0 0 0</rpy>
<static>true</static>
<body:trimesh name="hill">
<geom:trimesh name="hill">
<scale>1.0 1.0 1.0</scale>
<mesh>ground_profile_test.dae</mesh>
<visual>
<scale>1.0 1.0 1.0</scale>
<mesh>ground_profile_test.dae</mesh>
</visual>
</geom:trimesh>
</body:trimesh>
</model:physical>
NOTE: You must configure your Gazebo media paths correctly. See here.
Asked: 2011-11-15 01:35:36 -0600
Seen: 5,418 times
Last updated: Nov 15 '11
What's the best way to texture a large surface in gazebo?
Importing Collada meshes into a Gazebo world
Is there ROS documentation in languages other than English?
How to programmatically reset Gazebo
gazebo crashes when calling delete_model service call
where do I get a gazebo diff drive plugin?
Material-dependent transparency in Gazebo