ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

How to create custom models and include that in .world file ?

asked 2015-11-05 11:18:12 -0600

Ananthakrishnan gravatar image

I need to include a small box (static) object in a .world file that has a picture in it. (I have .launch and .world file that works fine) I am new to ros and gazebo. I am little bit confused with all the model files (.dae, .model, .urdf, etc). How can I create a small box shape with a picture in it and how to include that in a .world file? Do I need to create a model in blender or sketchup and export it to .dae? I don't have a clear idea of how .dae, .model, .urdf files works together.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-08-31 14:31:46 -0600

R. Tellez gravatar image

Hi,

one procedure to create custom Gazebo models is the following:

  1. create the dae file of the model. For this there are several ways. One way is to use sketchup to find a model of the object you need, then download it, adapt it a little bit with blender, and save it.
  2. Once you have the proper dae file for your model, you need to create a series of files that define the model. You need to create the model.conf, the model.sdf and the meshes directory where to put your dae file.
  3. Then you have to place those files in the ~/.gazebo/models directory in order to be able to use it in an sdf .world file.
  4. Final step is to include the model in your world file

Because all that is a little confusing, we created a video showing how to do all the process. You can find the video here: https://www.youtube.com/watch?v=aP4sD...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-11-05 11:18:12 -0600

Seen: 7,307 times

Last updated: Aug 31 '17