Distance from PointCloud

[Copy Link]
Author: plafferty | Time: 2021-8-9 18:30:01 | Robotics|
1 3587

2

Threads

5

Posts

28

Credits

Kindergarten

Rank: 1

Credits
28
Posted on 2021-8-9 18:30:01| All floors |Read mode
Hello

Thank you ever so much for your help last month.
I now have my Livox Avia Lidar integrated with my systems and it is publishing PointCloud data to the ROS driver as expected.

Are you able to give me some insight into how I might be able to calculate the distance to an object using the raw PointCloud data?
Livox Viewer and RVIZ has this logic built-in but I need to publish the distance over ROS to make it accessible to another script.

I have searched ROS Wiki, Google, many sources online and continue to do so.

Your help is much appreciated.

Kind Regards
Patrick Lafferty
Reply

Use props Report

2

Threads

266

Posts

1073

Credits

Administrator

Rank: 9Rank: 9Rank: 9

Credits
1073
Posted on 2021-8-11 19:50:14| All floors
The coordinate origin of the xyz value in pointcloud2 data is the center of the device window glass, you can try to use the spatial trigonometric function to calculate the distance between Lidar and object.
Reply

Use props Report

You need to log in before you can reply Login | Register

Credit Rules

Quick Reply Back to top