-
Notifications
You must be signed in to change notification settings - Fork 74
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
Update node name matcher #282
Conversation
The node name must be fully qualified, with a namespace, for matching. This change makes the slash optional for convenience. For example, the following two calls are now equivalent: matches_node_name('/foo') matches_node_name('foo') Signed-off-by: Jacob Perron <jacob@openrobotics.org>
The matcher function 'matches_node_name' is not specific to lifecycle nodes, so it makes sense for it to live in a more general module. Add a deprecation warning to the matcher in the lifecycle module. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
I was thinking maybe launch_ros.events.matchers
should be a folder and each matcher should get it's own file, but we can always do that later.
I am mimicking though, I don't mind moving things into a |
I don't mind, but we can change that in the future without a deprecation cycle. |
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Moved into |
This PR does a few things:
matches_node_name
to a more generalmatchers
module (deprecating the old function) (3e2cc1c)matches_node_name
(479272c)