MCPcopy Create free account
hub / github.com/atenpas/gpd / arrayToPCLPointCloud

Function arrayToPCLPointCloud

src/detect_grasps_python.cpp:122–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122PointCloudRGB 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
137Cloud augmentedCloudToCloud(AugmentedCloud *cloud) {
138 PointCloudRGB::Ptr pcl_cloud(new PointCloudRGB);

Callers 4

augmentedCloudToCloudFunction · 0.85
createCloudFunction · 0.85
createCloudNormalsFunction · 0.85
createGroundTruthCloudFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected