ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

TimeStamp of each topic

asked 2021-01-04 09:51:09 -0500

baklouti-s gravatar image

How is it possible to get the time of each rostopic used of my simulation? Precisely, I want to know when each topic is sent by a node and when is it received by the next node? Thank you for your help!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-01-04 17:16:46 -0500

tryan gravatar image

ROS topics themselves do not have timestamps. Each message on a topic may have a timestamp (if it has a header). Even then the messages are published by one node (maybe with a timestamp), but only a subscribing node knows when it receives the message. Depending on what you're trying to do, there may be ways to get the information you want though. For instance, the subscribing node can log when it receives each message as well as the timestamp from the message header to show when it was sent and received. If you want to use the information online, how do you envision using it?

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-01-04 09:51:09 -0500

Seen: 1,245 times

Last updated: Jan 04 '21