lipm_walking::State Struct Referenceabstract

Convenience wrapper for FSM states. More...

#include <lipm_walking/State.h>

Inheritance diagram for lipm_walking::State:
lipm_walking::states::DoubleSupport lipm_walking::states::Initial lipm_walking::states::SingleSupport lipm_walking::states::Standing

Public Member Functions

EIGEN_MAKE_ALIGNED_OPERATOR_NEW void configure (const mc_rtc::Configuration &) override
 No configuration by default. More...
 
Controllercontroller ()
 Get controller. More...
 
std::shared_ptr< mc_rtc::gui::StateBuilder > gui ()
 Get GUI handle. More...
 
mc_rtc::Logger & logger ()
 Get logger. More...
 
Pendulumpendulum ()
 Get pendulum reference. More...
 
FootstepPlanplan ()
 Get footstep plan. More...
 
bool run (mc_control::fsm::Controller &) override
 Main function. More...
 
Stabilizerstabilizer ()
 Get stabilizer. More...
 
void start (mc_control::fsm::Controller &controller) override
 Start function. More...
 
void teardown (mc_control::fsm::Controller &) override
 Teardown function. More...
 
virtual bool checkTransitions ()=0
 
virtual void runState ()=0
 
virtual void start ()=0
 
virtual void teardown ()=0
 

Protected Attributes

Controllercontroller_ = nullptr
 

Detailed Description

Convenience wrapper for FSM states.

Definition at line 38 of file State.h.

Member Function Documentation

virtual bool lipm_walking::State::checkTransitions ( )
pure virtual
EIGEN_MAKE_ALIGNED_OPERATOR_NEW void lipm_walking::State::configure ( const mc_rtc::Configuration &  )
inlineoverride

No configuration by default.

Definition at line 45 of file State.h.

Controller& lipm_walking::State::controller ( )
inline

Get controller.

Returns
controller Reference to controller.

Definition at line 52 of file State.h.

std::shared_ptr<mc_rtc::gui::StateBuilder> lipm_walking::State::gui ( )
inline

Get GUI handle.

Returns
gui GUI handle.

Definition at line 62 of file State.h.

mc_rtc::Logger& lipm_walking::State::logger ( )
inline

Get logger.

Returns
logger Reference to logger.

Definition at line 72 of file State.h.

Pendulum& lipm_walking::State::pendulum ( )
inline

Get pendulum reference.

Returns
pendulum Reference to pendulum state.

Definition at line 82 of file State.h.

FootstepPlan& lipm_walking::State::plan ( )
inline

Get footstep plan.

Returns
plan Reference to footstep plan.

Definition at line 92 of file State.h.

bool lipm_walking::State::run ( mc_control::fsm::Controller &  )
inlineoverride

Main function.

Definition at line 100 of file State.h.

virtual void lipm_walking::State::runState ( )
pure virtual
Stabilizer& lipm_walking::State::stabilizer ( )
inline

Get stabilizer.

Returns
stabilizer Reference to stabilizer.

Definition at line 115 of file State.h.

void lipm_walking::State::start ( mc_control::fsm::Controller &  controller)
inlineoverride

Start function.

Definition at line 123 of file State.h.

void lipm_walking::State::teardown ( mc_control::fsm::Controller &  )
inlineoverride

Teardown function.

Definition at line 132 of file State.h.

virtual void lipm_walking::State::teardown ( )
pure virtual

Member Data Documentation

Controller* lipm_walking::State::controller_ = nullptr
protected

Definition at line 143 of file State.h.