Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error Parameter is not an int - issue loading from sdf

Trying to load an int with a model plugin. sdf:

<plugin name="catvehicle_sim" filename="">

Try to access with:

 speed = _sdf->GetElement("speed")->GetValueInt();

gives error:

Error [] Parameter [speed] is not an int

Using Gazebo 1.5 with ROS groovy. What is the correct way to do this? I could just convert from a string but it seems like I am missing something easy. Should I be using attributes?