ros2 / rmw_fastrtps

Implementation of the ROS Middleware (rmw) Interface using eProsima's Fast RTPS.
Apache License 2.0
147 stars 116 forks source link

Use rmw_namespace_validation_result_string() in rmw_create_node #765

Closed christophebedard closed 2 weeks ago

christophebedard commented 4 weeks ago

rmw_namespace_validation_result_string() -- not rmw_node_name_validation_result_string() -- should be called with the validation result from rmw_validate_namespace().

In practice, this meant that the reason given might have been "unknown result code for rmw node name validation" given that rmw_node_name_validation_result_string() doesn't know about all validation results from rmw_validate_namespace(). However, we don't test error messages anywhere and rarely rely on them, so it doesn't/shouldn't affect any tests or functionality.

Related PRs:

christophebedard commented 4 weeks ago

CI is over in https://github.com/ros2/rmw_cyclonedds/pull/497#issuecomment-2150633520