Preplexing exception in case of sonar sensor

asked 2014-06-01 06:05:16 -0500

Kunal yagi gravatar image


I inserted a sonar sensor in a sdf file to mimic the ultrasonic range sensors. The file can be found here on PasteBin.

I have found out that if I comment the <sensor> </sensor> block, no error is thrown, else the following error is thrown every time any force is applied on it.

Exception [] Invalid geometry element

terminate called after throwing an instance of 'gazebo::common::Exception'

Any suggestions? And yes the sensor type is sonar but I am not getting sonar related data in any other way, except by making the sensor type sonar

I use Gazebo v2.2, sdf v1.4 on Ubuntu 12.04

edit retag flag offensive close merge delete


I was able to load that model with no problems. How do you generate the exception? If it involves a plugin, please include the code for the plugin.

scpeters gravatar imagescpeters ( 2014-06-02 19:58:17 -0500 )edit

Hi, sorry for not including the following information: To reproduce the error, simply include the model into another model by using the meta-tag of <include>. It has worked for me, so far.

Kunal yagi gravatar imageKunal yagi ( 2014-06-05 11:38:01 -0500 )edit