Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. timestamps for ros messages in voxl_mpa_to_ros_node

timestamps for ros messages in voxl_mpa_to_ros_node

Scheduled Pinned Locked Moved Ask your questions right here!
timerosvoxl-mpa-tools
3 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rapit
    Contributor
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      1
      • R Offline
        R Offline
        rapit
        Contributor
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0

        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
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        ModalAI
        Categories Recent Tags ModalAI.com Docs
        © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups