Robotics StackExchange | Archived questions

Parameters do not updated until I rerun roscore

Hello there, I use navigation stack and nav2d (I hope, that's something irrelevant) and when I change a parameter inside a .yaml file, I also need to rerun roscore so that the new parameter takes effect.

Any ideas what's wrong?

Asked by MariaKrgr on 2016-05-23 08:55:01 UTC

Comments

Answers

You don't need to start roscore, in fact that will reset all parameters.

However, you need to restart something that loads these parameters. Probably one of your launch files will read the yaml and load the parameters from there.

Asked by dornhege on 2016-05-23 09:54:53 UTC

Comments

I re-launch my launch file that runs all relative nodes and the parameters are not being updated until I re-run roscore..

Asked by MariaKrgr on 2016-05-25 10:05:26 UTC

A launch file that starts nodes needs a roscore, re-starting a roscore that has been running before sounds like something will go wrong. If no roscore is running the roslaunch will also start one on its own. You should never (need to) restart a roscore that has been running without restarting all.

Asked by dornhege on 2016-05-27 06:48:57 UTC

Ok today updating parameters works for some magic reason.. Thank you for your time

Asked by MariaKrgr on 2016-05-27 07:09:43 UTC