How to get in ros2 rqt_reconfigure a pulldown menue?

asked 2022-02-21 08:50:33 -0500

Markus Bader gravatar image

updated 2022-02-21 08:51:46 -0500

Hi,

I was able to create ROS2 parameters with limits which do pop up in the rqt_reconfigure with a slide bar?

    rcl_interfaces::msg::ParameterDescriptor descriptor;
    rcl_interfaces::msg::IntegerRange range;
    range.set__from_value(0).set__to_value(100).set__step(1);
    descriptor.integer_range= {range};
    this->declare_parameter("test", 1, descriptor);

image description

Is there also a way to get a pull-down menu with options to select, similar to the old dynamic_reconfigure of ROS1?

Thanks

edit retag flag offensive close merge delete

Comments

I also have same question. Please help !! I have tried to use yaml file to make parameter as an int array. However, this does not make it a drop-down menu. Instead, I can not see it on the rqt and need to use command to see the value. Need some others help to answer it.

bryan gravatar image bryan  ( 2023-06-19 20:35:30 -0500 )edit