55 double max_time = 2.0;
83 return std::find(v.begin(), v.end(), c) != v.end();
89 std::vector<double> base_spline_timings_;
94 while (t_left > eps) {
95 double duration = t_left>dt? dt : t_left;
96 base_spline_timings_.push_back(duration);
101 return base_spline_timings_;
int ee_polynomials_per_swing_phase_
Number of polynomials to parameterize foot movement during swing phases.
double dt_constraint_base_motion_
Interval at which the base motion constraint is enforced.
UsedConstraints constraints_
Which constraints should be used in the optimization problem.
double min_phase_duration_
When optimizing over phase duration, this is the minimum allowed.
std::vector< bool > ee_in_contact_at_start_
True if the foot is initially in contact with the terrain.
CostWeights costs_
Which costs should be used in the optimiation problem.
double max_phase_duration_
When optimizing over phase duration, this is is maximum allowed.
int GetPhaseCount(EEID ee) const
The number of phases allowed for endeffector ee.
int GetEECount() const
The number of endeffectors.
int force_polynomials_per_stance_phase_
Number of polynomials to parameterize each contact force during stance phase.
Parameters()
Default parameters to use.
std::vector< VecTimes > ee_phase_durations_
Number and initial duration of each foot's swing and stance phases.
VecTimes GetBasePolyDurations() const
The durations of each base polynomial in the spline (lin+ang).
double dt_constraint_dynamic_
Interval at which the dynamic constraint is enforced.
double force_limit_in_norm_
The maximum allowable force [N] in normal direction.
bool OptimizeTimings() const
True if the phase durations should be optimized over.
double dt_constraint_range_of_motion_
Interval at which the range of motion constraint is enforced.
double t_total_
Total duration [s] of the walking motion.
double duration_base_polynomial_
Fixed duration of each cubic polynomial describing the base motion.
std::vector< double > VecTimes