From c5bf96f5f710f44c7847ec55781099c5b8418b61 Mon Sep 17 00:00:00 2001 From: Abishalini Date: Thu, 18 Jan 2024 12:55:29 -0700 Subject: [PATCH] Fix bug in move relative --- core/src/solvers/cartesian_path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/solvers/cartesian_path.cpp b/core/src/solvers/cartesian_path.cpp index a9092175..9cc959dd 100644 --- a/core/src/solvers/cartesian_path.cpp +++ b/core/src/solvers/cartesian_path.cpp @@ -116,7 +116,7 @@ tl::expected CartesianPath::plan(const planning_scene::Planni timing->computeTimeStamps(*result, props.get("max_velocity_scaling_factor"), props.get("max_acceleration_scaling_factor")); - if (achieved_fraction >= props.get("min_fraction")) { + if (achieved_fraction < props.get("min_fraction")) { return tl::make_unexpected("Min fraction not met. Achieved fraction : " + std::to_string(achieved_fraction)); } return true;