| 182 | } |
| 183 | |
| 184 | bool Costmap2D::World2Map(double wx, double wy, unsigned int &mx, unsigned int &my) const { |
| 185 | if (wx < origin_x_ || wy < origin_y_) { |
| 186 | return false; |
| 187 | } |
| 188 | mx = (int) ((wx - origin_x_) / resolution_); |
| 189 | my = (int) ((wy - origin_y_) / resolution_); |
| 190 | if (mx < size_x_ && my < size_y_) { |
| 191 | return true; |
| 192 | } |
| 193 | return false; |
| 194 | } |
| 195 | |
| 196 | void Costmap2D::World2MapNoBoundary(double world_x, |
| 197 | double world_y, |
no outgoing calls
no test coverage detected