ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Errors starting hector gazebo imu [closed]

asked 2012-12-04 15:00:45 -0500

ChickenSoup gravatar image

updated 2016-05-17 02:38:53 -0500

Hello all,

I migrated from electric to fuerte and when I start my custom robot in gazebo I get the following errors. I am using the hector gazebo imu. I could not find (grep) where these errors are coming from.

Error [Param.cc:250] Parameter [headingDrift] is a [Ss], attempting to get as a double. Error [Param.cc:250] Parameter [headingGaussianNoise] is a [Ss], attempting to get as a double.

Any help would be appreciated.

Thank you

CS

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Martin Günther
close date 2016-05-17 03:26:51.489117

1 Answer

Sort by » oldest newest most voted
1

answered 2012-12-05 03:17:06 -0500

This is a bug in the gazebo SDF interface, which parses the XML config for the plugins from the robot description. It also affects other plugins like gazebo_ros_imu that use non-string parameters, as gazebo parses all plugin parameters as strings. The error message is generated in the Param::Get(double &) at Param.cc:241 method, which in turn is called by Element::GetValueDouble(const std::string &_key) in SDF.cc:676. The check if the given value is a string fails because gazebo mixes up its internal type name "string" and the typeid for std::string "Ss". As a result the value will not be casted to double as it should be.

This bug has been fixed in the the dev branch of the upstream gazebo repository in 2926:ad1e317e2155, but unfortunately the commit has not found its way to the fuerte branch yet. I guess we have to wait until Gazebo 1.3 is released for ROS.

It would be possible to work around this by getting the parameter as string and do the conversion to double in the plugin code, but we hoped that it is a matter of time until this is fixed in gazebo itself.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-12-04 15:00:45 -0500

Seen: 388 times

Last updated: May 17 '16