Home | Tutorials | Wiki | Issues
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I can replicate the problem with Gazebo 1.5.0 in Groovy and in standalone Gazebo 1.8.6. As @AndreiHaidu suggests, retrieving it as a double is a reasonable workaround. E.g.:

int speed = (int)_sdf->GetElement("speed")->GetValueDouble();

This problem is not present (i.e., the call to retrieve the parameter as an int works) in gazebo 1.9.x with sdformat 1.4.4. So it would seem that the bug was fixed during the extraction of the SDF parser into the sdformat package.

Given the relative ease of the workaround, we're unlikely to fix this bug in older versions.