Skip to content

ComponentManager should just ignore unknown extra argument in the bas…#2723

Merged
ahcorde merged 2 commits intorollingfrom
fujitatomoya/component-manager-option-parser
Jan 10, 2025
Merged

ComponentManager should just ignore unknown extra argument in the bas…#2723
ahcorde merged 2 commits intorollingfrom
fujitatomoya/component-manager-option-parser

Conversation

@fujitatomoya
Copy link
Copy Markdown
Collaborator

…e class.

closes ros2/domain_bridge#85

introduced by #2685 (only rolling has this code)

…e class.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Copy link
Copy Markdown
Collaborator Author

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mjcarroll can you take a look? since you reviewed #2685?

Comment on lines -226 to -228
} else {
throw ComponentManagerException("Extra component argument '" + extra_argument.get_name() +
"' is not supported");
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this throw is added to check the unknown extra arguments in the base class.

but i do not think it should throw exception in the base class, instead it should ignore all unknown extra arguments in the base class. exception can only be thrown if the supported argument parameter type is unexpected just like before. so that child class can override this method to add more extra arguments to support. (it can actually try&catch the exception in the child class, but I think throwing exception is not correct here in the 1st place.)

this fixes the issue ros2/domain_bridge#85

@fujitatomoya
Copy link
Copy Markdown
Collaborator Author

rpr job says test also needs to be adjusted.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
@fujitatomoya
Copy link
Copy Markdown
Collaborator Author

Pulls: #2723
Gist: https://gist.githubusercontent.com/fujitatomoya/4ba40095368841179e3ef1202b90f3db/raw/e78a92751445e97b6537afebb04c20b20dbfcaf1/ros2.repos
BUILD args: --packages-above-and-dependencies rclcpp_components
TEST args: --packages-above rclcpp_components
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/15046

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@ahcorde ahcorde merged commit 80768ed into rolling Jan 10, 2025
@ahcorde ahcorde deleted the fujitatomoya/component-manager-option-parser branch January 10, 2025 09:07
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.

rolling github workflow and Rpr job is failing.

3 participants