Create a OccupancyMapParams. OccupancyMapParams are used used to define occupancy maps and to provide helpers to change from metrical to pixel frames. Maps are squared.
More...
#include <occupancymapparams.h>
Create a OccupancyMapParams. OccupancyMapParams are used used to define occupancy maps and to provide helpers to change from metrical to pixel frames. Maps are squared.
Definition at line 67 of file occupancymapparams.h.
AL::Math::OccupancyMapParams::OccupancyMapParams |
( |
int |
size, |
|
|
float |
metersPerPixel, |
|
|
const Position2D & |
mapCenter, |
|
|
float |
obstacleThreshold = 0.25f |
|
) |
| |
|
explicit |
Point2Di AL::Math::OccupancyMapParams::getDeltaPixelFromDeltaPosition |
( |
const Position2D & |
position | ) |
const |
Get the Point2Di representing the pixel difference corresponding to the given metrical difference.
- Parameters
-
- Returns
- Point2Di of the corresponding pixel difference.
float AL::Math::OccupancyMapParams::getObstacleProbabilityThreshold |
( |
| ) |
const |
Get the maximum pixel value of an obstacle in the map.
Point2Di AL::Math::OccupancyMapParams::getPixelFromPose |
( |
const Pose2D & |
pose | ) |
const |
Get the Point2Di in the map corresponding to the given metrical pose.
- Parameters
-
- Returns
- Point2Di of the associated pixel.
Point2Di AL::Math::OccupancyMapParams::getPixelFromPosition |
( |
const Position2D & |
position | ) |
const |
Get the Point2Di in the map corresponding to the given metrical position.
- Parameters
-
- Returns
- Point2Di of the associated pixel.
Pose2D AL::Math::OccupancyMapParams::getPoseFromPixel |
( |
const Pose2Di & |
pixel | ) |
const |
Get the Pose2D corresponding to the given pixel pose in the map.
- Parameters
-
- Returns
- Pose2D of the associated pose.
Position2D AL::Math::OccupancyMapParams::getPositionFromPixel |
( |
const Point2Di & |
pixel | ) |
const |
Get the Pose2D corresponding to the given pixel pose in the map.
- Parameters
-
- Returns
- Position2D of the associated position.
void AL::Math::OccupancyMapParams::initOriginOffset |
( |
const Position2D & |
mapCenter | ) |
|
Set the origin offset accordingly to the given desired metrical position of the central pixel.
- Parameters
-
mapCenter | desired metrical position of the central pixel. |
float AL::Math::OccupancyMapParams::metersPerPixel |
float AL::Math::OccupancyMapParams::obstacleProbabilityThreshold |
Position2D AL::Math::OccupancyMapParams::originOffset |
int AL::Math::OccupancyMapParams::size |
The documentation for this struct was generated from the following file: