humoto
|
Finite state machine for walking. [initialize_contact_walk_fsm.m].
Supports online states sequence generation
Definition at line 232 of file stance_finite_state_machine.h.
#include <stance_finite_state_machine.h>
Public Member Functions | |
StanceFiniteStateMachine () | |
StanceFiniteStateMachine (const StanceFSMParameters &sfsm_params) | |
Constructor. More... | |
Stance | getNextStance () const |
Preview next walk state of the FSM. More... | |
void | log (humoto::Logger &, const LogEntryName &, const std::string &) const |
Log. More... | |
std::vector< Stance > | previewStances (const std::size_t preview_duration_ms) const |
Preview sequence of Stances of the FSM. More... | |
void | setParameters (const StanceFSMParameters &sfsm_params) |
void | shiftStance () |
Shift state of the model. More... | |
void | shiftTime (const std::size_t shift_time_ms) |
Shift time. More... | |
Public Attributes | |
Stance | current_stance_ |
std::size_t | current_time_ms_ |
bool | is_tds_started_ |
StanceFSMParameters | sfsm_params_ |
std::size_t | ss_states_to_termination_ |
Private Member Functions | |
void | finalize () |
|
inline |
Definition at line 292 of file stance_finite_state_machine.h.
|
explicit |
Constructor.
[in] | sfsm_params |
Definition at line 396 of file stance_finite_state_machine.h.
|
inlineprivate |
Definition at line 235 of file stance_finite_state_machine.h.
Stance humoto::walking::StanceFiniteStateMachine::getNextStance | ( | ) | const |
Preview next walk state of the FSM.
Definition at line 383 of file stance_finite_state_machine.h.
void humoto::walking::StanceFiniteStateMachine::log | ( | humoto::Logger & | logger, |
const LogEntryName & | parent = LogEntryName() , |
||
const std::string & | name = "stance_fsm" |
||
) | const |
Log.
[in,out] | logger | logger |
[in] | parent | parent |
[in] | name | name |
Definition at line 521 of file stance_finite_state_machine.h.
std::vector< Stance > humoto::walking::StanceFiniteStateMachine::previewStances | ( | const std::size_t | preview_duration_ms | ) | const |
Preview sequence of Stances of the FSM.
[in] | preview_duration_ms |
Definition at line 316 of file stance_finite_state_machine.h.
|
inline |
Definition at line 299 of file stance_finite_state_machine.h.
void humoto::walking::StanceFiniteStateMachine::shiftStance | ( | ) |
Shift state of the model.
Definition at line 431 of file stance_finite_state_machine.h.
void humoto::walking::StanceFiniteStateMachine::shiftTime | ( | const std::size_t | shift_time_ms | ) |
Shift time.
[in] | shift_time_ms |
Definition at line 408 of file stance_finite_state_machine.h.
Stance humoto::walking::StanceFiniteStateMachine::current_stance_ |
Definition at line 282 of file stance_finite_state_machine.h.
std::size_t humoto::walking::StanceFiniteStateMachine::current_time_ms_ |
Definition at line 281 of file stance_finite_state_machine.h.
bool humoto::walking::StanceFiniteStateMachine::is_tds_started_ |
Definition at line 279 of file stance_finite_state_machine.h.
StanceFSMParameters humoto::walking::StanceFiniteStateMachine::sfsm_params_ |
Definition at line 283 of file stance_finite_state_machine.h.
std::size_t humoto::walking::StanceFiniteStateMachine::ss_states_to_termination_ |
Definition at line 280 of file stance_finite_state_machine.h.