Skip to content

Commit

Permalink
Use new move_group accessors
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <[email protected]>
  • Loading branch information
methylDragon committed Jul 24, 2024
1 parent 21e16ca commit f6151e3
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions moveit_ros/trajectory_cache/src/trajectory_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -808,16 +808,11 @@ TrajectoryCache::construct_get_cartesian_path_request(moveit::planning_interface
{
moveit_msgs::srv::GetCartesianPath::Request out;

// Some of these parameters need us to pull PRIVATE values out of the
// move_group elsewhere... Yes, it is very cursed and I hate it.
// Fixing it requires fixing it in MoveIt.
moveit_msgs::msg::MotionPlanRequest tmp;
move_group.constructMotionPlanRequest(tmp);

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;
move_group.constructRobotState(out.start_state);

out.group_name = move_group.getName();
out.max_velocity_scaling_factor = move_group.getMaxVelocityScalingFactor();
out.max_acceleration_scaling_factor = move_group.getMaxVelocityScalingFactor();

out.header.frame_id = move_group.getPoseReferenceFrame();
out.waypoints = waypoints;
Expand Down

0 comments on commit f6151e3

Please sign in to comment.