Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

Among ROS users, it's common to create a package that holds your models, worlds and plugins. Then with the help of gazebo_ros_pkgs, it's possible to launch Gazebo running those worlds and making model and plugin paths available automatically. Here's an example.

For pure Gazebo projects, I recommend a pattern such as this one. That is:

  • Models under /models
  • Worlds under /worlds
  • Plugin source code under /src (and if you want to install headers, put them under /include/project_name)
  • Use CMake to:
    • build plugins and install their shared libs
    • install models and worlds (and other resources as needed)
    • generate a setup.sh file which can be sourced to correctly set all the necessary paths (i.e. your "startup script")