16 params.getParam(
"max_risk",
max_risk, 1.0);
35 params.getParam(
"collision_check/cell_size",
cell_size);
39 double max_step_range_x, max_step_range_y, max_step_range_theta;
40 double max_inverse_step_range_x, max_inverse_step_range_y, max_inverse_step_range_theta;
45 if (params.getParam(
"step_range/x", step_range_x) && params.getParam(
"step_range/y", step_range_y))
48 double max_x = (double)step_range_x[0];
49 double max_y = (double)step_range_y[0];
50 double max_inv_x = (double)step_range_x[0];
51 double max_inv_y = (double)step_range_y[0];
52 for (
int i=0; i < step_range_x.
size(); ++i)
54 double x = (double)step_range_x[i];
55 double y = (double)step_range_y[i];
57 max_x = std::max(max_x, x);
58 max_y = std::max(max_y, y);
59 max_inv_x = std::min(max_inv_x, x);
60 max_inv_y = std::min(max_inv_y, y);
62 double cur_step_width = sqrt(x*x + y*y);
67 max_step_range_x = max_x;
68 max_step_range_y = max_y;
69 params.getParam(
"foot/max/step/theta", max_step_range_theta);
70 max_inverse_step_range_x = max_inv_x;
71 max_inverse_step_range_y = max_inv_y;
72 params.getParam(
"foot/max/inverse/step/theta", max_inverse_step_range_theta);
74 max_x = std::max(std::abs(max_x), std::abs(max_inv_x));
75 max_y = std::max(std::abs(max_y), std::abs(max_inv_y));
81 params.getParam(
"threads",
threads);
86 vigir_generic_params::ParameterSet& params_(const_cast<vigir_generic_params::ParameterSet&>(params));
88 params_.setParam(
"max_step_range/x", max_step_range_x);
89 params_.setParam(
"max_step_range/y", max_step_range_y);
90 params_.setParam(
"max_step_range/yaw", max_step_range_theta);
92 params_.setParam(
"max_step_range/inv_x", max_inverse_step_range_x);
93 params_.setParam(
"max_step_range/inv_y", max_inverse_step_range_y);
94 params_.setParam(
"max_step_range/inv_yaw", max_inverse_step_range_theta);
98 params_.setParam(
"max_step_dist/x", std::max(std::abs(max_step_range_x), std::abs(max_inverse_step_range_x)));
99 params_.setParam(
"max_step_dist/y", 0.5*(std::max(std::abs(max_step_range_y), std::abs(max_inverse_step_range_y)) -
foot_seperation));
bool getParam(const std::string &key, std::string &s) const