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

    TOF Obstacle Avoidance

    Ask your questions right here!
    6
    9
    630
    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.
    • D
      danielh
      last edited by 24 Jun 2021, 12:49

      Hi,

      I would like to get the TOF Sensor working with PX4 Collision Prevention. I found some reference for the stereo camera here: https://docs.modalai.com/voxl-vision-px4-collision-prevention/
      However couldn't find anything for the TOF Sensor. Is this supported? If not can you give me a starting point? Maybe some of the code for the stereo cameras could be reused etc. Just getting started with the VOXL, so I'm trying to navigate alle the docs and code examples.

      1 Reply Last reply Reply Quote 1
      • C
        Chad Sweet ModalAI Team
        last edited by 24 Jun 2021, 14:08

        TOF is now built into the latest voxl-camera-server, you can see the code here: https://gitlab.com/voxl-public/modal-pipe-architecture/voxl-camera-server/-/blob/master/src/api_interface/hal3/hal3_camera_mgr_tof.cpp

        We have not connected TOF to VOA explicitly, but what would need to be done is to connect the TOF point cloud to VOA's point cloud entry point using MPA here: https://gitlab.com/voxl-public/modal-pipe-architecture/voxl-vision-px4/-/blob/master/src/voa_manager.c#L103

        Let us know how it goes!

        P 1 Reply Last reply 28 Jun 2021, 13:33 Reply Quote 0
        • D
          danielh
          last edited by 24 Jun 2021, 16:19

          Thank you, I will look into this!
          Meanwhile is there an easy way to stream the tof data over voxl-streamer for debug purposes?

          E 1 Reply Last reply 24 Jun 2021, 16:35 Reply Quote 0
          • E
            Eric Katzfey ModalAI Team @danielh
            last edited by 24 Jun 2021, 16:35

            @danielh voxl-streamer does not currently support streaming of TOF data.

            1 Reply Last reply Reply Quote 0
            • D
              danielh
              last edited by 24 Jun 2021, 17:39

              ok thanks!

              1 Reply Last reply Reply Quote 0
              • C
                Chad Sweet ModalAI Team
                last edited by 24 Jun 2021, 17:45

                voxl_mpa_to_ros might help sending data to rviz

                1 Reply Last reply Reply Quote 0
                • A
                  Alex Kushleyev ModalAI Team
                  last edited by Alex Kushleyev 24 Jun 2021, 18:18 24 Jun 2021, 18:17

                  Not sure if it will help, but here is some old code that was used to publish TOF point clouds and IR image to ROS : https://gitlab.com/voxl-public/old-projects/voxl-hal3-tof-cam-ros/-/blob/master/source/src/hello_hal3_camera_mgr.cpp . Perhaps some of this code can be re-used if needed..

                  1 Reply Last reply Reply Quote 0
                  • P
                    ptaylor1234 @Chad Sweet
                    last edited by 28 Jun 2021, 13:33

                    @Chad-Sweet I am also trying to get the TOF sensor to work with PX4 avoidance. Would you be able to provide some more details on how to do the second step you mentioned? I am new to using voxl and not totally clear on what I would need to change/incorporate in order to get avoidance working. Thanks!

                    1 Reply Last reply Reply Quote 0
                    • W
                      wilkinsaf ModalAI Team
                      last edited by 7 Feb 2022, 17:43

                      @ptaylor1234 Not sure if you ever found the information,

                      but PX4 avoidance information is listed here: https://docs.px4.io/v1.9.0/en/computer_vision/obstacle_avoidance.html

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