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

Method ResetLayers

roborts_costmap/src/costmap_interface.cpp:313–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313void CostmapInterface::ResetLayers() {
314 Costmap2D *master = layered_costmap_->GetCostMap();
315 master->ResetPartMap(0, 0, master->GetSizeXCell(), master->GetSizeYCell());
316 auto plugins = layered_costmap_->GetPlugins();
317 for (auto plugin = (*plugins).begin(); plugin != (*plugins).end(); ++plugin) {
318 (*plugin)->Reset();
319 }
320}
321
322bool CostmapInterface::GetRobotPose(tf::Stamped<tf::Pose> &global_pose) const {
323 global_pose.setIdentity();

Callers

nothing calls this directly

Calls 6

ResetPartMapMethod · 0.80
GetSizeXCellMethod · 0.80
GetSizeYCellMethod · 0.80
GetPluginsMethod · 0.80
GetCostMapMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected