diff --git a/hubero_core/include/hubero_core/actor.h b/hubero_core/include/hubero_core/actor.h index f99e874a..29d1a8c2 100644 --- a/hubero_core/include/hubero_core/actor.h +++ b/hubero_core/include/hubero_core/actor.h @@ -152,6 +152,10 @@ class Actor { void thSetupAnimationWalk(); void thSetupAnimationStand(); void thSetupAnimationLieDown(); + void thSetupAnimationLying(); + void thSetupAnimationSitDown(); + void thSetupAnimationSitting(); + void thSetupAnimationStandUp(); /// @} diff --git a/hubero_core/src/actor.cpp b/hubero_core/src/actor.cpp index ad60ce3c..6f4b795c 100644 --- a/hubero_core/src/actor.cpp +++ b/hubero_core/src/actor.cpp @@ -502,6 +502,22 @@ void Actor::thSetupAnimationLieDown() { animation_control_ptr_->start(AnimationType::ANIMATION_LIE_DOWN, mem_.getTimeCurrent()); } +void Actor::thSetupAnimationLying() { + animation_control_ptr_->start(AnimationType::ANIMATION_LYING, mem_.getTimeCurrent()); +} + +void Actor::thSetupAnimationSitDown() { + animation_control_ptr_->start(AnimationType::ANIMATION_SIT_DOWN, mem_.getTimeCurrent()); +} + +void Actor::thSetupAnimationSitting() { + animation_control_ptr_->start(AnimationType::ANIMATION_SITTING, mem_.getTimeCurrent()); +} + +void Actor::thSetupAnimationStandUp() { + animation_control_ptr_->start(AnimationType::ANIMATION_STAND_UP, mem_.getTimeCurrent()); +} + void Actor::updateFsmSuper() { EventFsmSuper event {}; event.follow_object = TaskPredicates(*task_follow_object_ptr_);