This commit is contained in:
2026-08-14 14:25:00 +07:00
parent 9f7e2f82f1
commit bb74601f09
3 changed files with 17 additions and 19 deletions

View File

@@ -174,6 +174,17 @@ public:
{
return robot_base_frame_;
}
/** @brief Return the TF buffer shared by the costmap and navigation plugins.
*
* The returned reference is non-owning and remains valid only for the
* lifetime of this Costmap2DROBOT instance.
*/
inline tf3::BufferCore& getTfBuffer() noexcept
{
return tf_;
}
LayeredCostmap* getLayeredCostmap() const
{
return layered_costmap_;