Go to the documentation of this file.
16 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
48 using Grid = Eigen::MatrixXf;
56 const std::optional<Mask>& mask = std::nullopt,
78 const Parameters&
params() const noexcept;
86 const Eigen::Vector2f costmap_P_center{
92 return global_T_costmap * Eigen::Translation2f(costmap_P_center);
106 bool add(
const Costmap& other,
float weight = 1.0);
119 const std::optional<Mask>&
getMask() const noexcept;
129 const
std::vector<
float>& weights) const;
134 return global_T_costmap;
140 global_T_costmap = globalPose;
146 void validateSizes()
const;
149 std::optional<Mask> mask;
153 const Parameters parameters;
const std::optional< Mask > & getMask() const noexcept
void setOrigin(const core::Pose2D &globalPose)
std::optional< Costmap::Mask > & getMutableMask() noexcept
Costmap(const Grid &grid, const Parameters ¶meters, const SceneBounds &sceneBounds, const std::optional< Mask > &mask=std::nullopt, const core::Pose2D &origin=core::Pose2D::Identity())
This file is part of ArmarX.
Position toPositionGlobal(const Index &index) const
Eigen::Matrix< bool, Eigen::Dynamic, Eigen::Dynamic > Mask
const SceneBounds & getLocalSceneBounds() const noexcept
friend class SocialCostmapBuilder
core::Pose2D centerPose() const
void Identity(MatrixXX< N, N, T > *a)
Filter & setUseMinimum(bool value)
const Parameters & params() const noexcept
Position toPositionLocal(const Index &index) const
Vertex toVertex(const Position &globalPosition) const
const Grid & getGrid() const
std::optional< float > value(const Index &index) const
Costmap mergeInto(const std::vector< Costmap > &costmaps, const std::vector< float > &weights) const
void filter(const Filter &filter)
float cellSize
How big each cell is in the uniform grid.
const core::Pose2D & origin() const
bool isValid(const Index &index) const noexcept
checks whether the cell is masked out
bool add(const Costmap &other, float weight=1.0)
std::size_t numberOfValidElements() const
static Filter gaussian(int radius=2, float sigma=1.)
bool isInCollision(const Position &p) const