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

ModalAI Forum

  1. ModalAI Support Forum
  2. Software Development
  3. AprilTag Relocalization
  4. Hires With AprilTags

Hires With AprilTags

Scheduled Pinned Locked Moved AprilTag Relocalization
6 Posts 2 Posters 3.3k 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.
  • jacob yaacubovJ Offline
    jacob yaacubovJ Offline
    jacob yaacubov
    Contributor
    wrote on last edited by
    #1

    Hi guys i have a hires IMX412 mounted on my drone , my camera is looking to the right side of the drone (Positive y axis on the local frame)

    I have configured the tag rotation matrix from tag to fixed correctly my tag is hanged on the wall.

    but seems the drone rotating 90 degrees CCW, I guess its doing this since it assumes the camera which is catching the tag, is mounted at the front
    hence, when right side camera sees the tag it rotates to the left (ccw) to "fix" this!

    I tried to add extrinsics to extrinsics.conf both from IMU to hires and from body to hires with the correct camera name (which used in voxl-camera-server)
    but it has no effect
    any one had this issue ? any suggestions ? does the voxl code is really taking into account that tags are seen only in front of the drone (X axis)
    Screenshot from 2024-07-28 12-54-01.png
    Thanks

    jacob yaacubovJ 1 Reply Last reply
    0
    • jacob yaacubovJ jacob yaacubov

      Hi guys i have a hires IMX412 mounted on my drone , my camera is looking to the right side of the drone (Positive y axis on the local frame)

      I have configured the tag rotation matrix from tag to fixed correctly my tag is hanged on the wall.

      but seems the drone rotating 90 degrees CCW, I guess its doing this since it assumes the camera which is catching the tag, is mounted at the front
      hence, when right side camera sees the tag it rotates to the left (ccw) to "fix" this!

      I tried to add extrinsics to extrinsics.conf both from IMU to hires and from body to hires with the correct camera name (which used in voxl-camera-server)
      but it has no effect
      any one had this issue ? any suggestions ? does the voxl code is really taking into account that tags are seen only in front of the drone (X axis)
      Screenshot from 2024-07-28 12-54-01.png
      Thanks

      jacob yaacubovJ Offline
      jacob yaacubovJ Offline
      jacob yaacubov
      Contributor
      wrote on last edited by
      #2

      @jacob-yaacubov the picture describes TOP VIEW the tag is attached to a wall

      Alex KushleyevA 1 Reply Last reply
      0
      • jacob yaacubovJ jacob yaacubov

        @jacob-yaacubov the picture describes TOP VIEW the tag is attached to a wall

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

        @jacob-yaacubov , it seems the voxl tag detector sends out the tag info with respect to the camera (not drone) frame : https://gitlab.com/voxl-public/voxl-sdk/services/voxl-tag-detector/-/blob/master/server/main.cpp

        You can check the consumer of the tag data to see what transforms it is using to put the tag in the global frame.

        Alex

        jacob yaacubovJ 1 Reply Last reply
        0
        • Alex KushleyevA Alex Kushleyev

          @jacob-yaacubov , it seems the voxl tag detector sends out the tag info with respect to the camera (not drone) frame : https://gitlab.com/voxl-public/voxl-sdk/services/voxl-tag-detector/-/blob/master/server/main.cpp

          You can check the consumer of the tag data to see what transforms it is using to put the tag in the global frame.

          Alex

          jacob yaacubovJ Offline
          jacob yaacubovJ Offline
          jacob yaacubov
          Contributor
          wrote on last edited by jacob yaacubov
          #4

          @Alex-Kushleyev
          basically the consumer is the vision hub
          specifically [https://gitlab.com/voxl-public/voxl-sdk/services/voxl-vision-hub/-/blob/v1.7.3/src/geometry.c?ref_type=tags](link url)
          as far as i understood
          and i am trying to fix the right part

          the issue lies in this transformation i marked red .. i think i need to change the cam_wrt_to_imu since it looks like
          the code assumes my hires in looking forward of the drone while its actually mounted on the right side ( Local frames Y axis)
          so tag works well and detection of my tag on fixed is Ok but when afterwards drown is moving with just qvio without tag the axis are flipped

          d45f4d1b-a3cc-43c3-9681-8353e353be1b-image.png

          voxl-vision-hub -g output
          example
          781e3a82-4240-4564-8fe9-6e1e6b1b655a-image.png

          y can see that fixed_wrt_local x=-0.83 while it corresponds to the local_wrt_fixed y= 0.83 so the frames i get from both arrow in the pic above are not the same do you have suggestions where should i start with , should i modify the geometry.c?

          Alex KushleyevA 1 Reply Last reply
          0
          • jacob yaacubovJ jacob yaacubov

            @Alex-Kushleyev
            basically the consumer is the vision hub
            specifically [https://gitlab.com/voxl-public/voxl-sdk/services/voxl-vision-hub/-/blob/v1.7.3/src/geometry.c?ref_type=tags](link url)
            as far as i understood
            and i am trying to fix the right part

            the issue lies in this transformation i marked red .. i think i need to change the cam_wrt_to_imu since it looks like
            the code assumes my hires in looking forward of the drone while its actually mounted on the right side ( Local frames Y axis)
            so tag works well and detection of my tag on fixed is Ok but when afterwards drown is moving with just qvio without tag the axis are flipped

            d45f4d1b-a3cc-43c3-9681-8353e353be1b-image.png

            voxl-vision-hub -g output
            example
            781e3a82-4240-4564-8fe9-6e1e6b1b655a-image.png

            y can see that fixed_wrt_local x=-0.83 while it corresponds to the local_wrt_fixed y= 0.83 so the frames i get from both arrow in the pic above are not the same do you have suggestions where should i start with , should i modify the geometry.c?

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

            @jacob-yaacubov , I am not 100% sure but it looks like the code assumes that the tags are being detected by the same camera that is doing vio (tracking camera). In your case this assumption is not true, because you are using Hires camera for the tag detection.

            I need to check with @James-Strawson about this, but he is out of office. I will ask around.

            Alex

            jacob yaacubovJ 1 Reply Last reply
            0
            • Alex KushleyevA Alex Kushleyev

              @jacob-yaacubov , I am not 100% sure but it looks like the code assumes that the tags are being detected by the same camera that is doing vio (tracking camera). In your case this assumption is not true, because you are using Hires camera for the tag detection.

              I need to check with @James-Strawson about this, but he is out of office. I will ask around.

              Alex

              jacob yaacubovJ Offline
              jacob yaacubovJ Offline
              jacob yaacubov
              Contributor
              wrote on last edited by
              #6

              @Alex-Kushleyev yes seems like it, thank you!

              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

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