22 #include "MAWalkInitialPosition.hpp" 24 #include "types/MAGoals.hpp" 25 #include "types/MARobotState.hpp" 26 #include "controllers/MALegController.hpp" 27 #include "MAHeadTurnAhead.hpp" 28 #include "MAWalkMaster.hpp" 29 #include "MAWalkSwingBackward.hpp" 30 #include "MAWalkSwingForward.hpp" 49 WalkMaster->StartWalk();
51 MC_WARNING(
"Walk master behavior does not exist!");
70 if (MA::RobotState->Goals->DesiredForwardWalkDuration > 0)
virtual void ActivatingActions() override
Perform actions when the behavior is being activated.
#define MC_WARNING(...)
Warning macro.
#define MABEHAVIOR_CREATE(_behavior, _master,...)
Create behaviors with custom constructor safely.
std::string MCGetClassName(T *instance=nullptr, const std::string &name_suffix="")
Get a class name.
virtual void FinishingActions() override
Perform actions when the behavior is being finished.
MABehavior * GetMaster()
Get the master behavior.
#define MABEHAVIOR_GET(_behavior)
Get a behavior safely with dynamic cast.
void StartTransition(MAController &controller, const std::string &transition_name)
Start a transition.
virtual MABehavior::StimulusLevelType GetCurrentStimulus() override
Get the current behavior stimulus.