Skip to content

Conversation

@jacobperron
Copy link
Contributor

Bug introduced in #663
Fixes #674

The templated declare_parameter method needs an override (or default value) since
it returns the actual parameter value, otherwise we get an exception.
To correctly declare a parameter without a default value, we should use a different
signature.

Related upstream issue: ros2/rclcpp#1691

The templated declare_parameter method needs an override (or default value) since
it returns the actual parameter value, otherwise we get an exception.
To correctly declare a parameter without a default value, we should use a different
signature.

Related upstream issue: ros2/rclcpp#1691

Signed-off-by: Jacob Perron <[email protected]>
@ayrton04 ayrton04 merged commit 3b2cb79 into cra-ros-pkg:ros2 Jun 17, 2021
@ayrton04
Copy link
Collaborator

Thanks!

@jacobperron jacobperron deleted the fix_declare_param_bug branch June 17, 2021 14:33
emilnovak pushed a commit to EnjoyRobotics/robot_localization that referenced this pull request Jul 26, 2021
…a-ros-pkg#675)

The templated declare_parameter method needs an override (or default value) since
it returns the actual parameter value, otherwise we get an exception.
To correctly declare a parameter without a default value, we should use a different
signature.

Related upstream issue: ros2/rclcpp#1691

Signed-off-by: Jacob Perron <[email protected]>
cesar-lopez-mar pushed a commit to nobleo/robot_localization that referenced this pull request Sep 14, 2021
…a-ros-pkg#675)

The templated declare_parameter method needs an override (or default value) since
it returns the actual parameter value, otherwise we get an exception.
To correctly declare a parameter without a default value, we should use a different
signature.

Related upstream issue: ros2/rclcpp#1691

Signed-off-by: Jacob Perron <[email protected]>
SteveMacenski pushed a commit that referenced this pull request Sep 15, 2021
* Fix runtime exception thrown when parameter override not provided (#675)

The templated declare_parameter method needs an override (or default value) since
it returns the actual parameter value, otherwise we get an exception.
To correctly declare a parameter without a default value, we should use a different
signature.

Related upstream issue: ros2/rclcpp#1691

Signed-off-by: Jacob Perron <[email protected]>

* Fix different time sources error (#679)

Signed-off-by: Christophe Bedard <[email protected]>

Co-authored-by: Jacob Perron <[email protected]>
Co-authored-by: Christophe Bedard <[email protected]>
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