Repository navigation
move time files from rcl - #25
Conversation
|
I don't feel really strong about it, but by just quickly browsing through the files, I have the feeling that this PR deserves a different place than rcutils. Does it make sense to create a ros-time related package? From what I've seen this PR is the complete implementation of time and thus goes beyond only utility functions. But I might be wrong. |
|
@Karsten1987 I kind of see what you are saying, but I think this still counts as a utility, and thus it belongs in rcutils. However, it might make sense to make it a different package/library underneath rcutils; what do you think about that? |
|
I tend to agree with @Karsten1987 maybe the time utilities deserve a specific package within the rcutils repository. But same as previous comments I don't feel very strongly about it. |
|
I would also agree that putting the
But that's a lot of work, so maybe there is a compromise to be made, like putting the ros time source stuff back into
I don't see a need for another package just for time. I think that everything except the "ros time" time source could easily belong in |
|
My thinking behind this is that I believe that such a time package will
become bigger in the future (with sim time etc.) and having this a separate
package could allow ros2 agnostic packages such as TF2 use the same time
format than the ros2 stack without strongly depending on rcl*.
…On Thu, Jun 1, 2017 at 12:01 PM, William Woodall ***@***.***> wrote:
I would also agree that putting the *_ros_time_source_t and related
functions in here is not quite right. Ideally (IMO) these pr's would have:
- moved everything *but* the ros time source stuff here (#23 (comment)
<#23 (comment)>)
- create aliases from the rcutils_time* types and functions to
rcl_time* equivalents (removes the need for ros2/rclcpp#332
<ros2/rclcpp#332>)
- For me the fact that the generic "time source" types and
functions live in rcutils is an implementation detail of rcl.
- add ros time stuff amongst the rcl aliases to rcutils, extending
what's already there
- this provides a "unified" interface for time for users of rcl
(like rclcpp and rclpy)
But that's a lot of work, so maybe there is a compromise to be made, like
putting the ros time source stuff back into rcl and just leaving the
discrepancy in namespace. The other middle ground of moving everything to
rcutils including the ros time source, is not as good of a compromise
though I think.
I tend to agree with @Karsten1987 <https://github.com/karsten1987> maybe
the time utilities deserve a specific package within the rcutils repository.
I don't see a need for another package just for time. I think that
everything except the "ros time" time source could easily belong in
rcutils. For those in favor of that, what does a package just for time
get us?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#25 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFKzYYEPQnzOsqycFe-GxApYKh7wXTbJks5r_wqDgaJpZM4NtWcq>
.
|
It was more going in the direction of having the "ros time stuff" dissociated from the common utilities that are purely ros agnostic (as you expressed it much more clearly than me in your comment) than wanting the time utilities to have their own package. The additional package seemed to be the least amount of work allowing to not mix them in the same package. but I'm in favor of whatever compromise allowing this to move forward |
|
There is also the other alternative I proposed (#23 (comment)), which I think might be the best of the alternatives, though maybe I didn't describe it properly. Basically you would:
I think this requires more nuance than just moving everything, but it also provides the cleanest break between the logging macros and the time source concept. |
I think that's an admirable goal, but I see it as a separate decision from how to let the logging macros live in Also, anything using sim time will need a node to initialize sim time. It's possible that the interface, behind which sim time is implemented, could be generic and not tied to |
The wrapping function can't be as simple as Anyway since we need a decision quickly on this topic I will schedule an in-person meeting for this today. |
We're sort of having the same conversation in two places, but as I said there you can have the |
|
The conclusion of the ad hoc meeting was to only move the functionality to retrieve the current steady time from I will update this as related PRs accordingly soon. |
Previous CI builds looked good - the latest set addresses some linter warnings:
Please review since this is necessary to move forward on the logging API.