Understanding Parameters - Changing & Using New Value On The Fly
I am new to ROS. I am using Python 3 and ROS Noetic on Ubuntu 20.04. I need help understanding parameters.
Currently, I use a launch file to set parameters and in the C++ publisher code I do a getParam to get the value of the parameter from the Parameter Server. This works fine.
Now, I want to create a rqt GUI and from the GUI change the value of a parameter, get the new value in the publisher code and act on it, without restarting the Parameter server or publisher.
Can I do this with setParam() and getParam()? I've read some about dynamic_reconfigure. Is that what I need to use rather than setParam()/getParam()?
Any help getting me started in the right direction is appreciated!