85 default: assert(
false); std::cout <<
"Gait not defined\n";
break;
109 default: assert(
false);
125 return std::make_pair(times, contacts);
140 return std::make_pair(times, contacts);
154 auto phase_contacts =
159 return std::make_pair(times, phase_contacts);
169 step, stand, step, stand,
170 step, stand, step, stand,
172 auto phase_contacts =
178 return std::make_pair(times, phase_contacts);
185 double lateral = 0.13;
186 double diagonal = 0.13;
190 three, lateral, three,
192 three, lateral, three,
195 auto phase_contacts =
203 return std::make_pair(times, phase_contacts);
210 double t_stand = 0.2;
213 t_step, t_stand, t_step, t_stand,
215 auto phase_contacts =
220 return std::make_pair(times, phase_contacts);
233 auto phase_contacts =
239 return std::make_pair(times, phase_contacts);
249 auto phase_contacts =
254 return std::make_pair(times, phase_contacts);
265 stand, flight, stand, flight
267 auto phase_contacts =
272 return std::make_pair(times, phase_contacts);
282 auto phase_contacts =
287 return std::make_pair(times, phase_contacts);
298 stand, flight, stand, flight
300 auto phase_contacts =
305 return std::make_pair(times, phase_contacts);
315 auto phase_contacts =
320 return std::make_pair(times, phase_contacts);
336 auto phase_contacts =
344 return std::make_pair(times, phase_contacts);
359 auto phase_contacts =
365 return std::make_pair(times, phase_contacts);
GaitInfo GetStrideTrotFlyEnd() const
GaitInfo GetStridePronk() const
GaitInfo GetStridePace() const
GaitInfo GetStrideWalk() const
Gaits
Predefined strides, each with a different gait diagram.
GaitInfo RemoveTransition(const GaitInfo &g) const
GaitInfo GetStrideBoundEnd() const
GaitInfo GetStrideGallop() const
Combos
Predefined combinations of different strides.
GaitInfo GetStrideWalkOverlap() const
void SetGaits(const std::vector< Gaits > &gaits)
Sets the times_ and contacts_ variables according to the gaits.
GaitInfo GetGait(Gaits gait) const override
GaitInfo GetStridePaceEnd() const
std::pair< VecTimes, std::vector< ContactState >> GaitInfo
void SetCombo(Combos combo) override
Sets a specific sequence of gaits.
GaitInfo GetStrideStand() const
std::vector< bool > ContactState
GaitInfo GetStrideBound() const
GaitInfo GetStrideTrot() const
GaitInfo GetStrideLimp() const
GaitInfo GetStrideFlight() const
GaitInfo GetStrideTrotFly() const