57 node_->get_parameter_or(
"chomp.planning_time_limit",
params_.planning_time_limit_, 10.0);
58 node_->get_parameter_or(
"chomp.max_iterations",
params_.max_iterations_, 200);
59 node_->get_parameter_or(
"chomp.max_iterations_after_collision_free",
params_.max_iterations_after_collision_free_, 5);
61 node_->get_parameter_or(
"chomp.smoothness_cost_weight",
params_.smoothness_cost_weight_, 0.1);
62 node_->get_parameter_or(
"chomp.obstacle_cost_weight",
params_.obstacle_cost_weight_, 1.0);
63 node_->get_parameter_or(
"chomp.learning_rate",
params_.learning_rate_, 0.01);
65 node_->get_parameter_or(
"chomp.smoothness_cost_velocity",
params_.smoothness_cost_velocity_, 0.0);
66 node_->get_parameter_or(
"chomp.smoothness_cost_acceleration",
params_.smoothness_cost_acceleration_, 1.0);
67 node_->get_parameter_or(
"chomp.smoothness_cost_jerk",
params_.smoothness_cost_jerk_, 0.0);
68 node_->get_parameter_or(
"chomp.ridge_factor",
params_.ridge_factor_, 0.0);
69 node_->get_parameter_or(
"chomp.use_pseudo_inverse",
params_.use_pseudo_inverse_,
false);
70 node_->get_parameter_or(
"chomp.pseudo_inverse_ridge_factor",
params_.pseudo_inverse_ridge_factor_, 1e-4);
72 node_->get_parameter_or(
"chomp.joint_update_limit",
params_.joint_update_limit_, 0.1);
73 node_->get_parameter_or(
"chomp.collision_clearance",
params_.min_clearance_, 0.2);
74 node_->get_parameter_or(
"chomp.collision_threshold",
params_.collision_threshold_, 0.07);
75 node_->get_parameter_or(
"chomp.use_stochastic_descent",
params_.use_stochastic_descent_,
true);
76 params_.trajectory_initialization_method_ =
"quintic-spline";
78 if (
node_->get_parameter(
"chomp.trajectory_initialization_method", method) &&
79 !
params_.setTrajectoryInitializationMethod(method))
82 "Attempted to set trajectory_initialization_method to invalid value '%s'. Using default '%s' "
84 method.c_str(),
params_.trajectory_initialization_method_.c_str());
86 node_->get_parameter_or(
"chomp.enable_failure_recovery",
params_.enable_failure_recovery_,
false);
87 node_->get_parameter_or(
"chomp.max_recovery_attempts",
params_.max_recovery_attempts_, 5);