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

    Relocalization on a loaded map

    VOXL 2
    2
    7
    410
    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.
    • A
      afdrus
      last edited by

      Hi everyone,

      I am doing some pre-flight checks with a Sentinel drone to check how the localization works in the voxl-mapper. I noticed that the drone is not able to relocalize itself within a loaded map that I did earlier. What I did is the following:

      • I switched on the drone in a specific position and I moved it around to build a 3D map using the stereo input;

      • When I was satisfied with the map I saved it and I switched off the drone;

      • I moved the drone to another point and I switched it on;

      • I loaded the 3D map that I made in the previous powercycle and I moved around the drone to see whether it was able to relocalize itself in the map or not.

      Despite the map was updating while I was moving around, the drone was not relocalizing itself and it ended up creating a "false" map of the environment.
      Hence my question: can the drone relocalize itself within a map without booting up at the exact same position in which the drone was switched on at the time of the creation of the map?

      1 Reply Last reply Reply Quote 0
      • Chad SweetC
        Chad Sweet ModalAI Team
        last edited by

        Not at this time, no

        1 Reply Last reply Reply Quote 0
        • A
          afdrus
          last edited by

          Ok, thank you very much for your response.
          Is this feature under development?

          1 Reply Last reply Reply Quote 0
          • Chad SweetC
            Chad Sweet ModalAI Team
            last edited by

            It is not at this point. You could get pretty far by incorporating April Tag Relocalization, docs here

            A 1 Reply Last reply Reply Quote 0
            • A
              afdrus
              last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • A
                afdrus @Chad Sweet
                last edited by

                @Chad-Sweet thanks for the reply and sorry for coming back to this question just now. Is it possible to leverage the relocalization directly in the EKF of the VIO (i.e. the position estimate which is sent to PX4/external autopilot)? My question comes from the fact that, in my tests, I was only able to see the effect of the relocalization either via the debug command

                voxl-inspect-pose -f
                

                or by sending a SET_POSITION_TARGET_LOCAL_NED mavlink message. However, with the drone disarmed, I am not seeing any change in the location of the drone in the map. Is this the expected behavior?

                Chad SweetC 1 Reply Last reply Reply Quote 0
                • Chad SweetC
                  Chad Sweet ModalAI Team @afdrus
                  last edited by

                  @afdrus the relocalization is external to the VIO EKF. You can trace this code path here: https://gitlab.com/voxl-public/voxl-sdk/services/voxl-vision-hub/-/blob/master/src/tag_manager.c#L110

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