Repository navigation
move time files to rcutils - #140
Conversation
wjwwood
left a comment
There was a problem hiding this comment.
I'm fine with this as-is, but I made a suggestion that I think might be worth doing.
| RCL_PUBLIC | ||
| RCL_WARN_UNUSED | ||
| rcl_ret_t | ||
| rcl_steady_time_now(rcl_time_point_value_t * now); |
There was a problem hiding this comment.
If you alias these two functions you can get rid of the pull request in rclcpp: https://github.com/ros2/rclcpp/pull/332/files
And the API of rcl's time functions will remain unchanged due to these pr's.
There was a problem hiding this comment.
It will also remove the need for several other changes in this pr.
There was a problem hiding this comment.
I don't think the functions should be aliases. First, that makes it harder to see where the functionality is coming from. Second, in this case the function is not even supposed to be used by users of rcl anyway. Users will use the time source / time source type instead. Therefore I would prefer to leave this as-is.
* Update after launch_testing features becoming legacy. Signed-off-by: Michel Hidalgo <[email protected]> * Migrate rcutils tests to new launch_testing API. Signed-off-by: Michel Hidalgo <[email protected]> * Stop using injected attributes in launch tests. Signed-off-by: Michel Hidalgo <[email protected]>
Connect to ros2/rcutils#25.
Please review.