-
Notifications
You must be signed in to change notification settings - Fork 10
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
Expand timestamps for std_msgs.msg.Header and builtin_interfaces.msg.Time if 'auto' and 'now' are passed as values #19
Expand timestamps for std_msgs.msg.Header and builtin_interfaces.msg.Time if 'auto' and 'now' are passed as values #19
Conversation
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.
LGTM!
The change seems fine to me, it's backwards compatible, even if it adds a return value to the function.
It would be good to move the test cases here as well.
I will tag one of the maintainers of this package for review.
…Time if 'auto' and 'now' are passed as values Signed-off-by: Esteve Fernandez <esteve.fernandez@tier4.jp>
8366636
to
e6c8d6d
Compare
@ivanpauno I've updated this PR with the tests from ros2/ros2cli#749 |
e6c8d6d
to
5250ba5
Compare
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.
LGTM
Signed-off-by: Esteve Fernandez <esteve.fernandez@tier4.jp>
5250ba5
to
167cd76
Compare
@sloretz could you take a look to this PR? |
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.
This looks really useful! I recommend adding test cases for when now
and auto
are used but expand_header_auto
and expeand_time_now
are False, but I won't block on that.
Signed-off-by: Esteve Fernandez <esteve.fernandez@tier4.jp>
@esteve could you fix the flake8 failures? |
Signed-off-by: Esteve Fernandez <esteve.fernandez@tier4.jp>
@ivanpauno done in 9e07e52 The import order does not look pretty IMHO, but it makes flake8 happy. |
Merge the logic from ros2/ros2cli#749 into
set_message_fields
Closes ros2/ros2cli#700