Skip to content

Commit

Permalink
Fix move bug
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <[email protected]>
  • Loading branch information
methylDragon committed Nov 20, 2023
1 parent 188215b commit b2cda90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nexus_motion_planner/src/motion_plan_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -945,8 +945,8 @@ MotionPlanCache::construct_get_cartesian_plan_request(
moveit_msgs::msg::MotionPlanRequest tmp;
move_group.constructMotionPlanRequest(tmp);

out.start_state = tmp.start_state;
out.group_name = tmp.group_name;
out.start_state = std::move(tmp.start_state);
out.group_name = std::move(tmp.group_name);
out.max_velocity_scaling_factor = tmp.max_velocity_scaling_factor;
out.max_acceleration_scaling_factor = tmp.max_acceleration_scaling_factor;

Expand Down
4 changes: 2 additions & 2 deletions nexus_motion_planner/src/motion_planner_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,8 @@ void MotionPlannerServer::plan_with_move_group(
}
}

res->result.trajectory_start =
std::move(cartesian_plan_req_msg.start_state);
// Do NOT move this. We use the cartesian_plan_req_msg later.
res->result.trajectory_start = cartesian_plan_req_msg.start_state;
res->result.trajectory = std::move(cartesian_plan);

if (res->result.error_code.val !=
Expand Down

0 comments on commit b2cda90

Please sign in to comment.