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. Unable to get accurate depth and camera_info from TOF on Starling 2 Max

Unable to get accurate depth and camera_info from TOF on Starling 2 Max

Scheduled Pinned Locked Moved Ask your questions right here!
3 Posts 2 Posters 634 Views 1 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.
  • Jing YuJ Offline
    Jing YuJ Offline
    Jing Yu
    Contributor
    wrote on last edited by
    #1

    Hi,
    I’m using the Starling 2 Max with VOXL 2 and I’m trying to access depth information from the onboard TOF sensor.

    I am subscribing to /tof_depth, which publishes sensor_msgs/Image in mono8 format. However:

    I don’t know how to convert the 8-bit gray value to actual depth in meters. Is there a LUT or scale factor available for this sensor?

    The topic /tof_depth/camera_info returns zero intrinsics (all zeros in the K matrix), so I cannot project the depth image into a point cloud.

    I couldn’t find any calibration or intrinsics related to the TOF sensor in /etc/modalai .

    Could you please advise how to:

    Obtain the proper depth scale or conversion formula from mono8

    Get or generate accurate camera_info for the TOF sensor

    Thanks in advance!

    Alex KushleyevA 1 Reply Last reply
    0
    • Jing YuJ Jing Yu

      Hi,
      I’m using the Starling 2 Max with VOXL 2 and I’m trying to access depth information from the onboard TOF sensor.

      I am subscribing to /tof_depth, which publishes sensor_msgs/Image in mono8 format. However:

      I don’t know how to convert the 8-bit gray value to actual depth in meters. Is there a LUT or scale factor available for this sensor?

      The topic /tof_depth/camera_info returns zero intrinsics (all zeros in the K matrix), so I cannot project the depth image into a point cloud.

      I couldn’t find any calibration or intrinsics related to the TOF sensor in /etc/modalai .

      Could you please advise how to:

      Obtain the proper depth scale or conversion formula from mono8

      Get or generate accurate camera_info for the TOF sensor

      Thanks in advance!

      Alex KushleyevA Offline
      Alex KushleyevA Offline
      Alex Kushleyev
      ModalAI Team
      wrote on last edited by Alex Kushleyev
      #2

      @Jing-Yu , the tof_depth image is a 8-bit image where each pixel represents a scaled depth. this may not be the best way to use the output of TOF sensor.

      You can subscribe to the point cloud directly.

      Here is the code that handles the output of the TOF sensor and publishes it to MPA clients. This shows how the different images are generated, including how the TOF depth is scaled to produce an image : https://gitlab.com/voxl-public/voxl-sdk/services/voxl-camera-server/-/blob/dev/src/hal3_camera_mgr.cpp?ref_type=heads#L3214 ( RoyaleDataDone function).

      Here is an example for receiving the TOF point cloud using an MPA client. it is very basic, but you can update it. The data that is sent out is an array of XYZ float points : https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-tools/-/blob/master/tools/voxl-inspect-points.c?ref_type=heads

      and finally here is another example in voxl mpa-to-ros library, which handles conversion from the MPA messages to ROS. It has a few point cloud formats, but the one you need is the XYZ : https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-to-ros/-/blob/master/catkin_ws/src/src/interfaces/point_cloud_interface.cpp?ref_type=heads

      Alex

      Jing YuJ 1 Reply Last reply
      1
      • Alex KushleyevA Alex Kushleyev

        @Jing-Yu , the tof_depth image is a 8-bit image where each pixel represents a scaled depth. this may not be the best way to use the output of TOF sensor.

        You can subscribe to the point cloud directly.

        Here is the code that handles the output of the TOF sensor and publishes it to MPA clients. This shows how the different images are generated, including how the TOF depth is scaled to produce an image : https://gitlab.com/voxl-public/voxl-sdk/services/voxl-camera-server/-/blob/dev/src/hal3_camera_mgr.cpp?ref_type=heads#L3214 ( RoyaleDataDone function).

        Here is an example for receiving the TOF point cloud using an MPA client. it is very basic, but you can update it. The data that is sent out is an array of XYZ float points : https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-tools/-/blob/master/tools/voxl-inspect-points.c?ref_type=heads

        and finally here is another example in voxl mpa-to-ros library, which handles conversion from the MPA messages to ROS. It has a few point cloud formats, but the one you need is the XYZ : https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-to-ros/-/blob/master/catkin_ws/src/src/interfaces/point_cloud_interface.cpp?ref_type=heads

        Alex

        Jing YuJ Offline
        Jing YuJ Offline
        Jing Yu
        Contributor
        wrote on last edited by
        #3

        @Alex-Kushleyev

        Thanks for the explanation — I now understand how to use the TOF sensor.
        I’ll use the ROS point cloud directly for my research.

        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