We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f13cb1 commit 53f1f42Copy full SHA for 53f1f42
nav2_smac_planner/src/node_hybrid.cpp
@@ -658,10 +658,10 @@ float NodeHybrid::getObstacleHeuristic(
658
if (existing_cost <= 0.0f) {
659
if (motion_table.use_quadratic_cost_penalty) {
660
travel_cost =
661
- (i <= 3 ? 1.0f : sqrt2) * (1.0f + (cost_penalty * cost * cost / 64516.0f)); // 254^2
+ (i <= 3 ? 1.0f : sqrt2) * (1.0f + (cost_penalty * cost * cost / 63504.0f)); // 252^2
662
} else {
663
664
- ((i <= 3) ? 1.0f : sqrt2) * (1.0f + (cost_penalty * cost / 254.0f));
+ ((i <= 3) ? 1.0f : sqrt2) * (1.0f + (cost_penalty * cost / 252.0f));
665
}
666
667
new_cost = c_cost + travel_cost;
0 commit comments