Gazebo | Ignition | Community
Ask Your Question

Importing a 3d model STL format

asked 2020-01-28 02:33:22 -0500

ThomasLy gravatar image

Hello! I have a question an I was recommended to ask here. I'm very new to Gazebo and I don't understand how to import this car 3d model into it? As I see I have to import .DAE format, but I have .STL (or .WRL) unfortunately. What should I do in that case? So then I need to create a series of files that define the model - the model.conf, the model.sdf and the meshes directory where to put my .DAE file. Then I have to place those files in the ~/.gazebo/models directory in order to be able to use it in an sdf .world file. Am I going in the right direction or am I missing something?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-01-29 05:28:26 -0500

dregner gravatar image

You have to create a model.sdf specifying where is your .DAE to link on visual and collision descript on your .sdf; Later you do your model.sdf as image below

image description
model box contain meshes and materials

Later you can add in your CMakeLists.txt you can add this reference

foreach (dir launch models resource worlds)
endforeach (dir)

and when you call the model in your .world will be found in same directory ans your package

edit flag offensive delete link more


Thank you!

ThomasLy gravatar imageThomasLy ( 2020-01-30 00:02:40 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-01-28 02:33:22 -0500

Seen: 152 times

Last updated: Jan 29