1723_23102025
This commit is contained in:
parent
ad906963f7
commit
6d86ad65a2
|
|
@ -62,5 +62,10 @@ namespace costmap_2d
|
|||
return false;
|
||||
}
|
||||
|
||||
void Costmap2D::worldToMapNoBounds(double wx, double wy, int& mx, int& my) const
|
||||
{
|
||||
mx = (int)((wx - origin_x_) / resolution_);
|
||||
my = (int)((wy - origin_y_) / resolution_);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user