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. mpa_to_ros publish stereo left and right image in different timestamp

mpa_to_ros publish stereo left and right image in different timestamp

Scheduled Pinned Locked Moved Ask your questions right here!
5 Posts 2 Posters 854 Views 1 Watching
  • 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.
  • Dong LiuD Offline
    Dong LiuD Offline
    Dong Liu
    Contributor
    wrote on last edited by
    #1

    Here is the code,

    imgL.header.stamp = (_clock_monotonic_to_ros_time(meta.timestamp_ns));
    imgL.width    = meta.width;
    imgL.height   = meta.height;
    imgL.step     = meta.width;
    imgL.encoding = GetRosFormat(meta.format);
    
    imgR.header.stamp = (_clock_monotonic_to_ros_time(meta.timestamp_ns));
    imgR.width    = meta.width;
    imgR.height   = meta.height;
    imgR.step     = meta.width;
    imgR.encoding = GetRosFormat(meta.format);
    

    They are all from meta.timestamp_ns, but _clock_monotonic_to_ros is using the current time, so the final times are slight different.

    I think it should be
    imgR.header.stamp = imgL.header.stamp

    1 Reply Last reply
    0
    • Chad SweetC Offline
      Chad SweetC Offline
      Chad Sweet
      ModalAI Team
      wrote on last edited by
      #2

      Thanks for the suggestion! We are happy to incorporate our partners merge requests if you want to make one on gitlab!

      1 Reply Last reply
      0
      • Dong LiuD Offline
        Dong LiuD Offline
        Dong Liu
        Contributor
        wrote on last edited by
        #3

        will do soon.

        1 Reply Last reply
        0
        • Dong LiuD Offline
          Dong LiuD Offline
          Dong Liu
          Contributor
          wrote on last edited by
          #4

          MR submitted.

          1 Reply Last reply
          0
          • Dong LiuD Offline
            Dong LiuD Offline
            Dong Liu
            Contributor
            wrote on last edited by
            #5

            Just tried to calibrated the stereo camera using ROS camera calibrator. Had to run the fixed voxl-mpa-to-ros. Because the ROS calibrator expects left and right to be exactly synchronized.

            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