ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Know it's been a long time but: You can't have an array of values, however, you can use a string with a comma deliminator between the values.

For example

gen.add("vals", str_t, 0, "A comma delimited list", "1,2,3,4")

later on you can break it into an array in your code. In python it's really ease, just use you_string.split(',')