| 47 | } |
| 48 | |
| 49 | void OcTreeStamped::degradeOutdatedNodes(unsigned int time_thres) { |
| 50 | unsigned int query_time = (unsigned int) time(NULL); |
| 51 | |
| 52 | for(leaf_iterator it = this->begin_leafs(), end=this->end_leafs(); |
| 53 | it!= end; ++it) { |
| 54 | if ( this->isNodeOccupied(*it) |
| 55 | && ((query_time - it->getTimestamp()) > time_thres) ) { |
| 56 | integrateMissNoTime(&*it); |
| 57 | } |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | void OcTreeStamped::updateNodeLogOdds(OcTreeNodeStamped* node, const float& update) const { |
| 62 | OccupancyOcTreeBase<OcTreeNodeStamped>::updateNodeLogOdds(node, update); |
nothing calls this directly
no test coverage detected