[ros-users] another dynamic_reconfigure question

Jack O'Quin jack.oquin at gmail.com
Fri Jul 23 15:07:31 UTC 2010


On Fri, Jul 23, 2010 at 12:58 AM, Bill Morris <morris at ee.ccny.cuny.edu> 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
> changed.

You are right that there is presently no easy way. I had not thought
about dynamically generating the .cfg file. That might work, but seems
messy and likely to break as dynamic_reconfigure evolves in future
releases.

> If this is the case is it possible to have some sort of callback
> interface in the .cfg file in the future?

I believe that is likely. Other drivers have similar needs. Exactly
how it should work is not clear yet (to me). Perhaps Blaise has some
more concrete ideas.
-- 
 joq



More information about the ros-users mailing list