add function getTypeLayer

This commit is contained in:
2025-12-31 10:11:12 +07:00
parent 6c682712fe
commit ae469e3271
11 changed files with 60 additions and 10 deletions

View File

@@ -10,6 +10,10 @@ class CriticalLayer : public StaticLayer
public:
CriticalLayer();
virtual ~CriticalLayer();
LayerType getType() const override
{
return LayerType::CRITICAL_LAYER;
}
private:
unsigned char interpretValue(unsigned char value) override;
void updateCosts(robot_costmap_2d::Costmap2D& master_grid, int min_i, int min_j, int max_i, int max_j) override;