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

    ToF sensor and VOA

    VOXL 2
    3
    8
    593
    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.
    • X
      xav04
      last edited by xav04

      Hi, I'd like to know if is it possible to use a ToF sensor for obstacle avoidance with voxl2. To give you more context, when I run voxl-inspect-tof I get the correct distance measurements. I modified /etc/modalai/voxl-vision-px4.conf , where "en_voa" is set to true and "voa_inouts" only accepts "tof".

      To verify that this is working I run voxl-vision-px4 -s but all distances are none. Please let me know how I can fix this.

      Also, is it possible to see objects with a shorter range using ToF, like around 1m?

      1.png

      voxl-vision-px4.png

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User
        last edited by

        Yes this should absolutely be possible, can you send the screenshot of your voxl-vision config file as well.

        As for range we usually cut off the tof data around 15 cm in front of the camera, so it usually has an effective range of ~0.15-5 meters

        X 2 Replies Last reply Reply Quote 0
        • X
          xav04
          last edited by xav04

          Hi @Alex-Gardner, sure! This is the configuration of /etc/modalai/voxl-vision-px4.conf.
          If there is any other parameter that can be improved please let me know

          2.png

          1 Reply Last reply Reply Quote 0
          • X
            xav04 @Guest
            last edited by

            Hi @Alex-Gardner , is there any other file I should upload?

            1 Reply Last reply Reply Quote 0
            • X
              xav04 @Guest
              last edited by

              @Alex-Gardner I'm wondering if you can help me solve this problem or is there someone else on the development team who can provide support?

              1 Reply Last reply Reply Quote 0
              • ?
                A Former User
                last edited by

                Hi,

                Can you check in voxl-portal what the pointcloud voxl_pc_out looks like? this is the VOA pointcloud before the final bit of filtering to send it to the flight controller.

                Also check /etc/modalai/extrinsics.conf to make sure that it matches the transforms that are on your drone.

                X 1 Reply Last reply Reply Quote 0
                • X
                  xav04 @Guest
                  last edited by xav04

                  Hi @Alex-Gardner this is the screenshot of voxl_pc_out in voxl-portal, at the same time this is the output of voxl-vision-px4 -s and this is the screenshot /etc/modalai/extrinsics.conf
                  3.PNG 4.PNG
                  2.PNG

                  1 Reply Last reply Reply Quote 0
                  • James StrawsonJ
                    James Strawson ModalAI Team
                    last edited by

                    your image of the voa_pc_out point cloud shows that your voxl thinks the TOF is pointing out the top of the drone. This is confirmed by your extrinsics conf sensor rotation: [180 0 0] which translates to a sensor pointing straight up.

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