timestamps for ros messages in voxl_mpa_to_ros_node
-
Hey,
I noticed that the timestamps in the ros message header are always relative to boot time. Even if I synchronized the system time with the internet time or via chrony and restarted the services (dfs-server,voxl-vision-px4). Can I somehow get the system timestamps in my message? This is essential when being part of a larger ros network.If it is intended like that, the best way would probably to replace the stamp with some rostime in the voxl node or is there some preferred way?
Thanks
-
Hey @rapit,
voxl-mpa-to-ros simply republishes our MPA messages over ROS, and it reuses the timestamp that the original server gives the message. As this behavior is intended, you could replace the stamp in any interface file you are using with a rostime call, such as here in the camera interface for example: https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-to-ros/-/blob/master/catkin_ws/src/src/interfaces/camera_interface.cpp#L102
-
Thanks for the answer, yes I already looked into the code. I was just wondering why the servers timestamp differs from the system timestamp. But then I will change the node accordingly.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login