-
Notifications
You must be signed in to change notification settings - Fork 139
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
Adding a simple helper function for converting rclrs::Time
to a ros message
#359
Conversation
message This commit adds a simple conversion function that would converts Time to builtin_interfaces like the one in rclpy. Signed-off-by: Arjo Chakravarty <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this! Nice and simple, easy to understand, and helps the end user to do their job more efficiently. Thank you!
Only catch is that there appears to be some formatting issues that the linter isn't happy about. Would you be able to modify your submission so that the linter lets the rest of the tests run? Apart from that, this looks pretty good to me!
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arjo129 thank you so much! This looks great, I only have one minor style request, but I've approved this PR anyway so that it can be merged
Signed-off-by: Arjo Chakravarty <[email protected]>
Looks like my last commit dismissed the review 🤷 . I'd be happy to make similar PRs for Duration and the time going the other way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope! Looks good to me!
Thank you very much for the contribution!
This commit adds a simple conversion function that converts Time to
builtin_interfaces::msg::Time
like the one inrclpy
.