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 
26 
28 
30 #include <armarx/view_selection/skills/aron/SetCustomGazeTarget.aron.generated.h>
32 
34 {
36  virtual public armarx::skills::SimpleSpecializedSkill<arondto::SetCustomGazeTargetParams>
37  {
38  public:
39  using Params = arondto::SetCustomGazeTargetParams;
41 
42  struct Context
43  {
45  };
46 
47  SetCustomGazeTarget(const Context& services);
48 
49  void connect(const Context& srv);
50 
51  private:
53 
55 
56  void onStopRequested() override;
57 
58 
59  public:
61 
62  protected:
63  private:
64  std::optional<Context> srv_;
65 
66  // will be initialized in "init()"
67  std::optional<gaze_targets::GazeTarget> gazeTarget;
68  };
69 
70 } // namespace armarx::view_selection::skills
armarx::view_selection::skills
This file is part of ArmarX.
Definition: constants.cpp:25
armarx::skills::SimpleSpecializedSkill< arondto::SetCustomGazeTargetParams >::init
Skill::InitResult init() final
Definition: SimpleSpecializedSkill.h:62
armarx::view_selection::skills::SetCustomGazeTarget::Params
arondto::SetCustomGazeTargetParams Params
Definition: SetCustomGazeTarget.h:39
armarx::skills::SkillDescription
Definition: SkillDescription.h:17
armarx::view_selection::skills::SetCustomGazeTarget::Context::viewSelectionClient
client::ViewSelection & viewSelectionClient
Definition: SetCustomGazeTarget.h:44
armarx::view_selection::skills::SetCustomGazeTarget::SetCustomGazeTarget
SetCustomGazeTarget(const Context &services)
Definition: SetCustomGazeTarget.cpp:14
Duration.h
armarx::view_selection::client::ViewSelection
Definition: ViewSelection.h:37
SimpleSpecializedSkill.h
armarx::skills::SimpleSpecializedSkill::SpecializedMainInput
Definition: SimpleSpecializedSkill.h:24
ManagedIceObject.h
ViewSelection.h
armarx::view_selection::skills::SetCustomGazeTarget::Context
Definition: SetCustomGazeTarget.h:42
armarx::skills::SimpleSpecializedSkill
Definition: SimpleSpecializedSkill.h:10
constants.h
armarx::view_selection::skills::SetCustomGazeTarget
Definition: SetCustomGazeTarget.h:35
armarx::skills::Skill::MainResult
A result struct for th main method of a skill.
Definition: Skill.h:39
armarx::view_selection::skills::SetCustomGazeTarget::connect
void connect(const Context &srv)
Definition: SetCustomGazeTarget.cpp:20
armarx::skills::SimpleSpecializedSkill::SpecializedInitInput
Definition: SimpleSpecializedSkill.h:18
armarx::skills::SimpleSpecializedSkill< arondto::SetCustomGazeTargetParams >::main
Skill::MainResult main() final
Definition: SimpleSpecializedSkill.h:71
armarx::skills::Skill::InitResult
A result struct for skill initialization.
Definition: Skill.h:27
armarx::view_selection::skills::SetCustomGazeTarget::DefaultSkillDescription
static armarx::skills::SkillDescription DefaultSkillDescription()
Definition: SetCustomGazeTarget.cpp:69