ScanLocation.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 
26 
27 #include <RobotAPI/interface/core/RobotState.h>
28 #include <RobotAPI/interface/speech/SpeechInterface.h>
29 #include <RobotAPI/interface/units/KinematicUnitInterface.h>
32 
34 #include <armarx/view_selection/skills/aron/ScanLocation.aron.generated.h>
35 
37 {
38  class ScanLocation :
39  virtual public armarx::skills::SimpleSpecializedSkill<arondto::ScanLocationParams>
40  {
41  public:
42  using Params = arondto::ScanLocationParams;
44 
45  struct Services
46  {
48 
49  // objpose::ObjectPoseClient objectPoseClient;
50 
51  // armarx::TextListenerInterfacePrx textToSpeech;
52 
53  // armarx::RobotStateComponentInterfacePrx robotStateComponent;
54 
55  // armem::client::MemoryNameSystem& memoryNameSystem;
56  };
57 
58  ScanLocation(const Services& srv);
59 
61  MakeGazeTarget(const Eigen::Vector3f& position,
62  const arondto::ScanLocationParams& parameters);
63  static std::vector<Eigen::Vector3f>
64  MakeGazeTargetPositions(const arondto::ScanLocationParams& parameters);
65 
66  private:
69 
70  void onStopRequested() override;
71 
72  public:
74 
75  private:
76  const Services srv_;
77 
78  // will be initialized in "init()"
79  };
80 
81 } // namespace armarx::view_selection::skills
armarx::view_selection::skills
This file is part of ArmarX.
Definition: constants.cpp:25
armarx::skills::SimpleSpecializedSkill< arondto::ScanLocationParams >::init
Skill::InitResult init() final
Definition: SimpleSpecializedSkill.h:62
armarx::view_selection::skills::ScanLocation::MakeGazeTargetPositions
static std::vector< Eigen::Vector3f > MakeGazeTargetPositions(const arondto::ScanLocationParams &parameters)
Definition: ScanLocation.cpp:48
armarx::view_selection::skills::ScanLocation::DefaultSkillDescription
static armarx::skills::SkillDescription DefaultSkillDescription()
Definition: ScanLocation.cpp:98
armarx::skills::Skill::parameters
armarx::aron::data::DictPtr parameters
Definition: Skill.h:320
armarx::view_selection::skills::ScanLocation::MakeGazeTarget
static gaze_targets::GazeTarget MakeGazeTarget(const Eigen::Vector3f &position, const arondto::ScanLocationParams &parameters)
Definition: ScanLocation.cpp:20
armarx::skills::SkillDescription
Definition: SkillDescription.h:17
Duration.h
armarx::view_selection::gaze_targets::GazeTarget
Business Object (BO) class of GazeTarget.
Definition: GazeTarget.h:39
armarx::view_selection::client::ViewSelection
Definition: ViewSelection.h:37
SimpleSpecializedSkill.h
armarx::skills::SimpleSpecializedSkill::SpecializedMainInput
Definition: SimpleSpecializedSkill.h:24
ManagedIceObject.h
armarx::view_selection::skills::ScanLocation::Params
arondto::ScanLocationParams Params
Definition: ScanLocation.h:42
ViewSelection.h
armarx::view_selection::skills::ScanLocation
Definition: ScanLocation.h:38
armarx::view_selection::skills::ScanLocation::ScanLocation
ScanLocation(const Services &srv)
Definition: ScanLocation.cpp:15
ObjectPoseClient.h
armarx::skills::SimpleSpecializedSkill
Definition: SimpleSpecializedSkill.h:10
armarx::skills::Skill::MainResult
A result struct for th main method of a skill.
Definition: Skill.h:39
armarx::view_selection::skills::ScanLocation::Services
Definition: ScanLocation.h:45
armarx::view_selection::skills::ScanLocation::Services::viewSelectionClient
client::ViewSelection & viewSelectionClient
Definition: ScanLocation.h:47
armarx::skills::SimpleSpecializedSkill::SpecializedInitInput
Definition: SimpleSpecializedSkill.h:18
armarx::skills::SimpleSpecializedSkill< arondto::ScanLocationParams >::main
Skill::MainResult main() final
Definition: SimpleSpecializedSkill.h:71
armarx::skills::Skill::InitResult
A result struct for skill initialization.
Definition: Skill.h:27