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 61069e5 commit 6d7f212Copy full SHA for 6d7f212
active_3d_planning_core/src/module/trajectory_generator/rrt_star.cpp
@@ -371,7 +371,7 @@ bool RRTStar::rewireToBestParent(
371
planner_.getTrajectoryEvaluator().computeValue(segment);
372
if (segment->parent == initial_parent) {
373
// Back to old parent
374
- return ~force_rewire;
+ return !force_rewire;
375
} else if (initial_parent == nullptr) {
376
// Found new parent
377
segment->parent->children.push_back(
0 commit comments