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. Apriltag relocalization not relocalizing?

Apriltag relocalization not relocalizing?

Scheduled Pinned Locked Moved AprilTag Relocalization
13 Posts 6 Posters 4.2k Views 2 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.
  • K Offline
    K Offline
    Kessie
    Contributor
    wrote on last edited by
    #1

    Hi,
    We have enabled en_tag_fixed_frame in voxl-vision-hub to use apriltag detection as a way to relocalize indoor.
    Am i correct to assume that the following is a tag located on the ground at point 0,0,0?
    "T_tag_wrt_fixed": [0, 0, 0],
    "R_tag_to_fixed": [[0, -1, 0], [1, 0, 0], [0, 0, 1]]

    What would be the rotation matrix for a tag located forward against the wall?
    What's the best way to test that the relocalisation actually happens?


    system-image: 1.7.10-M0054-14.1a-perf
    kernel: #1 SMP PREEMPT Fri Sep 27 21:59:02 UTC 2024 4.19.125

    hw platform: M0054
    mach.var: 1.0.1

    voxl-suite: 1.3.5

    1 Reply Last reply
    0
    • James StrawsonJ Offline
      James StrawsonJ Offline
      James Strawson
      ModalAI Team
      wrote on last edited by
      #2

      yes, that's the correct rotation matrix for a tag on the ground.

      For a tag on the wall with a center 1m off the ground you can use:
      "T_tag_wrt_fixed": [0, 0, -1],
      "R_tag_to_fixed": [[0, 0, 1], [1, 0, 0], [0, 1, 0]]

      The second video of this docs page walks you through the voxl-vision-hub command line args to help you debug relocalization.

      K 2 Replies Last reply
      1
      • James StrawsonJ James Strawson

        yes, that's the correct rotation matrix for a tag on the ground.

        For a tag on the wall with a center 1m off the ground you can use:
        "T_tag_wrt_fixed": [0, 0, -1],
        "R_tag_to_fixed": [[0, 0, 1], [1, 0, 0], [0, 1, 0]]

        The second video of this docs page walks you through the voxl-vision-hub command line args to help you debug relocalization.

        K Offline
        K Offline
        Kessie
        Contributor
        wrote on last edited by
        #3

        @James-Strawson Hi, we are testing this and are keep getting roll/pitch out of bounds while the tag is laying flat on the floor.

        1 Reply Last reply
        0
        • James StrawsonJ James Strawson

          yes, that's the correct rotation matrix for a tag on the ground.

          For a tag on the wall with a center 1m off the ground you can use:
          "T_tag_wrt_fixed": [0, 0, -1],
          "R_tag_to_fixed": [[0, 0, 1], [1, 0, 0], [0, 1, 0]]

          The second video of this docs page walks you through the voxl-vision-hub command line args to help you debug relocalization.

          K Offline
          K Offline
          Kessie
          Contributor
          wrote on last edited by
          #4

          @James-Strawson we are still trying to understand this behaviour.
          After several tests, we noticed that with the default SDK 1.4.1 on Starling 2 Max with C29 camera config :

          • If holding an apriltag in front of the front-tracking camera ([[0, 0, 1], [1, 0, 0], [0, 1, 0]]), we need to turn it counterclockwise 90 degrees to not have the "out of bounds" error
          • If holding an apriltag at the bottom camera ([[0, -1, 0], [1, 0, 0], [0, 0, 1]]), we are unable to remote the error

          We have found this as well : https://forum.modalai.com/topic/2653/stereo-tag-detection-warning-apriltag-roll-pitch-out-of-bounds?_=1741697621820
          However, this code also keeps giving strange out of bounds errors.
          Is it possible to show a working tag_locations.conf for both a tag on the ground and a tag against the wall?
          We are not really experienced in the transforms needed and it seems like a problem with that

          K 1 Reply Last reply
          0
          • K Kessie

            @James-Strawson we are still trying to understand this behaviour.
            After several tests, we noticed that with the default SDK 1.4.1 on Starling 2 Max with C29 camera config :

            • If holding an apriltag in front of the front-tracking camera ([[0, 0, 1], [1, 0, 0], [0, 1, 0]]), we need to turn it counterclockwise 90 degrees to not have the "out of bounds" error
            • If holding an apriltag at the bottom camera ([[0, -1, 0], [1, 0, 0], [0, 0, 1]]), we are unable to remote the error

            We have found this as well : https://forum.modalai.com/topic/2653/stereo-tag-detection-warning-apriltag-roll-pitch-out-of-bounds?_=1741697621820
            However, this code also keeps giving strange out of bounds errors.
            Is it possible to show a working tag_locations.conf for both a tag on the ground and a tag against the wall?
            We are not really experienced in the transforms needed and it seems like a problem with that

            K Offline
            K Offline
            Kessie
            Contributor
            wrote on last edited by
            #5

            @James-Strawson @Eric-Katzfey,
            Can you show a working example on a dual camera config, please?
            Both flat on the ground as against a wall.
            This would help us a lot!

            Thanks in advance,
            Maarten

            K 1 Reply Last reply
            0
            • K Kessie

              @James-Strawson @Eric-Katzfey,
              Can you show a working example on a dual camera config, please?
              Both flat on the ground as against a wall.
              This would help us a lot!

              Thanks in advance,
              Maarten

              K Offline
              K Offline
              Kessie
              Contributor
              wrote on last edited by
              #6

              We have managed to solve the transformations and now get the correct tag detection.
              But even with fixed_frame_filter_len set to 1, QVIO and OpenVins are used and we see no relocalisation happening.

              Does someone have a working example which we can look at, please?

              J 1 Reply Last reply
              0
              • K Kessie

                We have managed to solve the transformations and now get the correct tag detection.
                But even with fixed_frame_filter_len set to 1, QVIO and OpenVins are used and we see no relocalisation happening.

                Does someone have a working example which we can look at, please?

                J Offline
                J Offline
                Judoor 0
                Regular
                wrote on last edited by
                #7

                @Alex-Kushleyev Is there some news about this issue ?

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  tomverstappen
                  wrote on last edited by
                  #8

                  Is there already a solution for the problem from Kessie?

                  Is there anyone that has a working setup for AprilTag relocalization on the tracking_down camera?

                  1 Reply Last reply
                  0
                  • Zachary Lowell 0Z Offline
                    Zachary Lowell 0Z Offline
                    Zachary Lowell 0
                    ModalAI Team
                    wrote on last edited by
                    #9

                    Hello All - I will be trying to recraete this issue in the coming days - will keep you all posted.

                    1 Reply Last reply
                    0
                    • Zachary Lowell 0Z Offline
                      Zachary Lowell 0Z Offline
                      Zachary Lowell 0
                      ModalAI Team
                      wrote on last edited by
                      #10

                      @tomverstappen I am unable to recreate the issue with a starling running 1.5.0 - the output from voxl-vision-hub shows the relative coordinate frame from the tag relative to the camera and was able to get the drone to offset correctly.

                      Are there any logs you can paste in here or video?

                      Nitin Varma VegesnaN 1 Reply Last reply
                      0
                      • Zachary Lowell 0Z Zachary Lowell 0

                        @tomverstappen I am unable to recreate the issue with a starling running 1.5.0 - the output from voxl-vision-hub shows the relative coordinate frame from the tag relative to the camera and was able to get the drone to offset correctly.

                        Are there any logs you can paste in here or video?

                        Nitin Varma VegesnaN Offline
                        Nitin Varma VegesnaN Offline
                        Nitin Varma Vegesna
                        Contributor
                        wrote on last edited by
                        #11

                        @Zachary-Lowell-0 Was there any fix to this.

                        ────────────────────────────────────────────────────────────────────────────────
                        system-image: 1.8.02-M0054-14.1a-perf
                        kernel: #1 SMP PREEMPT Mon Nov 11 22:47:44 UTC 2024 4.19.125
                        ────────────────────────────────────────────────────────────────────────────────
                        hw platform: M0054
                        mach.var: 1.0.1
                        SKU: MRB-D0014-4-V1-C27-T9-M22-X0
                        ────────────────────────────────────────────────────────────────────────────────
                        voxl-suite: 1.4.5
                        ────────────────────────────────────────────────────────────────────────────────
                        Packages:

                        I am getting this issue where I constantly get WARNING, apriltag roll/pitch out of bounds issue with the front or down tracking camera.

                        Nitin Varma VegesnaN 1 Reply Last reply
                        0
                        • Nitin Varma VegesnaN Nitin Varma Vegesna

                          @Zachary-Lowell-0 Was there any fix to this.

                          ────────────────────────────────────────────────────────────────────────────────
                          system-image: 1.8.02-M0054-14.1a-perf
                          kernel: #1 SMP PREEMPT Mon Nov 11 22:47:44 UTC 2024 4.19.125
                          ────────────────────────────────────────────────────────────────────────────────
                          hw platform: M0054
                          mach.var: 1.0.1
                          SKU: MRB-D0014-4-V1-C27-T9-M22-X0
                          ────────────────────────────────────────────────────────────────────────────────
                          voxl-suite: 1.4.5
                          ────────────────────────────────────────────────────────────────────────────────
                          Packages:

                          I am getting this issue where I constantly get WARNING, apriltag roll/pitch out of bounds issue with the front or down tracking camera.

                          Nitin Varma VegesnaN Offline
                          Nitin Varma VegesnaN Offline
                          Nitin Varma Vegesna
                          Contributor
                          wrote on last edited by
                          #12

                          @Nitin-Varma-Vegesna Is there any release that is known to work for April Tag Detection?

                          1 Reply Last reply
                          0
                          • Zachary Lowell 0Z Offline
                            Zachary Lowell 0Z Offline
                            Zachary Lowell 0
                            ModalAI Team
                            wrote on last edited by
                            #13

                            @Nitin-Varma-Vegesna said in Apriltag relocalization not relocalizing?:

                            @Nitin-Varma-Vegesna Is there any release that is known to work for April Tag Detection?

                            Link Preview Image
                            voxl / VOXL SDK / Services / voxl-tag-detector · GitLab

                            Detect and publish apriltags from multiple cameras

                            favicon

                            GitLab (gitlab.com)

                            The dev branch is the most recent - I have to check with the engineering team on this as I am unsure the priority of april tag detection and positioning based off it. Will relay back

                            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