| 100 | } |
| 101 | |
| 102 | void 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 | |
| 109 | bool Costmap2D::CopyCostMapWindow(const Costmap2D &map, |
| 110 | double w_origin_x, |
no outgoing calls
no test coverage detected