0
$\begingroup$

Rosanswers logo

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!


Originally posted by baklouti-s on ROS Answers with karma: 30 on 2021-01-04

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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?


Originally posted by tryan with karma: 1421 on 2021-01-04

This answer was ACCEPTED on the original site

Post score: 0

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.