60 default: assert(
false); std::cout <<
"Gait not defined\n";
break;
78 default: assert(
false);
94 return std::make_pair(times, contacts);
109 return std::make_pair(times, contacts);
116 double stance = 0.05;
122 auto phase_contacts =
128 return std::make_pair(times, phase_contacts);
135 double pushoff = 0.15;
136 double landing = 0.15;
140 landing+pushoff, flight, landing,
142 auto phase_contacts =
148 return std::make_pair(times, phase_contacts);
161 auto phase_contacts =
166 return std::make_pair(times, phase_contacts);
181 auto phase_contacts =
187 return std::make_pair(times, phase_contacts);
201 auto phase_contacts =
206 return std::make_pair(times, phase_contacts);
220 auto phase_contacts =
225 return std::make_pair(times, phase_contacts);
GaitInfo GetStrideStand() const
GaitInfo GetStrideFlight() const
GaitInfo GetStrideRun() const
GaitInfo GetStrideWalk() const
GaitInfo GetStrideRightHop() const
Gaits
Predefined strides, each with a different gait diagram.
Combos
Predefined combinations of different strides.
GaitInfo GetStrideGallopHop() const
void SetGaits(const std::vector< Gaits > &gaits)
Sets the times_ and contacts_ variables according to the gaits.
std::pair< VecTimes, std::vector< ContactState >> GaitInfo
void SetCombo(Combos combo) override
Sets a specific sequence of gaits.
GaitInfo GetStrideLeftHop() const
std::vector< bool > ContactState
GaitInfo GetStrideHop() const
GaitInfo GetGait(Gaits gait) const override