Skip to content
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

ros2 topic pub auto header #700

Closed
CourchesneA opened this issue Mar 9, 2022 · 4 comments · Fixed by #749 or ros2/rosidl_runtime_py#19
Closed

ros2 topic pub auto header #700

CourchesneA opened this issue Mar 9, 2022 · 4 comments · Fixed by #749 or ros2/rosidl_runtime_py#19
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@CourchesneA
Copy link

Feature request

Feature description

ROS1 allowed automatic filling of header and timestamp using keywords 'now' and 'auto'. It would be great to have that functionality in ROS2

Implementation considerations

ex.

ros2 topic pub my_topic geometry_msgs/TwistStamped '{header: auto}'

Expected behavior

geometry_msgs.msg.TwistStamped(header=std_msgs.msg.Header(stamp=builtin_interfaces.msg.Time(sec=1646834300, nanosec=280516750), frame_id=''), twist=geometry_msgs.msg.Twist(linear=geometry_msgs.msg.Vector3(x=0.0, y=0.0, z=0.0), angular=geometry_msgs.msg.Vector3(x=0.0, y=0.0, z=0.0)))

Actual behavior

Failed to populate field: Value 'auto' is expected to be a dictionary but is a str

@fujitatomoya
Copy link
Collaborator

ROS 1 wiki: http://wiki.ros.org/ROS/YAMLCommandLine#Headers.2Ftimestamps, this sounds reasonable to me. I would like to hear from others.

@clalancette
Copy link
Contributor

@ivanpauno @esteve Could you add a note to the Iron Irwini release page? That way we'll have it queued up for release time.

@esteve
Copy link
Member

esteve commented Sep 7, 2022

@clalancette I just submitted ros2/ros2_documentation#2998

@clalancette
Copy link
Contributor

@clalancette I just submitted ros2/ros2_documentation#2998

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
4 participants