Skip to content

Commit

Permalink
Use waypoint merge radius override when computing plan starts
Browse files Browse the repository at this point in the history
Signed-off-by: Michael X. Grey <[email protected]>
  • Loading branch information
mxgrey committed Mar 7, 2025
1 parent bc65e45 commit cd52f83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rmf_traffic/src/rmf_traffic/agv/Planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1169,8 +1169,10 @@ std::vector<Plan::Start> compute_plan_starts(
continue;

const Eigen::Vector2d wp_location = wp.get_location();
const auto merge_radius =
wp.merge_radius().value_or(max_merge_waypoint_distance);

if ( (p_location - wp_location).norm() < max_merge_waypoint_distance)
if ( (p_location - wp_location).norm() < merge_radius)
{
return {Plan::Start(start_time, wp.index(), start_yaw)};
}
Expand Down

0 comments on commit cd52f83

Please sign in to comment.