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
30namespace armarx::skills
31{
32
33 class PeriodicSkill : public Skill
34 {
35 public:
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
Represents a frequency.
Definition Frequency.h:17
virtual StepResult step()
Override this method with your own step function.
Skill::MainResult main() final
Do not use anymore.
const armarx::Frequency frequency
PeriodicSkill(const SkillDescription &skillDescription, const armarx::Frequency &frequency)
Skill()=delete
We completely remove the default constructor!
std::shared_ptr< Dict > DictPtr
Definition Dict.h:42
This file is part of ArmarX.
This file offers overloads of toIce() and fromIce() functions for STL container types.
ActiveOrTerminatedSkillStatus status
A result struct for th main method of a skill.
Definition Skill.h:62