Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for already declared parameter #476

Open
wants to merge 1 commit into
base: rolling
Choose a base branch
from

Conversation

ipa-dmo
Copy link

@ipa-dmo ipa-dmo commented Aug 12, 2024

When using the same parameter for several instances of the filter or a filter chain (like in some ros2 forks of your elevation mapping repository), it will throw rclcpp::exceptions::ParameterAlreadyDeclaredException.
This PR just checks if the parameter already exists before declaring it.

@ipa-dmo
Copy link
Author

ipa-dmo commented Aug 20, 2024

The PR ros/filters#80 in the filterchain base class prevents the rclcpp::exceptions::ParameterAlreadyDeclaredException based on the filter name and type declarations. For the different parameter of the single grid map filters, a check inside your ParameterReader is necessary.

@Ryanf55 Ryanf55 added the ros2 Affects ROS 2 label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ros2 Affects ROS 2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants