|
void | gridToWorld (const NavGridInfo &info, int mx, int my, double &wx, double &wy) |
| Convert from grid coordinates to world coordinates of the center of the cell. More...
|
|
bool | isWithinGrid (const NavGridInfo &info, double wx, double wy) |
| Check to see if the world coordinates are within the grid. More...
|
|
std::ostream & | operator<< (std::ostream &stream, const NavGridInfo &info) |
|
template<typename NumericType > |
std::ostream & | operator<< (std::ostream &stream, const GenericIndex< NumericType > &index) |
|
void | worldToGrid (const NavGridInfo &info, double wx, double wy, double &mx, double &my) |
| Convert from world coordinates to the precise (double) grid coordinates. More...
|
|
void | worldToGrid (const NavGridInfo &info, double wx, double wy, int &mx, int &my) |
| Convert from world coordinates to grid coordinates without checking for legal bounds. More...
|
|
bool | worldToGridBounded (const NavGridInfo &info, double wx, double wy, unsigned int &mx, unsigned int &my) |
| Convert from world coordinates to grid coordinates. More...
|
|
bool nav_grid::worldToGridBounded |
( |
const NavGridInfo & |
info, |
|
|
double |
wx, |
|
|
double |
wy, |
|
|
unsigned int & |
mx, |
|
|
unsigned int & |
my |
|
) |
| |
|
inline |
Convert from world coordinates to grid coordinates.
Combined functionality from costmap_2d::worldToMap and costmap_2d::worldToMapEnforceBounds. The output parameters are set to grid indexes within the grid, even if the function returns false, meaning the coordinates are outside the grid.
- Parameters
-
[in] | wx | The x world coordinate |
[in] | wy | The y world coordinate |
[out] | mx | Set to the associated (bounds-enforced) x grid coordinate |
[out] | my | Set to the associated (bounds-enforced) y grid coordinate |
- Returns
- True if the input coordinates were within the grid
Definition at line 104 of file coordinate_conversion.h.