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 GetStrideFlight() const
GaitInfo GetStrideHop() const
GaitInfo GetStrideRun() const
GaitInfo GetStrideRightHop() const
Gaits
Predefined strides, each with a different gait diagram.
GaitInfo GetStrideGallopHop() const
Combos
Predefined combinations of different strides.
std::pair< VecTimes, std::vector< ContactState > > GaitInfo
void SetGaits(const std::vector< Gaits > &gaits)
Sets the times_ and contacts_ variables according to the gaits.
GaitInfo GetStrideLeftHop() const
GaitInfo GetStrideStand() const
void SetCombo(Combos combo) override
Sets a specific sequence of gaits.
std::vector< bool > ContactState
GaitInfo GetGait(Gaits gait) const override
GaitInfo GetStrideWalk() const