| 81 | } |
| 82 | |
| 83 | void 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 | |
| 97 | void Costmap2D::ResetMaps() { |
| 98 | std::unique_lock<mutex_t> lock(*access_); |
no outgoing calls
no test coverage detected