Sleep.h
Go to the documentation of this file.
1 #pragma once
2 
3 // RobotAPI
4 #include <RobotAPI/components/skills/SkillProviderExample/aron/SleepAcceptedType.aron.generated.h>
6 
8 {
9  // Skills:
10  class Sleep : public SimpleSpecializedSkill<armarx::skills::Example::SleepAcceptedType>
11  {
12  public:
13  Sleep();
14 
16 
17  void onStopRequested() override;
18 
19  private:
20  std::atomic_bool aborted = false;
21  armarx::Duration timeout;
22  Skill::MainResult main(const SpecializedMainInput& in) final;
23  };
24 } // namespace armarx::skills::provider
armarx::skills::SkillDescription
Definition: SkillDescription.h:17
SimpleSpecializedSkill.h
armarx::skills::SimpleSpecializedSkill
Definition: SimpleSpecializedSkill.h:10
armarx::skills::provider::Sleep::onStopRequested
void onStopRequested() override
Definition: Sleep.cpp:32
armarx::skills::provider
Definition: BusyWaiting.cpp:6
armarx::skills::Skill::MainResult
A result struct for th main method of a skill.
Definition: Skill.h:39
armarx::skills::provider::Sleep
Definition: Sleep.h:10
armarx::skills::provider::Sleep::Sleep
Sleep()
Definition: Sleep.cpp:10
armarx::skills::SimpleSpecializedSkill< armarx::skills::Example::SleepAcceptedType >::main
Skill::MainResult main() final
Definition: SimpleSpecializedSkill.h:71
armarx::core::time::Duration
Represents a duration.
Definition: Duration.h:16
armarx::skills::provider::Sleep::GetSkillDescription
static SkillDescription GetSkillDescription()
Definition: Sleep.cpp:16