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

Method ResetPartMap

roborts_costmap/src/costmap_2d.cpp:102–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void Costmap2D::ResetPartMap(unsigned int x0, unsigned int y0, unsigned int xn, unsigned int yn) {
103 std::unique_lock<mutex_t> lock(*(access_));
104 unsigned int len = xn - x0;
105 for (unsigned int y = y0 * size_x_ + x0; y < yn * size_x_ + x0; y += size_x_)
106 memset(costmap_ + y, default_value_, len * sizeof(unsigned char));
107}
108
109bool Costmap2D::CopyCostMapWindow(const Costmap2D &map,
110 double w_origin_x,

Callers 2

UpdateMapMethod · 0.80
ResetLayersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected