Skip to content

Commit

Permalink
Move adapter params into separate namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
sjahr committed Oct 23, 2023
1 parent 8da7276 commit 05d4062
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# This files contains the parameters for all of MoveIt's default PlanResponseAdapters
default_plan_response_adapter_parameters:
path_tolerance: {
type: double,
description: "AddTimeOptimalParameterization: Tolerance per joint in which the time parameterization is allowed to deviate from the original path.",
default_value: 0.1,
}
resample_dt: {
type: double,
description: "AddTimeOptimalParameterization: Time steps between two adjacent waypoints of the parameterized trajectory. The trajectory is re-sampled from the original path.",
default_value: 0.1,
}
min_angle_change: {
type: double,
description: "AddTimeOptimalParameterization: Minimum joint value change to consider two waypoints unique.",
default_value: 0.001,
}
totg:
path_tolerance: {
type: double,
description: "AddTimeOptimalParameterization: Tolerance per joint in which the time parameterization is allowed to deviate from the original path.",
default_value: 0.1,
}
resample_dt: {
type: double,
description: "AddTimeOptimalParameterization: Time steps between two adjacent waypoints of the parameterized trajectory. The trajectory is re-sampled from the original path.",
default_value: 0.1,
}
min_angle_change: {
type: double,
description: "AddTimeOptimalParameterization: Minimum joint value change to consider two waypoints unique.",
default_value: 0.001,
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class AddTimeOptimalParameterization : public planning_interface::PlanningRespon
if (res.trajectory)
{
RCLCPP_DEBUG(LOGGER, " Running '%s'", getDescription().c_str());
const auto params = param_listener_->get_params();
const auto params = param_listener_->get_params().totg;
TimeOptimalTrajectoryGeneration totg(params.path_tolerance, params.resample_dt, params.min_angle_change);
return totg.computeTimeStamps(*res.trajectory, req.max_velocity_scaling_factor,
req.max_acceleration_scaling_factor);
Expand Down

0 comments on commit 05d4062

Please sign in to comment.