| 120 | } |
| 121 | |
| 122 | PointCloudRGB arrayToPCLPointCloud(float *points, int num_points) { |
| 123 | PointCloudRGB cloud; |
| 124 | cloud.resize(num_points); |
| 125 | |
| 126 | for (int i = 0; i < num_points; i++) { |
| 127 | PointT p; |
| 128 | p.x = points[3 * i + 0]; |
| 129 | p.y = points[3 * i + 1]; |
| 130 | p.z = points[3 * i + 2]; |
| 131 | cloud.at(i) = p; |
| 132 | } |
| 133 | |
| 134 | return cloud; |
| 135 | } |
| 136 | |
| 137 | Cloud augmentedCloudToCloud(AugmentedCloud *cloud) { |
| 138 | PointCloudRGB::Ptr pcl_cloud(new PointCloudRGB); |
no outgoing calls
no test coverage detected