Setting parameters in a launch file does not appear to be working
Hello,
Some script which was working before, now does not work anymore. The issue is that the param instruction in the launch file, does not seem to have any effect in the executable file
<param name="camera_topic" value="/camera/image_rect" type="str"/>
in my C++ executable, I looked for this "camera_topic" relative parameter as:
ros::param::get("camera_topic",camera_topic);
but I cannot get them easily. setting the same parameter in the program before getting it works, so I conclude it must be something about the launch file. The funny thing is that it worked before (+2 months).
I'm sure it still works in principle. You can check if and where it is set by rosparam list. If that doesn't help you need to come up with a complete minimal example.
I have tried it thanks! I is there indeed. But the node executable somehow still does not read it. Could it be about time delay?
Not if set by roslaunch. Test by launching the node manually, when the param is set - I suspect it won't work either.