ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    imu to camera delay

    Ask your questions right here!
    2
    6
    36
    Loading More Posts
    • 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
      yardy
      last edited by

      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 Reply Quote 0
      • Alex KushleyevA
        Alex Kushleyev ModalAI Team @yardy
        last edited by

        @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 Reply Quote 0
        • Y
          yardy @Alex Kushleyev
          last edited by

          @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 Reply Quote 0
          • Alex KushleyevA
            Alex Kushleyev ModalAI Team @yardy
            last edited by

            @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 Reply Quote 0
            • Y
              yardy @Alex Kushleyev
              last edited by

              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 Reply Quote 0
              • Alex KushleyevA
                Alex Kushleyev ModalAI Team @yardy
                last edited by

                @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

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Powered by NodeBB | Contributors