| 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; |
no test coverage detected