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 -0500
Seen: 5,202 times
Last updated: Nov 15 '11
Simultaneous control of gazebo and real robot using ROS
Turtlebot is shown as two wheels only
How control a 3d arm with leap motion in gazebo
Did ros-kinetic-gazebo-ros-control package release?
How run multiple move_group for different robots in single system
Sensor publish a pointcloud2 msg to ROS
gazebo_ros range plugin do not show in rostopic list
Custom Gazebo world doesn't load