Skip to content

Commit

Permalink
Bugfix: initialize fpl for straight arcs
Browse files Browse the repository at this point in the history
  • Loading branch information
elvout authored and joydeep-b committed Jan 25, 2023
1 parent 3dd41cb commit 3b33b91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/navigation/ackermann_motion_primitives.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ void AckermannSampler::SetMaxPathLength(ConstantCurvatureArc* path_ptr) {
ConstantCurvatureArc& path = *path_ptr;
if (fabs(path.curvature) < kEpsilon) {
path.length = min(nav_params.max_free_path_length, local_target.x());
path.fpl = path.length;
return;
}
const float turn_radius = 1.0f / path.curvature;
Expand Down

0 comments on commit 3b33b91

Please sign in to comment.