Skip to content

Commit

Permalink
Finding distance H if obstacle H is <= 0 (ros-navigation#3122)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveMacenski authored Aug 18, 2022
1 parent b58fbc6 commit 82a16dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nav2_smac_planner/src/node_hybrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ float NodeHybrid::getDistanceHeuristic(
y_pos * motion_table.num_angle_quantization +
theta_pos;
motion_heuristic = dist_heuristic_lookup_table[index];
} else if (obstacle_heuristic == 0.0) {
} else if (obstacle_heuristic <= 0.0) {
// If no obstacle heuristic value, must have some H to use
// In nominal situations, this should never be called.
static ompl::base::ScopedState<> from(motion_table.state_space), to(motion_table.state_space);
Expand Down

0 comments on commit 82a16dc

Please sign in to comment.