The points are uniquely identified by h and laserPos. Index is -- laserPos * 1000 + h yielding an set size of 255*1000 + 1000 = 256,000 Each hash map container holds a linked list of PointCloudPoints, which can be combined in an average for that point
| 52 | // Each hash map container holds a linked list of PointCloudPoints, which can be combined in an average |
| 53 | // for that point |
| 54 | int PointCloud::GetKey(int h, int laserPos) |
| 55 | { |
| 56 | return laserPos * 1000 + h; |
| 57 | } |
| 58 | |
| 59 | // Helper function to add a point that creates the PointCloudPoint for you |
| 60 | void PointCloud::AddPoint(double dist, double theta, double phi, int r, int g, int b, int w, int h, int laserPos) |
nothing calls this directly
no outgoing calls
no test coverage detected