Importing a 3d model STL format
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?
Asked by ThomasLy on 2020-01-28 03:33:22 UTC
Answers
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
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) install(DIRECTORY ${dir}/DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir}) endforeach (dir)
and when you call the model in your .world will be found in same directory ans your package
Asked by dregner on 2020-01-29 06:28:26 UTC
Comments
Thank you!
Asked by ThomasLy on 2020-01-30 01:02:40 UTC
Comments