Adding model files to the Gazebo model folder

The following is the procedure to add a model to the Gazebo folder.

Locate the default model folder of Gazebo, which is located in the ~/.gazebo/models folder. Create a folder called final_room and copy final_room.sdf inside this folder. Also, create a file called model.config, which contains the details of the model file. The definition of this file follows:

<?xml version="1.0"?> <model> <!-- Name of model which is displaying in Gazebo --> <name>Test Room</name> <version>1.0</version> <!-- Model file name --> <sdf version="1.2">final_room.sdf</sdf> <author> <name>Lentin Joseph</name> <email>qboticslabs@gmail.com</email> </author> <description> A test room for performing SLAM </description> </model> ...

Get Mastering ROS for Robotics Programming - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.