ROS Indigo odd getParam compile error

asked 2017-09-22 11:47:17 -0500

user12821821 gravatar image

updated 2017-09-23 16:53:14 -0500

gvdhoorn gravatar image

Hello, I have two machines, both with ROS Indigo installed.

On one machine the following line compiles fine: (where waypoint_radius is a float)

nh.param<float>("waypoint_radius", waypoint_radius, 2.2);

But on the other it gives me errors saying that there is no float "getter" for the node handle param.

Is it possible the one machine has a newer version of Indigo where this call was left out? Both have indigo installed the same way, through the binary apt-get desktop-full command.

From reading other questions most say that there is no "getParam" for float but it has been compiling fine on the one machine and it would be quite arduous to change all the references in the code.

edit retag flag offensive close merge delete


Hi, isn't there a version of indigo written somewhere to compare? E.g. when you start a new node in a terimnal.

sykatch gravatar image sykatch  ( 2017-09-22 12:23:16 -0500 )edit