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

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. TOF Obstacle Avoidance

TOF Obstacle Avoidance

Scheduled Pinned Locked Moved Ask your questions right here!
9 Posts 6 Posters 1.6k Views 5 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.
  • danielhD Offline
    danielhD Offline
    danielh
    wrote on last edited by
    #1

    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
    1
    • Chad SweetC Offline
      Chad SweetC Offline
      Chad Sweet
      ModalAI Team
      wrote on last edited by
      #2

      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
      0
      • danielhD Offline
        danielhD Offline
        danielh
        wrote on last edited by
        #3

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

        Eric KatzfeyE 1 Reply Last reply
        0
        • danielhD danielh

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

          Eric KatzfeyE Offline
          Eric KatzfeyE Offline
          Eric Katzfey
          ModalAI Team
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • danielhD Offline
            danielhD Offline
            danielh
            wrote on last edited by
            #5

            ok thanks!

            1 Reply Last reply
            0
            • Chad SweetC Offline
              Chad SweetC Offline
              Chad Sweet
              ModalAI Team
              wrote on last edited by
              #6

              voxl_mpa_to_ros might help sending data to rviz

              1 Reply Last reply
              0
              • Alex KushleyevA Offline
                Alex KushleyevA Offline
                Alex Kushleyev
                ModalAI Team
                wrote on last edited by Alex Kushleyev
                #7

                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
                0
                • Chad SweetC Chad Sweet

                  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 Offline
                  P Offline
                  ptaylor1234
                  wrote on last edited by
                  #8

                  @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
                  0
                  • wilkinsafW Offline
                    wilkinsafW Offline
                    wilkinsaf
                    ModalAI Team
                    wrote on last edited by
                    #9

                    @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
                    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