Skip to content

move time files to rcutils - #140

Merged
dirk-thomas merged 1 commit into
masterfrom
move_time
Jun 2, 2017
Merged

dirk-thomas merged 1 commit into
masterfrom
move_time

Conversation

@dirk-thomas

Copy link
Copy Markdown
Member

Connect to ros2/rcutils#25.

Please review.

@dirk-thomas dirk-thomas added the in review Waiting for review (Kanban column) label Jun 1, 2017
@dirk-thomas dirk-thomas self-assigned this Jun 1, 2017

@wjwwood wjwwood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm fine with this as-is, but I made a suggestion that I think might be worth doing.

Comment thread rcl/include/rcl/time.h
RCL_PUBLIC
RCL_WARN_UNUSED
rcl_ret_t
rcl_steady_time_now(rcl_time_point_value_t * now);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It will also remove the need for several other changes in this pr.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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.

@dirk-thomas
dirk-thomas merged commit 14a4966 into master Jun 2, 2017
@dirk-thomas
dirk-thomas deleted the move_time branch June 2, 2017 05:11
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label Jun 2, 2017
emersonknapp pushed a commit to aws-ros-dev/rcl that referenced this pull request Jun 3, 2019
* 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]>
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.

2 participants