MCPcopy Create free account
hub / github.com/Pamphlett/Outram / getPlane

Method getPlane

src/STDesc.cpp:863–878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

861}
862
863void STDescManager::getPlane(
864 const std::unordered_map<VOXEL_LOC, OctoTree *> &voxel_map,
865 pcl::PointCloud<pcl::PointXYZINormal>::Ptr &plane_cloud) {
866 for (auto iter = voxel_map.begin(); iter != voxel_map.end(); iter++) {
867 if (iter->second->plane_ptr_->is_plane_) {
868 pcl::PointXYZINormal pi;
869 pi.x = iter->second->plane_ptr_->center_[0];
870 pi.y = iter->second->plane_ptr_->center_[1];
871 pi.z = iter->second->plane_ptr_->center_[2];
872 pi.normal_x = iter->second->plane_ptr_->normal_[0];
873 pi.normal_y = iter->second->plane_ptr_->normal_[1];
874 pi.normal_z = iter->second->plane_ptr_->normal_[2];
875 plane_cloud->push_back(pi);
876 }
877 }
878}
879
880void STDescManager::corner_extractor(
881 std::unordered_map<VOXEL_LOC, OctoTree *> &voxel_map,

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected