47 const auto shortest_trajectory = std::min_element(solutions.begin(), solutions.end(),
48 [](const ::planning_interface::MotionPlanResponse& solution_a,
49 const ::planning_interface::MotionPlanResponse& solution_b) {
51 if (solution_a && solution_b)
53 return robot_trajectory::pathLength(*solution_a.trajectory) <
54 robot_trajectory::pathLength(*solution_b.trajectory);
64 return *shortest_trajectory;