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

ModalAI Forum

  1. ModalAI Support Forum
  2. General Questions
  3. wrong tof frame id

wrong tof frame id

Scheduled Pinned Locked Moved Unsolved General Questions
6 Posts 3 Posters 1.1k Views
  • 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.
  • tiralonghipolT Offline
    tiralonghipolT Offline
    tiralonghipol
    wrote on last edited by
    #1

    after digging and playing around a bit with the Voxl2 (StarlingV2) I think I figured out that the pointcloud coming from the tof sensor is published wrt world frame.
    Is this intended? is there any way to change this?

    To give some more context, I am using the voxl_mpa_to_ros_node and if I echo the tof topic, here is the output:

    voxl2:~$ rostopic echo -n 1 /tof_pc/header
    seq: 263
    stamp: 
      secs: 1693480645
      nsecs: 400399933
    frame_id: "world"
    
    

    moreover, the tf between the odometry and the fixed world frame is not published (?)
    if you can point me where to add this simple code I can do it myself (assuming is accessible)

    Hope this is clear, thank you

    tiralonghipolT 1 Reply Last reply
    0
    • tiralonghipolT tiralonghipol

      after digging and playing around a bit with the Voxl2 (StarlingV2) I think I figured out that the pointcloud coming from the tof sensor is published wrt world frame.
      Is this intended? is there any way to change this?

      To give some more context, I am using the voxl_mpa_to_ros_node and if I echo the tof topic, here is the output:

      voxl2:~$ rostopic echo -n 1 /tof_pc/header
      seq: 263
      stamp: 
        secs: 1693480645
        nsecs: 400399933
      frame_id: "world"
      
      

      moreover, the tf between the odometry and the fixed world frame is not published (?)
      if you can point me where to add this simple code I can do it myself (assuming is accessible)

      Hope this is clear, thank you

      tiralonghipolT Offline
      tiralonghipolT Offline
      tiralonghipol
      wrote on last edited by
      #2

      @Moderator
      any update on this?
      Thank you!

      K 1 Reply Last reply
      0
      • tiralonghipolT tiralonghipol

        @Moderator
        any update on this?
        Thank you!

        K Offline
        K Offline
        kerct
        Contributor
        wrote on last edited by
        #3

        @tiralonghipol @Moderator I'm also trying to use the /tof_pc data and would like more information on this world frame. Is the origin wherever the drone was when it boots up? What's the direction of the world frame?

        The only information I can find is the transformation between the body frame and the tof camera in the extrinsics file, but I can't find anything about how this relates to the world frame.

        ModeratorM 1 Reply Last reply
        0
        • K kerct

          @tiralonghipol @Moderator I'm also trying to use the /tof_pc data and would like more information on this world frame. Is the origin wherever the drone was when it boots up? What's the direction of the world frame?

          The only information I can find is the transformation between the body frame and the tof camera in the extrinsics file, but I can't find anything about how this relates to the world frame.

          ModeratorM Offline
          ModeratorM Offline
          Moderator
          ModalAI Team
          wrote on last edited by
          #4

          @kerct tof_pc does not relate to world frame. You need something like voxl-mapper to fuse VIO with tof_pc into world frame

          K 1 Reply Last reply
          0
          • ModeratorM Moderator

            @kerct tof_pc does not relate to world frame. You need something like voxl-mapper to fuse VIO with tof_pc into world frame

            K Offline
            K Offline
            kerct
            Contributor
            wrote on last edited by
            #5

            @Moderator okay, so I guess the frame ID in the /tof_pc ROS topic is misleading. Is the frame supposed to be the tof camera?

            Also just to confirm if my app communicates over MAVROS to obtain the local position, the IMU being used is from imu_px4 and not imu_apps? (I'm using Starling)

            tiralonghipolT 1 Reply Last reply
            0
            • K kerct

              @Moderator okay, so I guess the frame ID in the /tof_pc ROS topic is misleading. Is the frame supposed to be the tof camera?

              Also just to confirm if my app communicates over MAVROS to obtain the local position, the IMU being used is from imu_px4 and not imu_apps? (I'm using Starling)

              tiralonghipolT Offline
              tiralonghipolT Offline
              tiralonghipol
              wrote on last edited by
              #6

              @kerct I ended up building the mpa wrapper from source
              There you can modify the frames id and create your own tf tree
              took a while but it works now

              1 Reply Last reply
              0

              Reading along? Create a free ModalAI Forum account to join in.

              With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.

              Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.

              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