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

Method Costmap2D

roborts_costmap/src/costmap_2d.cpp:57–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55namespace roborts_costmap {
56
57Costmap2D::Costmap2D(unsigned int cells_size_x, unsigned int cells_size_y, double resolution, double origin_x, \
58 double origin_y, unsigned char default_value) : size_x_(cells_size_x),
59 size_y_(cells_size_y), \
60
61 resolution_(resolution),
62 origin_x_(origin_x),
63 origin_y_(origin_y),
64 costmap_(NULL),
65 default_value_(default_value) {
66 access_ = new mutex_t();
67 InitMaps(size_x_, size_y_);
68 ResetMaps();
69}
70
71void Costmap2D::DeleteMaps() {
72 std::unique_lock<mutex_t> lock(*access_);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected