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. imu to camera delay

imu to camera delay

Scheduled Pinned Locked Moved Ask your questions right here!
9 Posts 2 Posters 1.0k 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.
  • Y Offline
    Y Offline
    yardy
    Contributor
    wrote on last edited by
    #1

    I'm currently working on a setup involving the VOXL 2 platform, and I'm observing some unexpectedly large delays between sensor measurements when using the MPA-to-ROS interface.

    Specifically, I'm seeing:
    350 ms delay between the onboard VOXL 2 IMU readings and the TOF M0178 data.
    170 ms delay between the IMU and the IR camera M0166 data.

    Is there any known filtering, buffering, or image preprocessing occurring on the TOF M0178 or IR camera M0166 streams that might account for the latency?

    What else can cause such latency on my setup?
    Thanks in advance,

    Alex KushleyevA 1 Reply Last reply
    0
    • Y yardy

      I'm currently working on a setup involving the VOXL 2 platform, and I'm observing some unexpectedly large delays between sensor measurements when using the MPA-to-ROS interface.

      Specifically, I'm seeing:
      350 ms delay between the onboard VOXL 2 IMU readings and the TOF M0178 data.
      170 ms delay between the IMU and the IR camera M0166 data.

      Is there any known filtering, buffering, or image preprocessing occurring on the TOF M0178 or IR camera M0166 streams that might account for the latency?

      What else can cause such latency on my setup?
      Thanks in advance,

      Alex KushleyevA Offline
      Alex KushleyevA Offline
      Alex Kushleyev
      ModalAI Team
      wrote on last edited by
      #2

      @yardy , can you please clarify how you are measuring the latency?

      voxl-camera-server sends out TOF data without delay (after performing required processing to generate the depth data) and voxl-imu-server sends out IMU data in batches, depending on the settings in voxl-imu-server.conf. However, there should not be delay of such magnitude at the MPA pipe level.

      It is possible that the data gets backed up in mpa-to-ros application, we can figure it out if you let me know how you are measuring the latency.

      Alex

      Y 1 Reply Last reply
      0
      • Alex KushleyevA Alex Kushleyev

        @yardy , can you please clarify how you are measuring the latency?

        voxl-camera-server sends out TOF data without delay (after performing required processing to generate the depth data) and voxl-imu-server sends out IMU data in batches, depending on the settings in voxl-imu-server.conf. However, there should not be delay of such magnitude at the MPA pipe level.

        It is possible that the data gets backed up in mpa-to-ros application, we can figure it out if you let me know how you are measuring the latency.

        Alex

        Y Offline
        Y Offline
        yardy
        Contributor
        wrote on last edited by
        #3

        @Alex-Kushleyev
        Thanks for replying.

        temporal alignment between the IMU signal and the camera motion, extracted using a calibration target. The IMU and the camera were rigidly attached and moved together as a single unit during the test.

        B.R

        Alex KushleyevA 1 Reply Last reply
        0
        • Y yardy

          @Alex-Kushleyev
          Thanks for replying.

          temporal alignment between the IMU signal and the camera motion, extracted using a calibration target. The IMU and the camera were rigidly attached and moved together as a single unit during the test.

          B.R

          Alex KushleyevA Offline
          Alex KushleyevA Offline
          Alex Kushleyev
          ModalAI Team
          wrote on last edited by
          #4

          @yardy , i understand. Which timestamps are you looking at after temporal alignment? Are those timestamps of ros packets being received or timestamps within the packets themselves?

          Y 1 Reply Last reply
          0
          • Alex KushleyevA Alex Kushleyev

            @yardy , i understand. Which timestamps are you looking at after temporal alignment? Are those timestamps of ros packets being received or timestamps within the packets themselves?

            Y Offline
            Y Offline
            yardy
            Contributor
            wrote on last edited by
            #5

            Hi @Alex-Kushleyev,

            The results I shared earlier are based on the difference between the internal header timestamps of both sensors.

            Also, we measured a delay of approximately 50 ms between the internal header timestamp and the ROS message timestamp for the camera, and about 30 ms for the IMU.

            Alex KushleyevA 1 Reply Last reply
            0
            • Y yardy

              Hi @Alex-Kushleyev,

              The results I shared earlier are based on the difference between the internal header timestamps of both sensors.

              Also, we measured a delay of approximately 50 ms between the internal header timestamp and the ROS message timestamp for the camera, and about 30 ms for the IMU.

              Alex KushleyevA Offline
              Alex KushleyevA Offline
              Alex Kushleyev
              ModalAI Team
              wrote on last edited by
              #6

              @yardy ,

              looking at mpa to ros code..

              The timestamps for the message headers are assigned here :

              https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-to-ros/-/blob/master/catkin_ws/src/src/interfaces/imu_interface.cpp?ref_type=heads#L113

              https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-to-ros/-/blob/master/catkin_ws/src/src/interfaces/camera_interface.cpp#L163

              So the timestamps should be correctly converted to ROS time and not susceptible to any delays in the mpa to ros conversion.

              Are you logging the ros messages using rosbag record and analyzing them offline? Make sure that you are not using the bag timestamp for that.

              Alex

              Y 2 Replies Last reply
              0
              • Alex KushleyevA Alex Kushleyev

                @yardy ,

                looking at mpa to ros code..

                The timestamps for the message headers are assigned here :

                https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-to-ros/-/blob/master/catkin_ws/src/src/interfaces/imu_interface.cpp?ref_type=heads#L113

                https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-to-ros/-/blob/master/catkin_ws/src/src/interfaces/camera_interface.cpp#L163

                So the timestamps should be correctly converted to ROS time and not susceptible to any delays in the mpa to ros conversion.

                Are you logging the ros messages using rosbag record and analyzing them offline? Make sure that you are not using the bag timestamp for that.

                Alex

                Y Offline
                Y Offline
                yardy
                Contributor
                wrote on last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • Alex KushleyevA Alex Kushleyev

                  @yardy ,

                  looking at mpa to ros code..

                  The timestamps for the message headers are assigned here :

                  https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-to-ros/-/blob/master/catkin_ws/src/src/interfaces/imu_interface.cpp?ref_type=heads#L113

                  https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-to-ros/-/blob/master/catkin_ws/src/src/interfaces/camera_interface.cpp#L163

                  So the timestamps should be correctly converted to ROS time and not susceptible to any delays in the mpa to ros conversion.

                  Are you logging the ros messages using rosbag record and analyzing them offline? Make sure that you are not using the bag timestamp for that.

                  Alex

                  Y Offline
                  Y Offline
                  yardy
                  Contributor
                  wrote on last edited by
                  #8

                  @Alex-Kushleyev We found out that we didnt take into account the phase difference when comparing angular rate to angle. Thanks and sorry for the confusion.

                  Alex KushleyevA 1 Reply Last reply
                  0
                  • Y yardy

                    @Alex-Kushleyev We found out that we didnt take into account the phase difference when comparing angular rate to angle. Thanks and sorry for the confusion.

                    Alex KushleyevA Offline
                    Alex KushleyevA Offline
                    Alex Kushleyev
                    ModalAI Team
                    wrote on last edited by
                    #9

                    @yardy , ah, that makes sense!! thank you for clarying.

                    Alex

                    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