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

Method degradeOutdatedNodes

octomap/src/OcTreeStamped.cpp:49–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 4

begin_leafsMethod · 0.80
end_leafsMethod · 0.80
isNodeOccupiedMethod · 0.80
getTimestampMethod · 0.80

Tested by

no test coverage detected