# Spawn models to the Gazebo environment

**URL:** <https://get-help.theconstruct.ai/t/spawn-models-to-the-gazebo-environment/31710>\
**Category:** ROS2 Manipulation Basics\
**Created:** [August 9, 2024, 11:12am UTC](https://get-help.theconstruct.ai/t/spawn-models-to-the-gazebo-environment/31710 "2024-08-09T11:12:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SaiTeja104](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/s/e8c25b/32.png) [@SaiTeja104](https://get-help.theconstruct.ai/u/SaiTeja104)\
**Post date:** [August 9, 2024, 11:12am UTC](https://get-help.theconstruct.ai/t/spawn-models-to-the-gazebo-environment/31710/1 "2024-08-09T11:12:12Z")

</div>

Hi

I am currently doing chapter 4 in ROS2 Manipulation course. I would llike to add the models from Fuel.

Here are the steps I followed. I cloned the sdf files to the linux environment in the course.  
And spawned the model using the following command : ros2 run gazebo\_ros spawn\_entity.py -file ~/ros2\_ws/src/GazeboModels/custom\_model.sdf -x 0.34 -y 0.13 -z 0.1 -entity custom\_model

I got success message in the terminal, but I couldnt see the model in the environment.  
Please guide me in this direction.

---

<div class="post-metadata">

**Author:** ![jpvaldivia7](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/jpvaldivia7/32/8925_2.png) [@jpvaldivia7](https://get-help.theconstruct.ai/u/jpvaldivia7)\
**Post date:** [August 9, 2024, 11:45am UTC](https://get-help.theconstruct.ai/t/spawn-models-to-the-gazebo-environment/31710/2 "2024-08-09T11:45:27Z")

</div>

Hi SaiTeja,  
Did you get any error message or warning before the success in the terminal?  
Sometimes the model takes longer to load, specially the first time. Let me know.

---

<div class="post-metadata">

**Author:** ![SaiTeja104](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/s/e8c25b/32.png) [@SaiTeja104](https://get-help.theconstruct.ai/u/SaiTeja104)\
**Post date:** [August 9, 2024, 12:37pm UTC](https://get-help.theconstruct.ai/t/spawn-models-to-the-gazebo-environment/31710/3 "2024-08-09T12:37:49Z")

</div>

Hi @jpvaldivia7

Thanks for your prompt reply. Please find the images attached. I am trying to spawn a container. Success message is being shown on the webshell, but I couldnt find any model in the Gazebo simulator/

I took the container model file from this resource - [https://app.gazebosim.org/GoogleResearch/fuel/models/Top\_Paw\_Dog\_Bowl\_Blue\_Paw\_Bone\_Ceramic\_25\_fl\_oz\_total](https://app.gazebosim.org/GoogleResearch/fuel/models/Top_Paw_Dog_Bowl_Blue_Paw_Bone_Ceramic_25_fl_oz_total)

 ![image](https://get-help.theconstruct.ai/uploads/default/original/2X/7/7d92f65567cea5c8c2bd0719d395ffae9dfdbd29.png)  
 ![image](https://get-help.theconstruct.ai/uploads/default/original/2X/e/ea8670cab914cf1488a293080986e37faf2e88db.png)

---

<div class="post-metadata">

**Author:** ![jpvaldivia7](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/jpvaldivia7/32/8925_2.png) [@jpvaldivia7](https://get-help.theconstruct.ai/u/jpvaldivia7)\
**Post date:** [August 9, 2024, 5:14pm UTC](https://get-help.theconstruct.ai/t/spawn-models-to-the-gazebo-environment/31710/4 "2024-08-09T17:14:19Z")

</div>

I see, it is because Gazebo have problems with specific meshes format. In this case you have a .obj mesh, I recommend you to do this steps:

1. Import the .obj file in Blender
2. Add the image texture into the model (I like this tutorial for this: [https://www.youtube.com/watch?v=mURA2g1rOSc&t=39s](https://www.youtube.com/watch?v=mURA2g1rOSc&t=39s))
3. Export it to .dae file from Blender and replace it into your ROSject

This is how I manage to add my own models into Gazebo. Good luck!

---

<div class="post-metadata">

**Author:** ![system](https://get-help.theconstruct.ai/uploads/default/original/2X/9/9d3ce8305cc0d0d9b6e07d15767a6f245c526f1b.jpeg) [@system](https://get-help.theconstruct.ai/u/system)\
**Post date:** [August 14, 2024, 5:14pm UTC](https://get-help.theconstruct.ai/t/spawn-models-to-the-gazebo-environment/31710/5 "2024-08-14T17:14:53Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
