LookAtHumanFace.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
29
31#include <armarx/view_selection/skills/aron/LookAtHumanFace.aron.generated.h>
34
36
38{
40 virtual public armarx::skills::SimpleSpecializedSkill<arondto::LookAtHumanFaceParams>
41 {
42 public:
43 using Params = arondto::LookAtHumanFaceParams;
45
53
54 LookAtHumanFace(const Services& srv); // FIXME add Properties
55
56 private:
57 using Base::init;
58 ::armarx::skills::Skill::InitResult init(const Base::SpecializedInitInput& in) override;
59
60 using Base::main;
61 ::armarx::skills::Skill::MainResult main(const Base::SpecializedMainInput& in) override;
62
63 void update();
64 std::optional<armem::human::HumanPose> getLatestPoseOfRequestedHuman();
65
66 void onStopRequested() override;
67
68
69 public:
71
72 protected:
73 private:
74 std::optional<Services> srv_;
75
76 std::string humanTrackingId;
77
78 std::unique_ptr<target_provider::handover::RobotReceiver> handoverTargetProvider;
79
80 struct Properties
81 {
82 double updatePeriodMs = 1000. / 30.;
83 } properties;
84
85 bool stop_requested_ = false;
86 };
87
88} // namespace armarx::view_selection::skills
The memory name system (MNS) client.
virtual Skill::MainResult main(const SpecializedMainInput &)
virtual Skill::InitResult init(const SpecializedInitInput &)
::armarx::skills::SimpleSpecializedSkill< Params > Base
static armarx::skills::SkillDescription DefaultSkillDescription()
std::shared_ptr< class Robot > RobotPtr
Definition Bus.h:19
This file is part of ArmarX.
Definition constants.cpp:26
A result struct for skill initialization.
Definition Skill.h:50
A result struct for th main method of a skill.
Definition Skill.h:62