Home | Tutorials | Wiki | Issues
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="libcatvehicle_sim.so">
    <robotNamespace>/</robotNamespace>
    <speed>20</speed>
</plugin>

Try to access with:

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

gives error:

Error [Param.cc:514] 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?