This question and the docs pointed me to $GAZEBO_MODEL_PATH
as being the environment variable to change to include models in a gazebo world. However, I am getting an error.
This is my current tree structure:
.
├── CMakeLists.txt
├── model
│ └── robot
│ ├── model.config
│ └── model.sdf
├── script
│ └── hello.cpp
└── worlds
├── empty.world
└── myworld
My GAZEBO_MODEL_PATH
is:
$ $ echo $GAZEBO_MODEL_PATH
:/home/self/workspace/build_my_world/model/robot:
But when I run gazebo I get an error.
$ gazebo worlds/myworld
Error [parser.cc:652] Could not find model.config or manifest.xml for the model
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
This is what I have in myworld
file:
1 <sdf version='1.6'>
2 <world name='default'>
3
4 <include>
5 <pose frame=''>0 0 30 0 0 0</pose>
6 <uri>model://model</uri>
7 </include>
8
The final problem is that even if I remove the model in the world file, entering gazebo
doesn't launch the application. There's NO output either.