SetCustomGazeTarget.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 ( ujrwq at student dot kit dot edu )
17
* @date 2023
18
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19
* GNU General Public License
20
*/
21
22
#pragma once
23
24
#include <
ArmarXCore/core/ManagedIceObject.h
>
25
#include <
ArmarXCore/core/time/Duration.h
>
26
27
#include <
RobotAPI/libraries/skills/provider/SimpleSpecializedSkill.h
>
28
29
#include <
armarx/view_selection/client/ViewSelection.h
>
30
#include <armarx/view_selection/skills/aron/SetCustomGazeTarget.aron.generated.h>
31
#include <
armarx/view_selection/skills/constants.h
>
32
33
namespace
armarx::view_selection::skills
34
{
35
class
SetCustomGazeTarget
:
36
virtual
public
armarx::skills::SimpleSpecializedSkill
<arondto::SetCustomGazeTargetParams>
37
{
38
public
:
39
using
Params
= arondto::SetCustomGazeTargetParams;
40
using
Base
=
::armarx::skills::SimpleSpecializedSkill<Params>
;
41
42
struct
Context
43
{
44
client::ViewSelection
&
viewSelectionClient
;
45
};
46
47
SetCustomGazeTarget
(
const
Context
& services);
48
49
void
connect
(
const
Context
& srv);
50
51
private
:
52
using
Base::init
;
53
::armarx::skills::Skill::InitResult
init(
const
Base::SpecializedInitInput& in)
override
;
54
55
using
Base::main
;
56
::armarx::skills::Skill::MainResult
main(
const
Base::SpecializedMainInput& in)
override
;
57
58
void
onStopRequested()
override
;
59
60
public
:
61
static
armarx::skills::SkillDescription
DefaultSkillDescription
();
62
63
protected
:
64
private
:
65
std::optional<Context> srv_;
66
67
// will be initialized in "init()"
68
std::optional<gaze_targets::GazeTarget> gazeTarget;
69
};
70
71
}
// namespace armarx::view_selection::skills
Duration.h
ManagedIceObject.h
SimpleSpecializedSkill.h
armarx::skills::SimpleSpecializedSkill
Definition
SimpleSpecializedSkill.h:19
armarx::skills::SimpleSpecializedSkill< Params >::main
virtual Skill::MainResult main(const SpecializedMainInput &)
Definition
SimpleSpecializedSkill.h:54
armarx::skills::SimpleSpecializedSkill< Params >::init
virtual Skill::InitResult init(const SpecializedInitInput &)
Definition
SimpleSpecializedSkill.h:48
armarx::view_selection::client::ViewSelection
Definition
ViewSelection.h:24
armarx::view_selection::skills::SetCustomGazeTarget::Params
arondto::SetCustomGazeTargetParams Params
Definition
SetCustomGazeTarget.h:39
armarx::view_selection::skills::SetCustomGazeTarget::Base
::armarx::skills::SimpleSpecializedSkill< Params > Base
Definition
SetCustomGazeTarget.h:40
armarx::view_selection::skills::SetCustomGazeTarget::DefaultSkillDescription
static armarx::skills::SkillDescription DefaultSkillDescription()
Definition
SetCustomGazeTarget.cpp:89
armarx::view_selection::skills::SetCustomGazeTarget::SetCustomGazeTarget
SetCustomGazeTarget(const Context &services)
Definition
SetCustomGazeTarget.cpp:27
armarx::view_selection::skills::SetCustomGazeTarget::connect
void connect(const Context &srv)
Definition
SetCustomGazeTarget.cpp:34
armarx::view_selection::skills
This file is part of ArmarX.
Definition
constants.cpp:26
ViewSelection.h
constants.h
armarx::skills::SkillDescription
Definition
SkillDescription.h:18
armarx::skills::Skill::InitResult
A result struct for skill initialization.
Definition
Skill.h:50
armarx::skills::Skill::MainResult
A result struct for th main method of a skill.
Definition
Skill.h:62
armarx::view_selection::skills::SetCustomGazeTarget::Context
Definition
SetCustomGazeTarget.h:43
armarx::view_selection::skills::SetCustomGazeTarget::Context::viewSelectionClient
client::ViewSelection & viewSelectionClient
Definition
SetCustomGazeTarget.h:44
armarx
view_selection
skills
SetCustomGazeTarget.h
Generated by
1.13.2