-
Notifications
You must be signed in to change notification settings - Fork 44
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
Guard against invalid key names #117
Conversation
In particular, guard against keys that only consist of whitespace and '/' characters. The error message is also improved slightly. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
This was written at the time where node namespace / names conventions were not enforced. |
Good idea. Considering this is a Python package, what do you think about depending on |
That sounds good 👍 What looks like the ideal outcome would be to have these utilities in a separate package and be used by both As this is more work (and would require to preserve the rclpy API if fix for Dashing) than directly using the rclpy functions, it may make sense to just do that for now and ticket the remaining items for a later date. |
What's wrong with leaving the validation functions in rclpy? It seems to me that if any other Python tool wants to validate ROS names then the Python ROS client library would be the package to rely on. |
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
That's a good point 👍 |
In particular, guard against keys that only consist of whitespace and '/' characters. The error message is also improved slightly. * Use name validation functions from rclpy * Add test for key name validation function Signed-off-by: Jacob Perron <jacob@openrobotics.org>
In particular, guard against keys that only consist of whitespace and '/' characters. The error message is also improved slightly. * Use name validation functions from rclpy * Add test for key name validation function Signed-off-by: Jacob Perron <jacob@openrobotics.org>
In particular, guard against keys that only consist of whitespace and '/' characters. The error message is also improved slightly. * Use name validation functions from rclpy * Add test for key name validation function Signed-off-by: Jacob Perron <jacob@openrobotics.org>
In particular, guard against keys that only consist of whitespace and '/' characters.
The error message is also improved slightly.
Fixes #113