Ask Your Question
0

ROS2 Galactic rclpy.parameter.Parameter missing floating_point_range and integer_range no longer availabe

asked 2021-09-22 04:23:07 -0600

lora gravatar image

Hi all. I started using ROS2 Galactic and realized that the parameters 'floating_point_range' and 'integer_range' for rclpy.parameter.Parameter are now missing, yet the rclcpp does have them.

I searched in the changelog but did not find any entry regarding this. Afaik no question has been posted either.

What is the correct way to enforce the ranges in galactic rclpy?

Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-09-22 04:37:25 -0600

lora gravatar image

I found the answer to my own question, leaving here in case someone needs it:

Instead of declaring the ranges in the instantiation of Parameter directly, use a ParameterDescriptor for it.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2021-09-22 04:23:07 -0600

Seen: 14 times

Last updated: Sep 22 '21