PeriodicSkill.h
Go to the documentation of this file.
1 /**
2  * This file is part of ArmarX.
3  *
4  * ArmarX is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * ArmarX is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * @author Fabian Reister ( fabian dot reister at kit dot edu )
17  * @date 2022
18  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19  * GNU General Public License
20  */
21 
22 #pragma once
23 
25 
27 
28 #include "SpecializedSkill.h"
29 
30 namespace armarx::skills
31 {
32 
33  class PeriodicSkill : public Skill
34  {
35  public:
36  struct StepResult
37  {
40  };
41 
42  PeriodicSkill(const SkillDescription& skillDescription, const armarx::Frequency& frequency);
43 
44  protected:
45  /// Do not use anymore
46  Skill::MainResult main() final;
47 
48  /// Override this method with your own step function
49  virtual StepResult step();
50 
51  protected:
53  };
54 
55 
56 } // namespace armarx::skills
armarx::skills::PeriodicSkill::frequency
const armarx::Frequency frequency
Definition: PeriodicSkill.h:52
armarx::skills::PeriodicSkill::StepResult::status
ActiveOrTerminatedSkillStatus status
Definition: PeriodicSkill.h:38
armarx::skills::PeriodicSkill::main
Skill::MainResult main() final
Do not use anymore.
Definition: PeriodicSkill.cpp:40
armarx::skills
This file is part of ArmarX.
Definition: PeriodicUpdateWidget.cpp:11
armarx::skills::PeriodicSkill
Definition: PeriodicSkill.h:33
armarx::skills::SkillDescription
Definition: SkillDescription.h:18
Frequency.h
armarx::core::time::Frequency
Represents a frequency.
Definition: Frequency.h:17
armarx::skills::PeriodicSkill::StepResult::data
aron::data::DictPtr data
Definition: PeriodicSkill.h:39
armarx::skills::ActiveOrTerminatedSkillStatus
ActiveOrTerminatedSkillStatus
Definition: SkillStatusUpdate.h:31
Skill.h
armarx::skills::PeriodicSkill::PeriodicSkill
PeriodicSkill(const SkillDescription &skillDescription, const armarx::Frequency &frequency)
Definition: PeriodicSkill.cpp:33
armarx::skills::Skill::MainResult
A result struct for th main method of a skill.
Definition: Skill.h:48
armarx::aron::data::DictPtr
std::shared_ptr< Dict > DictPtr
Definition: Dict.h:41
armarx::skills::PeriodicSkill::step
virtual StepResult step()
Override this method with your own step function.
Definition: PeriodicSkill.cpp:76
armarx::skills::Skill
Base class for skills.
Definition: Skill.h:29
SpecializedSkill.h
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::skills::PeriodicSkill::StepResult
Definition: PeriodicSkill.h:36