Skip to content

Commit 6c6644c

Browse files
author
Gaël Écorchard
committed
Do not overwrite the error code in planWithSinglePipeline
Return the `MotionPlanResponse` as-is. Signed-off-by: Gaël Écorchard <gael@km-robotics.cz>
1 parent 5887eb0 commit 6c6644c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

moveit_ros/planning/planning_pipeline_interfaces/src/planning_pipeline_interfaces.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include <moveit/utils/logger.hpp>
3939

4040
#include <thread>
41+
#include <tuple> // std::ignore.
4142

4243
namespace moveit
4344
{
@@ -63,10 +64,7 @@ planWithSinglePipeline(const ::planning_interface::MotionPlanRequest& motion_pla
6364
return motion_plan_response;
6465
}
6566
const planning_pipeline::PlanningPipelinePtr pipeline = it->second;
66-
if (!pipeline->generatePlan(planning_scene, motion_plan_request, motion_plan_response))
67-
{
68-
motion_plan_response.error_code = moveit::core::MoveItErrorCode::FAILURE;
69-
}
67+
std::ignore = pipeline->generatePlan(planning_scene, motion_plan_request, motion_plan_response);
7068
return motion_plan_response;
7169
}
7270

0 commit comments

Comments
 (0)