Skip to content

Commit d590533

Browse files
Smooth path even if goal pose is so much near to the robot (#5423)
* Smooth path even if goal pose is so much near to the robot Signed-off-by: CihatAltiparmak <cihataltiparmak1@gmail.com> * Apply suggestions Signed-off-by: CihatAltiparmak <cihataltiparmak1@gmail.com> * Remove unnecessary diff Signed-off-by: CihatAltiparmak <cihataltiparmak1@gmail.com> --------- Signed-off-by: CihatAltiparmak <cihataltiparmak1@gmail.com>
1 parent ec2885d commit d590533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nav2_smoother/src/simple_smoother.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ bool SimpleSmoother::smooth(
8181
std::lock_guard<nav2_costmap_2d::Costmap2D::mutex_t> lock(*(costmap->getMutex()));
8282

8383
for (unsigned int i = 0; i != path_segments.size(); i++) {
84-
if (path_segments[i].end - path_segments[i].start > 9) {
84+
if (path_segments[i].end - path_segments[i].start > 3) {
8585
// Populate path segment
8686
curr_path_segment.poses.clear();
8787
std::copy(

0 commit comments

Comments
 (0)