22 #include "MALegMoveAway.hpp" 24 #include "types/MABodyMotion.hpp" 25 #include "types/MARobotState.hpp" 26 #include "controllers/MALegController.hpp" 27 #include "MALegLyingPosition.hpp" 28 #include "MALegSittingPosition.hpp" 30 MALegMoveAway::MALegMoveAway(MA::Leg::LegTypes leg_type) :
49 if (MA::RobotState->BodyMotion->Lying > 60)
59 MA::RobotState->LegLF->IsBackwardNearBody()) ||
61 MA::RobotState->LegRF->IsBackwardNearBody()))
75 if (MA::RobotState->BodyMotion->Lying > 80)
79 if (MA::RobotState->BodyMotion->Sitting > 80)
MA::DesiredConnectionMap DesiredConnections
Desired connection map to other behaviors.
MALegController * Controller
Leg controller.
Moves the leg to sitting position.
Base class for leg behaviors.
Move a leg to lying position.
MA::Leg::LegTypes Type
The leg type.
std::string MCGetClassName(T *instance=nullptr, const std::string &name_suffix="")
Get a class name.
virtual void ActivatingActions() override
Perform actions when the behavior is being activated.
const MALeg & LegState
Leg state.
virtual MABehavior::StimulusLevelType GetCurrentStimulus() override
Get the current behavior stimulus.
MABehavior * GetMaster()
Get the master behavior.
virtual void FinishingActions() override
Perform actions when the behavior is being finished.
void StartTransition(MAController &controller, const std::string &transition_name)
Start a transition.