30 #ifndef COSTMAP_CSPACE_COSTMAP_3D_H 31 #define COSTMAP_CSPACE_COSTMAP_3D_H 55 using Ptr = std::shared_ptr<Costmap3d>;
59 ang_resolution_ = ang_resolution;
69 costmap_base->setAngleResolution(ang_resolution_);
74 costmaps_[0] = costmap_base;
82 typename T::Ptr costmap_overlay(
new T);
83 costmap_overlay->setAngleResolution(ang_resolution_);
84 costmap_overlay->setOverlayMode(overlay_mode);
86 costmaps_.back()->setChild(costmap_overlay);
87 costmaps_.push_back(costmap_overlay);
89 return costmap_overlay;
95 costmap_overlay->setAngleResolution(ang_resolution_);
96 costmap_overlay->setOverlayMode(overlay_mode);
98 costmaps_.back()->setChild(costmap_overlay);
99 costmaps_.push_back(costmap_overlay);
101 return costmap_overlay;
105 return costmaps_.front();
110 #endif // COSTMAP_CSPACE_COSTMAP_3D_H
std::vector< Costmap3dLayerBase::Ptr > costmaps_
T::Ptr addLayer(const MapOverlayMode overlay_mode=MapOverlayMode::MAX)
Costmap3dLayerBase::Ptr addLayer(Costmap3dLayerBase::Ptr costmap_overlay, const MapOverlayMode overlay_mode=MapOverlayMode::MAX)
Costmap3dLayerBase::Ptr getRootLayer()
Costmap3d(const int ang_resolution)
std::shared_ptr< Costmap3dLayerBase > Ptr
std::shared_ptr< Costmap3d > Ptr