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?
This happened to me as well, not only for int, bool as well. I know getting the value as double works, and then you can change it to int.