Skip to content

Fix deprecation warning calling declare_parameter#642

Merged
JWhitleyWork merged 1 commit into
ros-perception:ros2from
jacobperron:fix_deprecation_warning
Mar 18, 2021
Merged

Fix deprecation warning calling declare_parameter#642
JWhitleyWork merged 1 commit into
ros-perception:ros2from
jacobperron:fix_deprecation_warning

Conversation

@jacobperron
Copy link
Copy Markdown
Contributor

@jacobperron jacobperron commented Mar 18, 2021

As of ros2/rclcpp#1522 (upcoming in Galactic), we must also declare the type of the parameter.
We can do this implicitly by providing a default value.

Prior to this change, distance_ was being default-initialized to 0.0 anyways.

As of ros2/rclcpp#1522, we must also declare the type of the parameter.
We can do this implicitly by providing a default value.

Prior to this change, distance_ was being default-initialized to 0.0 anyways.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@JWhitleyWork JWhitleyWork merged commit ad431c2 into ros-perception:ros2 Mar 18, 2021
@jacobperron jacobperron deleted the fix_deprecation_warning branch March 18, 2021 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants