Skip to content

Commit

Permalink
Small boolean logic fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyZe authored and tylerjw committed Nov 18, 2022
1 parent cbdf2fb commit de27e6d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ ForwardTrajectory::solve(const robot_trajectory::RobotTrajectory& local_trajecto
collision_request_.group_name = local_trajectory.getGroupName();
locked_planning_scene->getCollisionEnv()->checkRobotCollision(collision_request_, collision_result_,
*current_state);
is_path_valid = (!collision_result_.collision || (collision_result_.distance < COLLISION_THRESHOLD));
is_path_valid = (!(collision_result_.collision || (collision_result_.distance < COLLISION_THRESHOLD)));
}

// Check if path is valid
Expand Down

0 comments on commit de27e6d

Please sign in to comment.