|
|
#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 | cutToValidBoundingBox () |
| void | excludeUnreachable (const Position &position) |
| 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 |
| std::pair< Index, Index > | getValidBoundingBox () const |
| 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 |
| Merge a list of costmaps into this costmap. More... | |
| 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 |
Static Public Member Functions | |
| static Costmap | WithSameDimsAs (const Costmap &other, const Grid &grid, const std::optional< Mask > &mask=std::nullopt) |
| Create a costmap with the same dimensions and parameters as the given one. More... | |
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 30 of file Costmap.cpp.
Definition at line 256 of file Costmap.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| void cutToValidBoundingBox | ( | ) |
| void excludeUnreachable | ( | const Position & | position | ) |
| void filter | ( | const Filter & | filter | ) |
| const Costmap::Grid & getGrid | ( | ) | const |
|
noexcept |
|
noexcept |
|
inline |
|
noexcept |
| std::pair< Costmap::Index, Costmap::Index > getValidBoundingBox | ( | ) | const |
Definition at line 589 of file Costmap.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool isInCollision | ( | const Position & | p | ) | const |
Definition at line 249 of file Costmap.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
noexcept |
checks whether the cell is masked out
Definition at line 76 of file Costmap.cpp.
Here is the caller graph for this function:| Costmap mergeInto | ( | const std::vector< Costmap > & | costmaps, |
| const std::vector< float > & | weights | ||
| ) | const |
Merge a list of costmaps into this costmap.
| costmaps | list of other costmaps |
| weights | [weights of other costmaps..., weights of this costmap] |
Definition at line 473 of file Costmap.cpp.
Here is the call graph for this function:| std::size_t numberOfValidElements | ( | ) | const |
Definition at line 545 of file Costmap.cpp.
| Costmap::Optimum optimum | ( | ) | const |
Definition at line 136 of file Costmap.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
noexcept |
|
inline |
| Costmap::Position toPositionGlobal | ( | const Index & | index | ) | const |
Definition at line 69 of file Costmap.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| Costmap::Position toPositionLocal | ( | const Index & | index | ) | const |
| Costmap::Vertex toVertex | ( | const Position & | globalPosition | ) | const |
Definition at line 411 of file Costmap.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Create a costmap with the same dimensions and parameters as the given one.
Only the content (grid and mask) are altered.
| other | The costmap providing the dimensions and parameters |
| grid | |
| mask |
Definition at line 728 of file Costmap.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
friend |