Produces the contact sequence for a variety of one-legged gaits. More...
#include <monoped_gait_generator.h>
Public Member Functions | |
MonopedGaitGenerator () | |
virtual | ~MonopedGaitGenerator () |
Private Member Functions | |
GaitInfo | GetGait (Gaits gait) const override |
GaitInfo | GetStrideFlight () const |
GaitInfo | GetStrideHop () const |
GaitInfo | GetStrideHopLong () const |
GaitInfo | GetStrideStand () const |
void | SetCombo (Combos combo) override |
Sets a specific sequence of gaits. | |
Private Attributes | |
ContactState | o_ = ContactState(1, true) |
ContactState | x_ = ContactState(1, false) |
Produces the contact sequence for a variety of one-legged gaits.
Definition at line 42 of file monoped_gait_generator.h.
virtual towr::MonopedGaitGenerator::~MonopedGaitGenerator | ( | ) | [virtual] |
MonopedGaitGenerator::GaitInfo towr::MonopedGaitGenerator::GetGait | ( | Gaits | gait | ) | const [override, private, virtual] |
Implements towr::GaitGenerator.
Definition at line 51 of file monoped_gait_generator.cc.
MonopedGaitGenerator::GaitInfo towr::MonopedGaitGenerator::GetStrideFlight | ( | ) | const [private] |
Definition at line 78 of file monoped_gait_generator.cc.
MonopedGaitGenerator::GaitInfo towr::MonopedGaitGenerator::GetStrideHop | ( | ) | const [private] |
Definition at line 93 of file monoped_gait_generator.cc.
MonopedGaitGenerator::GaitInfo towr::MonopedGaitGenerator::GetStrideHopLong | ( | ) | const [private] |
Definition at line 108 of file monoped_gait_generator.cc.
MonopedGaitGenerator::GaitInfo towr::MonopedGaitGenerator::GetStrideStand | ( | ) | const [private] |
Definition at line 63 of file monoped_gait_generator.cc.
void towr::MonopedGaitGenerator::SetCombo | ( | Combos | combo | ) | [override, private, virtual] |
Sets a specific sequence of gaits.
The derived class decides what each combo maps to. This function then fills the times_ and contacts_ variables accordingly.
Implements towr::GaitGenerator.
Definition at line 38 of file monoped_gait_generator.cc.
ContactState towr::MonopedGaitGenerator::o_ = ContactState(1, true) [private] |
Definition at line 55 of file monoped_gait_generator.h.
ContactState towr::MonopedGaitGenerator::x_ = ContactState(1, false) [private] |
Definition at line 56 of file monoped_gait_generator.h.