Skip to content

Commit 53f1f42

Browse files
Fixing a typo in Smac Heuristic (#4184)
Signed-off-by: Steve Macenski <[email protected]>
1 parent 9f13cb1 commit 53f1f42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nav2_smac_planner/src/node_hybrid.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,10 +658,10 @@ float NodeHybrid::getObstacleHeuristic(
658658
if (existing_cost <= 0.0f) {
659659
if (motion_table.use_quadratic_cost_penalty) {
660660
travel_cost =
661-
(i <= 3 ? 1.0f : sqrt2) * (1.0f + (cost_penalty * cost * cost / 64516.0f)); // 254^2
661+
(i <= 3 ? 1.0f : sqrt2) * (1.0f + (cost_penalty * cost * cost / 63504.0f)); // 252^2
662662
} else {
663663
travel_cost =
664-
((i <= 3) ? 1.0f : sqrt2) * (1.0f + (cost_penalty * cost / 254.0f));
664+
((i <= 3) ? 1.0f : sqrt2) * (1.0f + (cost_penalty * cost / 252.0f));
665665
}
666666

667667
new_cost = c_cost + travel_cost;

0 commit comments

Comments
 (0)