MCPcopy Create free account
hub / github.com/OctoMap/octomap / crop

Method crop

octomap/src/ScanGraph.cpp:596–609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594
595
596 void ScanGraph::crop(point3d lowerBound, point3d upperBound) {
597
598
599 // for all node in graph...
600 for (ScanGraph::iterator it = this->begin(); it != this->end(); it++) {
601 pose6d scan_pose = (*it)->pose;
602 Pointcloud* pc = new Pointcloud((*it)->scan);
603 pc->transformAbsolute(scan_pose);
604 pc->crop(lowerBound, upperBound);
605 pc->transform(scan_pose.inv());
606 delete (*it)->scan;
607 (*it)->scan = pc;
608 }
609 }
610
611 size_t ScanGraph::getNumPoints(unsigned int max_id) const {
612 size_t retval = 0;

Callers 1

cropEachScanMethod · 0.45

Calls 5

beginMethod · 0.95
endMethod · 0.95
transformAbsoluteMethod · 0.80
transformMethod · 0.45
invMethod · 0.45

Tested by

no test coverage detected