MCPcopy Create free account
hub / github.com/ANYbotics/grid_map / savePointCloudAsPcdFile

Method savePointCloudAsPcdFile

grid_map_pcl/src/PointcloudProcessor.cpp:97–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void PointcloudProcessor::savePointCloudAsPcdFile(const std::string& filename, const Pointcloud& cloud) {
98 pcl::PCDWriter writer;
99 pcl::PCLPointCloud2 pointCloud2;
100 pcl::toPCLPointCloud2(cloud, pointCloud2);
101 writer.write(filename, pointCloud2, Eigen::Vector4f::Zero(), Eigen::Quaternionf::Identity(), false);
102}
103
104Pointcloud::Ptr PointcloudProcessor::applyRigidBodyTransformation(Pointcloud::ConstPtr inputCloud) const {
105 auto transformedCloud =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected