[ROS2 foxy] ros2 topic pub - with current timestamp
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?
did you find how to do it? I couldn't find any resources about that
No I haven't