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

Method ResizeMap

roborts_costmap/src/costmap_2d.cpp:83–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void Costmap2D::ResizeMap(unsigned int size_x,
84 unsigned int size_y,
85 double resolution,
86 double origin_x,
87 double origin_y) {
88 size_x_ = size_x;
89 size_y_ = size_y;
90 resolution_ = resolution;
91 origin_x_ = origin_x;
92 origin_y_ = origin_y;
93 InitMaps(size_x, size_y);
94 ResetMaps();
95}
96
97void Costmap2D::ResetMaps() {
98 std::unique_lock<mutex_t> lock(*access_);

Callers 2

InComingMapMethod · 0.45
CostmapInterfaceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected