[ROS2 foxy] ros2 topic pub - with current timestamp

asked 2021-02-16 08:22:43 -0600

anastasiaPan gravatar image

I want to publish a message with ros2 topic pub but use current time as a timestamp If I do not publish anything to the stamp or header fields then they are 0. I remember in ros1 you could publish with header:auto or stamp:now. Is there an equivalent for ros2?

edit retag flag offensive close merge delete


did you find how to do it? I couldn't find any resources about that

charlie92 gravatar image charlie92  ( 2021-04-27 15:45:31 -0600 )edit

No I haven't

anastasiaPan gravatar image anastasiaPan  ( 2021-05-05 10:07:39 -0600 )edit