Skip to content

Commit 6d7f212

Browse files
kaixquKaixian Qu
andauthored
Fix force rewire negation logic (#70)
Co-authored-by: Kaixian Qu <kaixqu@leggedrobotics.com>
1 parent 61069e5 commit 6d7f212

File tree

1 file changed

+1
-1
lines changed
  • active_3d_planning_core/src/module/trajectory_generator

1 file changed

+1
-1
lines changed

active_3d_planning_core/src/module/trajectory_generator/rrt_star.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ bool RRTStar::rewireToBestParent(
371371
planner_.getTrajectoryEvaluator().computeValue(segment);
372372
if (segment->parent == initial_parent) {
373373
// Back to old parent
374-
return ~force_rewire;
374+
return !force_rewire;
375375
} else if (initial_parent == nullptr) {
376376
// Found new parent
377377
segment->parent->children.push_back(

0 commit comments

Comments
 (0)