VincentCheungM / Run_based_segmentation

An ongoing implementation ros node on `fast segmentation of 3d point clouds: a paradigm`...
MIT License
388 stars 121 forks source link

void ScanLineRun::velodyne_callback_ #10

Open wdxpython opened 5 years ago

wdxpython commented 5 years ago

Hello! Thank you very much for your work! There are a few questions when you read your code. In the void ScanLineRun::velodynecallback function, when calculating the row, how are the numbers 563, 1688 and so on? Why use this calculation method?

VincentCheungM commented 5 years ago

Sorry for replying you late. It seems that I use some kind of trick before the clustering process. I just simply re-organize all the spare point cloud into matrix-like dense format, e.g.: I've got points {p1, p2, p3} from LiDAR, and I transform them from (x, y, z) into Sphere coordinates (\theta, \phi). And then it could be some 2D matrix like data. In this case, some items in the matrix are not occupied, i.e., none of points from point cloud P is transform into this (\theta_hat, \phi_hat), so I use the intensity property to mark these items are not occupied and not interested.

------------------ Original ------------------ From: "wdxpython"notifications@github.com; Date: Tue, Mar 5, 2019 01:24 PM To: "VincentCheungM/Run_based_segmentation"Run_based_segmentation@noreply.github.com; Cc: "Subscribed"subscribed@noreply.github.com; Subject: [VincentCheungM/Run_based_segmentation] voidScanLineRun::velodynecallback (#10)

Hello! Thank you very much for your work! There are a few questions when you read your code. In the void ScanLineRun::velodynecallback function, when calculating the row, how are the numbers 563, 1688 and so on? Why use this calculation method?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

PLester commented 5 years ago

Hello! Thank you very much for your work! There are a few questions when you read your code. In the void ScanLineRun::velodynecallback function, when calculating the row, how are the numbers 563, 1688 and so on? Why use this calculation method?

Maybe the angle resolution of LiDAR(HDL-32) sensor is 0.15992 degree (angle_resolutionlidar = 0.00279111 radian), in horizontal direction. Point number in each line is 360/0.15992 = 2251 563 = 22510.25 1688 = 22510.75