Home | Tutorials | Wiki | Issues
Ask Your Question
0

Gazebo 7, Ambulance model (and other) Invalid mesh filename extension crash

asked 2017-12-04 06:02:49 -0600

Multiplexer gravatar image

Hello,

I installed Gazebo 7 and then downloaded models from https://bitbucket.org/osrf/gazebo_mod... placed them inside ~/.gazebo/models/ (because gazebo refuses to automatically download any models).

Many of the models work just fine but there is a group of them that refuses to be placed in a world and will in result crash gazebo. In the gazebo log it looks like this:

ros@ros-U44SG:~$ gazebo --verbose
Gazebo multi-robot simulator, version 7.0.0
Copyright (C) 2012-2016 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

Gazebo multi-robot simulator, version 7.0.0
Copyright (C) 2012-2016 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.1.102
[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.1.102

[Err] [MeshManager.cc:96] Invalid mesh filename extension[/home/ros/.gazebo/models/ambulance/meshes/ambulance.obj]
[Err] [Visual.cc:2021] Unable to create a mesh from /home/ros/.gazebo/models/ambulance/meshes/ambulance.obj
[Err] [Visual.cc:352] Ogre Error:OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource /home/ros/.gazebo/models/ambulance/meshes/ambulance.obj in resource group Autodetect or any other group. in ResourceGroupManager::openResource at /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
[Err] [Visual.cc:353] Unable to create a mesh from /home/ros/.gazebo/models/ambulance/meshes/ambulance.obj
//3x (...)

[Err] [MeshManager.cc:96] Invalid mesh filename extension[/home/ros/.gazebo/models/ambulance/meshes/ambulance.obj]
[Err] [MeshShape.cc:72] Unable to load mesh from file[/home/ros/.gazebo/models/ambulance/meshes/ambulance.obj]

[Err] [MeshManager.cc:96] Invalid mesh filename extension[/home/ros/.gazebo/models/ambulance/meshes/ambulance.obj]
[Err] [Visual.cc:2021] Unable to create a mesh from /home/ros/.gazebo/models/ambulance/meshes/ambulance.obj
[Err] [Visual.cc:352] Ogre Error:OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource /home/ros/.gazebo/models/ambulance/meshes/ambulance.obj in resource group Autodetect or any other group. in ResourceGroupManager::openResource at /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
[Err] [Visual.cc:353] Unable to create a mesh from /home/ros/.gazebo/models/ambulance/meshes/ambulance.obj

[Err] [MeshManager.cc:96] Invalid mesh filename extension[/home/ros/.gazebo/models/ambulance/meshes/ambulance.obj]
[Err] [Visual.cc:2021] Unable to create a mesh from /home/ros/.gazebo/models/ambulance/meshes/ambulance.obj

Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'Ogre::FileNotFoundException'
  what():  OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource /home/ros/.gazebo/models/ambulance/meshes/ambulance.obj in resource group Autodetect or any other group. in ResourceGroupManager::openResource at /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0 ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-12-04 10:44:48 -0600

Those files use OBJ meshes, and support for that was added from Gazebo 7.4.0, as you can see on the Changelog.

Follow the instructions here to update to the latest Gazebo 7 release.

In any case, Gazebo shouldn't crash when trying to load unsupported mesh files, so I ticketed an issue about this.

edit flag offensive delete link more

Comments

1

thank you, updated to 7.9 successfully and model works now

Multiplexer gravatar imageMultiplexer ( 2017-12-05 01:09:36 -0600 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-12-04 06:02:49 -0600

Seen: 33 times

Last updated: Dec 04