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

    ROS2 ToF topic not showing proper data

    Ask your questions right here!
    2
    2
    111
    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.
    • U
      user1243
      last edited by

      Hi I'm using a Starling 2 Max with a ToF sensor. I am using voxl-suite 1.3.4~beta2 and have the ToF sensor working in the voxl mapper. However, when I echo the ROS2 topic /tof_pc when running the voxl_mpa_to_ros2_node node I don't get proper data. See image below.
      95023e5e-5e8a-4655-bd22-2ff60972c744-image.png
      Has anyone experienced this issue? Should I make the switch to ROS?

      1 Reply Last reply Reply Quote 0
      • B
        brahim
        last edited by

        Please verify the PC data in rviz2. What you see in rviz2 should look exactly alike to what is shown in voxal portal for tof_pc. Note that the point step size is 12. See this guide for more info on pointcloud data message data

        Point cloud data will look very different from image data, since the data field is constructed very different from BGR image formats.

        I have replicated these results in a starling2 as well, with voxl-mpa-to-ros2 dev branch:rospc_.png

        Note that you may need to spin up a static transform to see the pointcloud data in ROS:

        ros2 run tf2_ros static_transform_publisher 0 0 0 0 0 0 map world 
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB | Contributors