ViewSelection.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
* @package view_selection::ArmarXObjects::scheduler_example
17
* @author Johann Mantel ( j-mantel at gmx dot net )
18
* @date 2022
19
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20
* GNU General Public License
21
*/
22
23
#pragma once
24
25
#include <
ArmarXCore/core/Component.h
>
26
27
#include <
RobotAPI/libraries/armem/client/Writer.h
>
28
#include <
RobotAPI/libraries/armem/client/plugins.h
>
29
#include <
RobotAPI/libraries/armem/client/plugins/PluginUser.h
>
30
#include <
RobotAPI/libraries/armem/core/error/mns.h
>
31
#include <
RobotAPI/libraries/armem_robot_state/client/common/VirtualRobotReader.h
>
32
33
#include <
armarx/view_selection/gaze_targets.h
>
34
35
namespace
armarx::view_selection::client
36
{
37
class
ViewSelection
38
{
39
public
:
40
ViewSelection
(
armarx::armem::client::MemoryNameSystem
& mns,
41
std::string providerSegmentName);
42
~ViewSelection
();
43
44
void
connect
();
45
46
gaze_targets::GazeTarget
readGazeTarget
(
const
std::string name);
47
48
void
commitGazeTarget
(
const
gaze_targets::GazeTarget
&
target
);
49
void
commitGazeTargets
(
const
std::vector<gaze_targets::GazeTarget>&
targets
);
50
51
protected
:
52
private
:
53
// Private member variables go here.
54
armarx::armem::client::MemoryNameSystem
& memoryNameSystem;
55
std::string providerSegmentName;
56
const
armarx::armem::MemoryID
coreSegmentID;
57
armarx::armem::client::Writer
memoryWriter;
58
armarx::armem::client::Reader
memoryReader;
59
};
60
61
}
// namespace armarx::view_selection::client
armarx::armem::client::Reader
Reads data from a memory server.
Definition:
Reader.h:24
armarx::targets
Brief description of class targets.
Definition:
targets.h:38
Writer.h
gaze_targets.h
boost::target
Vertex target(const detail::edge_base< Directed, Vertex > &e, const PCG &)
Definition:
point_cloud_graph.h:668
mns.h
armarx::view_selection::gaze_targets::GazeTarget
Business Object (BO) class of GazeTarget.
Definition:
GazeTarget.h:39
armarx::view_selection::client::ViewSelection::commitGazeTargets
void commitGazeTargets(const std::vector< gaze_targets::GazeTarget > &targets)
Definition:
ViewSelection.cpp:114
armarx::view_selection::client::ViewSelection
Definition:
ViewSelection.h:37
armarx::view_selection::client
Definition:
ComponentPlugin.cpp:30
armarx::armem::MemoryID
A memory ID.
Definition:
MemoryID.h:47
armarx::view_selection::client::ViewSelection::~ViewSelection
~ViewSelection()
armarx::armem::client::Writer
Helps a memory client sending data to a memory.
Definition:
Writer.h:22
VirtualRobotReader.h
plugins.h
Component.h
armarx::view_selection::client::ViewSelection::commitGazeTarget
void commitGazeTarget(const gaze_targets::GazeTarget &target)
Definition:
ViewSelection.cpp:88
armarx::view_selection::client::ViewSelection::readGazeTarget
gaze_targets::GazeTarget readGazeTarget(const std::string name)
Definition:
ViewSelection.cpp:64
PluginUser.h
armarx::armem::client::MemoryNameSystem
The memory name system (MNS) client.
Definition:
MemoryNameSystem.h:73
armarx::view_selection::client::ViewSelection::connect
void connect()
Definition:
ViewSelection.cpp:47
armarx::view_selection::client::ViewSelection::ViewSelection
ViewSelection(armarx::armem::client::MemoryNameSystem &mns, std::string providerSegmentName)
Definition:
ViewSelection.cpp:35
armarx
view_selection
client
ViewSelection.h
Generated by
1.8.17