timestamps for ros messages in voxl_mpa_to_ros_node
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 (
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?
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.