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

@@ -573,6 +573,7 @@ void Costmap2DROBOT::readFootprintFromConfig(const std::vector<robot_geometry_ms
void Costmap2DROBOT::setUnpaddedRobotFootprint(const std::vector<robot_geometry_msgs::Point>& points)
{
boost::recursive_mutex::scoped_lock lock(configuration_mutex_);
unpadded_footprint_ = points;
padded_footprint_ = points;
padFootprint(padded_footprint_, footprint_padding_);
@@ -604,6 +605,7 @@ void Costmap2DROBOT::mapUpdateLoop(double frequency)
void Costmap2DROBOT::updateMap()
{
boost::recursive_mutex::scoped_lock lock(configuration_mutex_);
if (!stop_updates_)
{
// get global pose