From f161f45f7b3fbeb91a8c2b8072ee4a1b7c8f9f2b Mon Sep 17 00:00:00 2001 From: methylDragon Date: Tue, 17 Oct 2023 20:22:30 -0700 Subject: [PATCH] Fix access after move bug Signed-off-by: methylDragon --- nexus_motion_planner/src/motion_planner_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nexus_motion_planner/src/motion_planner_server.cpp b/nexus_motion_planner/src/motion_planner_server.cpp index 8ff222b..08c9cf3 100644 --- a/nexus_motion_planner/src/motion_planner_server.cpp +++ b/nexus_motion_planner/src/motion_planner_server.cpp @@ -704,7 +704,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.");