30 #ifndef COSTMAP_CSPACE_COSTMAP_3D_H 31 #define COSTMAP_CSPACE_COSTMAP_3D_H 54 using Ptr = std::shared_ptr<Costmap3d>;
58 ang_resolution_ = ang_resolution;
68 costmap_base->setAngleResolution(ang_resolution_);
73 costmaps_[0] = costmap_base;
81 typename T::Ptr costmap_overlay(
new T);
82 costmap_overlay->setAngleResolution(ang_resolution_);
83 costmap_overlay->setOverlayMode(overlay_mode);
85 costmaps_.back()->setChild(costmap_overlay);
86 costmaps_.push_back(costmap_overlay);
88 return costmap_overlay;
94 costmap_overlay->setAngleResolution(ang_resolution_);
95 costmap_overlay->setOverlayMode(overlay_mode);
97 costmaps_.back()->setChild(costmap_overlay);
98 costmaps_.push_back(costmap_overlay);
100 return costmap_overlay;
104 return costmaps_.front();
109 #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