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

    Attempt to reduce drift with the help of stereo camera

    Starling & Starling 2
    3
    7
    474
    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.
    • J
      Jetson Nano
      last edited by 29 May 2024, 16:14

      Hello, @James-Strawson @Tom-Kaufmann @Eric-Katzfey
      I've been using Starling for quite a while. Congratulations on a great product.

      One of the things I noticed was that when using voxl-mapper for a significant time (like 15mins), the accumulated drift becomes a serious issue. I want to try and reduce the accumulated drift.

      I possess a stereo camera (from ModalAI itself). The VIO docs (https://docs.modalai.com/flying-with-vio/) mention that - "VIO could be reconfigured to use one of the stereo sensors instead of the tracking sensor".
      I know it says instead but is there a way to use one of the stereo cameras as a second tracking camera? (One of them being the normal 45-degree angled tracking camera and the other being one of the cameras from the front-facing stereo setup.

      I am working on this now, so I'll quickly give you feedback on your suggestions. Any insights or suggestions would be helpful.

      Thank you

      E 1 Reply Last reply 29 May 2024, 16:51 Reply Quote 0
      • E
        Eric Katzfey ModalAI Team @Jetson Nano
        last edited by 29 May 2024, 16:51

        @Jetson-Nano The current version of VIO (qvio) can only use a single sensor at a time. We will be switching to openvins based VIO in the future which does allow multiple sensors.

        J 1 Reply Last reply 3 Jun 2024, 09:24 Reply Quote 0
        • J
          Jetson Nano @Eric Katzfey
          last edited by Jetson Nano 3 Jun 2024, 09:44 3 Jun 2024, 09:24

          @Eric-Katzfey

          Understood. Thanks for the help.
          Another option is to use an OpticalFlow/Rangefinder with an external FC. I have completed this setup successfully. I can use my MAV in position mode with the fused odometry without issues. VOA works as well.

          I know from the docs and GitLab that voxl-mapper takes 2 inputs whub_body_wrt_fixed and tof. Is there a way to pass the fused odometry instead of whub_body_wrt_fixed? [ I want the mapper to use this data instead of whub_body_wrt_fixed]. The message type of the fused odometry is nav_msgs/Odometry.

          1. Will I need to modify the voxl-mavlink-server to achieve this?
          2. How do I get the mapper to use the fused odometry data?
          E 1 Reply Last reply 3 Jun 2024, 16:08 Reply Quote 0
          • E
            Eric Katzfey ModalAI Team @Jetson Nano
            last edited by 3 Jun 2024, 16:08

            @Jetson-Nano Could you please start a new forum post for this topic? It won't get much attention buried in this post. Thanks!

            J 1 Reply Last reply 4 Jun 2024, 10:51 Reply Quote 0
            • J
              Jetson Nano @Eric Katzfey
              last edited by 4 Jun 2024, 10:51

              @Eric-Katzfey
              Will do. Thanks again

              J 1 Reply Last reply 9 Jul 2024, 07:23 Reply Quote 0
              • J
                Jetson Nano @Jetson Nano
                last edited by Jetson Nano 9 Jul 2024, 07:33 9 Jul 2024, 07:23

                Hey @Eric-Katzfey @modaltb @James-Strawson,

                In voxl-qvio-server, I'm planning to use one of the ov7251 camera module from the stereo pair as tracking camera. How do I edit and define the extrinsics and instrinsics for the same in the voxl-qvio-server config file?

                J 1 Reply Last reply 16 Jul 2024, 22:43 Reply Quote 0
                • J
                  James Strawson ModalAI Team @Jetson Nano
                  last edited by 16 Jul 2024, 22:43

                  @Jetson-Nano If you are using a stereo-pair that are being published together on the same pipe like on a Seeker, M500, or Sentinel, then you should just need to set up the following config files:

                  /etc/modalai/voxl-qvio-server.conf:

                      "cam_name":     "stereo", (or stereo_front for sentinel)
                      "lens_cal_path":        "/data/modalai/opencv_stereo_intrinsics.yml", (or stereo_front_intrinsics for Sentinel)
                      "cam_extrinsics_name":  "stereo_l", (or stereo_front_l for sentinel)
                      "use_second_cam_if_stereo":     false,
                  

                  To use the right camera, you can swap "use_second_cam_is_stereo" to true, and qvio will pull in instrinsic lens params from the right camera which is also part of the same intrinsics file. Note that we only have camera locations in the extrinsics files for the left camera, but you can add to /etc/modalai/extrinsics.conf an entry for the right camera if you wish.

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