We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01bbe48 commit d9618d2Copy full SHA for d9618d2
stomp_moveit/src/stomp_planner.cpp
@@ -160,9 +160,10 @@ bool StompPlanner::solve(planning_interface::MotionPlanResponse &res)
160
ros::WallTime start_time = ros::WallTime::now();
161
planning_interface::MotionPlanDetailedResponse detailed_res;
162
bool success = solve(detailed_res);
163
-
164
- // construct the compact response from the detailed one
165
- res.trajectory_ = detailed_res.trajectory_.back();
+ if(success)
+ {
+ res.trajectory_ = detailed_res.trajectory_.back();
166
+ }
167
ros::WallDuration wd = ros::WallTime::now() - start_time;
168
res.planning_time_ = ros::Duration(wd.sec, wd.nsec).toSec();
169
res.error_code_ = detailed_res.error_code_;
0 commit comments