0
$\begingroup$

Rosanswers logo

Hello,

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!


Originally posted by TheBoris on ROS Answers with karma: 35 on 2015-07-16

Post score: 1

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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.


Originally posted by mgruhler with karma: 12390 on 2015-07-16

This answer was ACCEPTED on the original site

Post score: 0


Original comments

Comment by TheBoris on 2015-07-16:
Sorry, but i'm a newbie, what is a group type?

Comment by mgruhler on 2015-07-16:
See the following tutorial. Maybe this gives you a hint.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.