MCPcopy Create free account
hub / github.com/RoboMaster/RoboRTS / GetMarkingObservations

Method GetMarkingObservations

roborts_costmap/src/obstacle_layer.cpp:285–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285bool ObstacleLayer::GetMarkingObservations(std::vector<Observation> &marking_observations) const {
286 bool current = true;
287 // get the marking observations
288 for (size_t i = 0; i < marking_buffers_.size(); ++i) {
289 marking_buffers_[i]->Lock();
290 marking_buffers_[i]->GetObservations(marking_observations);
291 current = marking_buffers_[i]->IsCurrent() && current;
292 marking_buffers_[i]->Unlock();
293 }
294 marking_observations.insert(marking_observations.end(),
295 static_marking_observations_.begin(), static_marking_observations_.end());
296 return current;
297}
298
299bool ObstacleLayer::GetClearingObservations(std::vector<Observation> &clearing_observations) const {
300 bool current = true;

Callers

nothing calls this directly

Calls 4

LockMethod · 0.80
GetObservationsMethod · 0.80
UnlockMethod · 0.80
IsCurrentMethod · 0.45

Tested by

no test coverage detected