LookAtArticulatedObjectFrame.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 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 <experimental/memory>
25
26
#include <
RobotAPI/libraries/ArmarXObjects/ObjectPoseClient.h
>
27
#include <
RobotAPI/libraries/armem_objects/client/articulated_object/Reader.h
>
28
#include <
RobotAPI/libraries/skills/provider/SimpleSpecializedSkill.h
>
29
30
#include <
armarx/view_selection/client/ViewSelection.h
>
31
#include <armarx/view_selection/skills/aron/LookAtArticulatedObjectFrame.aron.generated.h>
32
33
namespace
armarx::view_selection::skills
34
{
35
class
LookAtArticulatedObjectFrame
:
36
virtual
public
armarx::skills::SimpleSpecializedSkill
<
37
arondto::LookAtArticulatedObjectFrameParams>
38
{
39
public
:
40
using
Params
= arondto::LookAtArticulatedObjectFrameParams;
41
using
Result
= arondto::LookAtArticulatedObjectFrameParams;
42
using
Base
=
::armarx::skills::SimpleSpecializedSkill<Params>
;
43
44
struct
Services
45
{
46
std::experimental::observer_ptr<::armarx::armem::articulated_object::Reader>
47
articulatedObjectReader
;
48
};
49
50
LookAtArticulatedObjectFrame
(
const
Services
& srv);
51
52
private
:
53
using
Base::init
;
54
::armarx::skills::Skill::InitResult
init(
const
Base::SpecializedInitInput& in)
override
;
55
using
Base::main
;
56
::armarx::skills::Skill::MainResult
main(
const
Base::SpecializedMainInput& in)
override
;
57
58
void
onStopRequested()
override
;
59
60
61
public
:
62
static
armarx::skills::SkillDescription
DefaultSkillDescription
();
63
64
private
:
65
Services
srv_;
66
};
67
68
}
// namespace armarx::view_selection::skills
ObjectPoseClient.h
Reader.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::skills::LookAtArticulatedObjectFrame::Params
arondto::LookAtArticulatedObjectFrameParams Params
Definition
LookAtArticulatedObjectFrame.h:40
armarx::view_selection::skills::LookAtArticulatedObjectFrame::Base
::armarx::skills::SimpleSpecializedSkill< Params > Base
Definition
LookAtArticulatedObjectFrame.h:42
armarx::view_selection::skills::LookAtArticulatedObjectFrame::DefaultSkillDescription
static armarx::skills::SkillDescription DefaultSkillDescription()
Definition
LookAtArticulatedObjectFrame.cpp:150
armarx::view_selection::skills::LookAtArticulatedObjectFrame::Result
arondto::LookAtArticulatedObjectFrameParams Result
Definition
LookAtArticulatedObjectFrame.h:41
armarx::view_selection::skills::LookAtArticulatedObjectFrame::LookAtArticulatedObjectFrame
LookAtArticulatedObjectFrame(const Services &srv)
Definition
LookAtArticulatedObjectFrame.cpp:24
std::experimental::observer_ptr
Definition
ManagedIceObject.h:53
armarx::view_selection::skills
This file is part of ArmarX.
Definition
constants.cpp:26
ViewSelection.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::LookAtArticulatedObjectFrame::Services
Definition
LookAtArticulatedObjectFrame.h:45
armarx::view_selection::skills::LookAtArticulatedObjectFrame::Services::articulatedObjectReader
std::experimental::observer_ptr<::armarx::armem::articulated_object::Reader > articulatedObjectReader
Definition
LookAtArticulatedObjectFrame.h:47
armarx
view_selection
skills
LookAtArticulatedObjectFrame.h
Generated by
1.13.2