|
#include <armarx/navigation/algorithms/Costmap.h>
Classes | |
struct | Filter |
struct | Optimum |
struct | Parameters |
struct | Vertex |
Public Types | |
enum | AddMode { MIN, MAX } |
using | Grid = Eigen::MatrixXf |
using | Index = Eigen::Array2i |
using | Mask = Eigen::Matrix< bool, Eigen::Dynamic, Eigen::Dynamic > |
using | Position = Eigen::Vector2f |
Public Member Functions | |
bool | add (const Costmap &other, AddMode mode) |
bool | add (const Costmap &other, float weight=1.0) |
core::Pose2D | centerPose () const |
Costmap (const Grid &grid, const Parameters ¶meters, const SceneBounds &sceneBounds, const std::optional< Mask > &mask=std::nullopt, const core::Pose2D &origin=core::Pose2D::Identity()) | |
void | filter (const Filter &filter) |
const Grid & | getGrid () const |
const SceneBounds & | getLocalSceneBounds () const noexcept |
const std::optional< Mask > & | getMask () const noexcept |
Grid & | getMutableGrid () |
std::optional< Costmap::Mask > & | getMutableMask () noexcept |
bool | isInCollision (const Position &p) const |
bool | isValid (const Index &index) const noexcept |
checks whether the cell is masked out More... | |
Costmap | mergeInto (const std::vector< Costmap > &costmaps, const std::vector< float > &weights) const |
std::size_t | numberOfValidElements () const |
Optimum | optimum () const |
const core::Pose2D & | origin () const |
const Parameters & | params () const noexcept |
void | setOrigin (const core::Pose2D &globalPose) |
Position | toPositionGlobal (const Index &index) const |
Position | toPositionLocal (const Index &index) const |
Vertex | toVertex (const Position &globalPosition) const |
std::optional< float > | value (const Index &index) const |
std::optional< float > | value (const Position &position) const |
Friends | |
class | CostmapBuilder |
class | SocialCostmapBuilder |
using Mask = Eigen::Matrix<bool, Eigen::Dynamic, Eigen::Dynamic> |
Costmap | ( | const Grid & | grid, |
const Parameters & | parameters, | ||
const SceneBounds & | sceneBounds, | ||
const std::optional< Mask > & | mask = std::nullopt , |
||
const core::Pose2D & | origin = core::Pose2D::Identity() |
||
) |
Definition at line 32 of file Costmap.cpp.
Definition at line 249 of file Costmap.cpp.
|
inline |
void filter | ( | const Filter & | filter | ) |
const Costmap::Grid & getGrid | ( | ) | const |
|
noexcept |
|
noexcept |
|
inline |
|
noexcept |
bool isInCollision | ( | const Position & | p | ) | const |
Definition at line 242 of file Costmap.cpp.
|
noexcept |
checks whether the cell is masked out
Definition at line 78 of file Costmap.cpp.
std::size_t numberOfValidElements | ( | ) | const |
Definition at line 497 of file Costmap.cpp.
Costmap::Optimum optimum | ( | ) | const |
Definition at line 132 of file Costmap.cpp.
|
inline |
|
noexcept |
|
inline |
Costmap::Position toPositionGlobal | ( | const Index & | index | ) | const |
Definition at line 71 of file Costmap.cpp.
Costmap::Position toPositionLocal | ( | const Index & | index | ) | const |
Costmap::Vertex toVertex | ( | const Position & | globalPosition | ) | const |
Definition at line 404 of file Costmap.cpp.
|
friend |