22 #include "MASoftCarpetReaction.hpp" 24 #include "core/MARandomness.hpp" 25 #include "types/MARobotState.hpp" 26 #include "controllers/MAHeadController.hpp" 27 #include "controllers/MALedsController.hpp" 28 #include "controllers/MALegController.hpp" 29 #include "MABodyAdjustStandingPosture.hpp" 30 #include "MABodyStateMaster.hpp" #define MA_RANDOM_POINT_1(_variable_name, _min, _max)
Set a random point with one value.
int GetElapsedActivatedStateTime() const
Get the elapsed activated state time.
virtual MABehavior::StimulusLevelType GetCurrentStimulus() override
Get the current behavior stimulus.
MA::DesiredConnectionMap DesiredConnections
Desired connection map to other behaviors.
int PlaySound(const std::string &name)
Play a sound and register the playback.
virtual void ActivatingActions() override
Perform actions when the behavior is being activated.
void SetSelfActivationDuration(const int new_duration)
Set the self-activation duration.
#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.
void StartTransition(MAController &controller, const std::string &transition_name)
Start a transition.
virtual void ActivatedStateUpdate() override
Perform actions when the behavior is in activated state.
virtual void FinishingActions() override
Perform actions when the behavior is being finished.