22 #include "MAAvoidObstacleMaster.hpp" 24 #include "types/MABodyMotion.hpp" 25 #include "types/MAComplexIndicators.hpp" 26 #include "types/MARobotState.hpp" 27 #include "MAAbyssWalkingTalk.hpp" 28 #include "MATurnAway.hpp" 39 if (MA::RobotState->BodyMotion->IsBodyRollInWalkRange() &&
40 MA::RobotState->BodyMotion->Flying < 20 &&
41 (MA::RobotState->ComplexIndicators->NearObjectForward > 50 ||
42 MA::RobotState->ComplexIndicators->AbyssWhileWalking > 90))
52 if (MA::RobotState->ComplexIndicators->AbyssWhileWalking > 80)
void SetLifetimeExpirationTime(const unsigned int expiration_time)
Set the lifetime expiration time.
Talking when abyss is detected before the dog while walking.
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.
virtual MABehavior::StimulusLevelType GetCurrentStimulus() override
Get the current behavior stimulus.
Turn away from an abyss or an object.
virtual void ActivatingActions() override
Perform actions when the behavior is being activated.