MCPcopy Create free account
hub / github.com/ANYbotics/elevation_mapping / resetMapUpdateTimer

Method resetMapUpdateTimer

elevation_mapping/src/ElevationMapping.cpp:483–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483void ElevationMapping::resetMapUpdateTimer()
484{
485 mapUpdateTimer_.stop();
486 Duration periodSinceLastUpdate = ros::Time::now() - map_.getTimeOfLastUpdate();
487 if (periodSinceLastUpdate > maxNoUpdateDuration_) periodSinceLastUpdate.fromSec(0.0);
488 mapUpdateTimer_.setPeriod(maxNoUpdateDuration_ - periodSinceLastUpdate);
489 mapUpdateTimer_.start();
490}
491
492void ElevationMapping::stopMapUpdateTimer()
493{

Callers

nothing calls this directly

Calls 1

getTimeOfLastUpdateMethod · 0.80

Tested by

no test coverage detected