[ros-users] another dynamic_reconfigure question
blaise at willowgarage.com
Fri Jul 23 15:59:46 UTC 2010
Being able to specify parameter ranges and in a richer and dynamic way
is a common request for dynamic_reconfigure. Usually, people request
this so that the GUI better reflects the state of the node (in your
case, which resolutions are supported by the node). So far I don't have
a precise idea of when these enhancements will be made.
In the mean time, what I would recommend for your case is the following:
Use a string to represent the resolution, or two integers. Have the
reconfigure callback print a message if the resolution that is requested
is illegal, and have it jump to the nearest legal resolution. If you use
integers, make the range be the largest range that you can support.
On Fri, 2010-07-23 at 01:58 -0400, Bill Morris wrote:
> Right now I'm working on adding dynamic reconfigure to a camera driver
> and I am having a few issues.
> I'm trying to figure out if there is a way to dynamically generate a
> list of usable resolutions for dynamic reconfigure to use based on which
> device is currently selected. I would like the list of cameras and the
> list of resolutions to both be enums.
> It looks like there is no easy way to do this, and the only possible way
> might be to rebuild the node's .cfg file each time the device is
> If this is the case is it possible to have some sort of callback
> interface in the .cfg file in the future?
> ros-users mailing list
> ros-users at code.ros.org
More information about the ros-users