RotateTowardsLocation.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 Niklas Arlt ( niklas dot arlt at kit dot edu )
17
* @date 2025
18
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19
* GNU General Public License
20
*/
21
22
#pragma once
23
24
#include <
RobotAPI/libraries/skills/core/Skill.h
>
25
#include <
RobotAPI/libraries/skills/core/SkillDescription.h
>
26
#include <
RobotAPI/libraries/skills/core/SkillID.h
>
27
#include <
RobotAPI/libraries/skills/provider/SimpleSpecializedSkill.h
>
28
29
#include <
armarx/navigation/memory/client/graph/Reader.h
>
30
#include <
armarx/navigation/skills/NavigatingSkillHelper.h
>
31
#include <armarx/navigation/skills/aron/RotateTowardsLocation.aron.generated.h>
32
33
namespace
armarx::navigation::skills
34
{
35
/**
36
* @class RotateTowardsLocation
37
* @ingroup Library-armarx_navigation_skills
38
*
39
* @brief Resolve a named location and rotate towards it.
40
*
41
* Subskills:
42
* - armarx::navigation::skills::RotateTowards
43
*/
44
class
RotateTowardsLocation
:
45
virtual
public
armarx::skills::SimpleSpecializedSkill
<arondto::RotateTowardsLocationParams>
46
{
47
public
:
48
using
Params
= arondto::RotateTowardsLocationParams;
49
using
Base
=
::armarx::skills::SimpleSpecializedSkill<Params>
;
50
51
static ::armarx::skills::SkillDescription
GetSkillDescription
();
52
53
struct
Services
54
{
55
armarx::navigation::memory::client::graph::Reader
&
locationReader
;
56
};
57
58
struct
Properties
59
{
60
struct
SubSkillIds
61
{
62
SubSkillIds
();
63
64
armarx::skills::SkillID
rotateTowards
;
65
};
66
67
SubSkillIds
subSkillIDs
;
68
};
69
70
RotateTowardsLocation
(
const
Properties
& properties,
const
Services
& services);
71
72
73
private
:
74
// SpecializedSkill interface
75
// Enable each function you want to override.
76
// bool isAvailable(const SpecializedInitInput&) const override;
77
// ::armarx::skills::Skill::InitResult init(const SpecializedInitInput&) override;
78
using
Base::main
;
79
::armarx::skills::Skill::MainResult
main(
const
SpecializedMainInput& in)
override
;
80
// ::armarx::skills::Skill::ExitResult exit(const SpecializedExitInput&) override;
81
82
83
protected
:
84
private
:
85
Services
services_;
86
Properties
properties_;
87
};
88
89
}
// namespace armarx::navigation::skills
NavigatingSkillHelper.h
SimpleSpecializedSkill.h
SkillDescription.h
SkillID.h
Skill.h
armarx::navigation::memory::client::graph::Reader
Definition
Reader.h:56
armarx::navigation::skills::RotateTowardsLocation::Params
arondto::RotateTowardsLocationParams Params
Definition
RotateTowardsLocation.h:48
armarx::navigation::skills::RotateTowardsLocation::GetSkillDescription
::armarx::skills::SkillDescription GetSkillDescription()
Definition
RotateTowardsLocation.cpp:20
armarx::navigation::skills::RotateTowardsLocation::Base
::armarx::skills::SimpleSpecializedSkill< Params > Base
Definition
RotateTowardsLocation.h:49
armarx::navigation::skills::RotateTowardsLocation::RotateTowardsLocation
RotateTowardsLocation(const Properties &properties, const Services &services)
Definition
RotateTowardsLocation.cpp:42
armarx::skills::SimpleSpecializedSkill
Definition
SimpleSpecializedSkill.h:19
armarx::skills::SimpleSpecializedSkill< Params >::main
virtual Skill::MainResult main(const SpecializedMainInput &)
Definition
SimpleSpecializedSkill.h:54
armarx::skills::SkillID
Definition
SkillID.h:15
armarx::navigation::skills
Definition
constants.cpp:26
Reader.h
armarx::navigation::skills::RotateTowardsLocation::Properties::SubSkillIds
Definition
RotateTowardsLocation.h:61
armarx::navigation::skills::RotateTowardsLocation::Properties::SubSkillIds::SubSkillIds
SubSkillIds()
Definition
RotateTowardsLocation.cpp:37
armarx::navigation::skills::RotateTowardsLocation::Properties::SubSkillIds::rotateTowards
armarx::skills::SkillID rotateTowards
Definition
RotateTowardsLocation.h:64
armarx::navigation::skills::RotateTowardsLocation::Properties
Definition
RotateTowardsLocation.h:59
armarx::navigation::skills::RotateTowardsLocation::Properties::subSkillIDs
SubSkillIds subSkillIDs
Definition
RotateTowardsLocation.h:67
armarx::navigation::skills::RotateTowardsLocation::Services
Definition
RotateTowardsLocation.h:54
armarx::navigation::skills::RotateTowardsLocation::Services::locationReader
armarx::navigation::memory::client::graph::Reader & locationReader
Definition
RotateTowardsLocation.h:55
armarx::skills::Skill::MainResult
A result struct for th main method of a skill.
Definition
Skill.h:62
armarx
navigation
skills
RotateTowardsLocation.h
Generated by
1.13.2