diff --git a/nexus_motion_planner/src/motion_planner_server.cpp b/nexus_motion_planner/src/motion_planner_server.cpp index 62688d6..c829ecd 100644 --- a/nexus_motion_planner/src/motion_planner_server.cpp +++ b/nexus_motion_planner/src/motion_planner_server.cpp @@ -731,7 +731,7 @@ void MotionPlannerServer::plan_with_move_group( res->result.trajectory.joint_trajectory.points.back() .time_from_start ).seconds(), - plan.planning_time, + res->result.planning_time, _cache_mode == PlannerDatabaseMode::TrainingOverwrite)) { RCLCPP_WARN(this->get_logger(), "Did not put plan into cache.");