Ask Your Question

use dynamic reconfigure with arrays

asked 2015-07-16 04:01:56 -0600

TheBoris gravatar image


I want to use dynamic reconfiguration to modify an array in a ROS node, but I didn't found any example of how to modify the .cfg file on the web.

I want this line: gen.add("int_param", int_t, 0, "An Integer parameter", 50, 0, 100)

in something kind of: gen.add("int_array", int_t[2], 0, "An Integer array", [50 20], [0 0], [100 100])

Can someone help? Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-07-16 06:59:10 -0600

mgruhler gravatar image

According to this Tutorial, arrays are not allowed:

type - defines the type of value stored, and can be any of int_t, double_t, str_t, or bool_t

Maybe you can achieve what you want by using the group type.

edit flag offensive delete link more


Sorry, but i'm a newbie, what is a group type?

TheBoris gravatar image TheBoris  ( 2015-07-16 11:28:17 -0600 )edit

See the following tutorial. Maybe this gives you a hint.

mgruhler gravatar image mgruhler  ( 2015-07-16 13:26:51 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2015-07-16 04:01:56 -0600

Seen: 1,109 times

Last updated: Jul 16 '15