Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vel and acc scaling to computeCartesianPath in Humble #3051

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ bool MoveGroupCartesianPathService::computeService(
// time trajectory
// \todo optionally compute timing to move the eef with constant speed
trajectory_processing::TimeOptimalTrajectoryGeneration time_param;
time_param.computeTimeStamps(rt, 1.0);
time_param.computeTimeStamps(rt, req->max_velocity_scaling_factor, req->max_acceleration_scaling_factor);

rt.getRobotTrajectoryMsg(res->solution);
RCLCPP_INFO(LOGGER, "Computed Cartesian path with %u points (followed %lf%% of requested trajectory)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,8 @@ class MoveGroupInterface::MoveGroupInterfaceImpl
req->path_constraints = path_constraints;
req->avoid_collisions = avoid_collisions;
req->link_name = getEndEffectorLink();
req->max_velocity_scaling_factor = max_velocity_scaling_factor_;
req->max_acceleration_scaling_factor = max_acceleration_scaling_factor_;

auto future_response = cartesian_path_service_->async_send_request(req);
if (future_response.valid())
Expand Down
Loading