Helper function to add a point that creates the PointCloudPoint for you
| 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) |
| 61 | { |
| 62 | // make a new point |
| 63 | PointCloudPoint *newPoint = new PointCloudPoint(dist, theta, phi, r, g, b, w, h, laserPos); |
| 64 | AddPoint(newPoint); |
| 65 | } |
| 66 | |
| 67 | // Add a point to the point cloud. If there is not already a point at this h, and laserPos, make |
| 68 | // a new linked list. Otherwise, add to the linked list that we already have for this location |