GazeTarget.cpp
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 armarx_control::ArmarXObjects::object
17  * @author Johann Mantel
18  * @date 2nullptr22
19  * @copyright http://www.gnu.org/licenses/gpl-2.nullptr.txt
20  * GNU General Public License
21  */
22 
23 #include "GazeTarget.h"
24 
25 #include <iostream>
26 
28 {
29  GazeTarget::GazeTarget() = default;
30 
31  GazeTarget::GazeTarget(std::string name,
32  const FramedPosition& position,
33  const TargetPriority& priority,
35  const bool keepInQueue) :
36  name(name),
37  position(position),
38  priority(priority),
39  duration(duration),
40  keepInQueue(keepInQueue)
41  {
43 
48  }
49 
50  bool
52  {
54  }
55 
56  bool
58  {
60  }
61 
62  bool
64  {
66  }
67 
68  bool
70  {
72  }
73 
74  ::std::ostream&
75  operator<<(::std::ostream& os, const GazeTarget& target)
76  {
77  return os << "{ " << target.name << ", " << target.creationTimestamp << ", "
78  << target.priority << ", " << target.duration << ", "
79  << TargetStatusNames.to_name(target.status) << " }";
80  }
81 } // namespace armarx::view_selection::gaze_targets
armarx::view_selection::gaze_targets::GazeTarget::isReached
bool isReached() const
Definition: GazeTarget.cpp:57
armarx::core::time::DateTime::Now
static DateTime Now()
Definition: DateTime.cpp:51
armarx::view_selection::gaze_targets::GazeTarget::releasedTimestamp
armarx::DateTime releasedTimestamp
Definition: GazeTarget.h:54
boost::target
Vertex target(const detail::edge_base< Directed, Vertex > &e, const PCG &)
Definition: point_cloud_graph.h:668
armarx::view_selection::gaze_targets::GazeTarget
Business Object (BO) class of GazeTarget.
Definition: GazeTarget.h:39
armarx::view_selection::gaze_targets::GazeTarget::isReleased
bool isReleased() const
Definition: GazeTarget.cpp:63
armarx::view_selection::gaze_targets::GazeTarget::reachedTimestamp
armarx::DateTime reachedTimestamp
Definition: GazeTarget.h:53
armarx::view_selection::gaze_targets::TargetStatusNames
const simox::meta::EnumNames< TargetStatus > TargetStatusNames
Definition: TargetStatus.h:46
armarx::view_selection::gaze_targets::operator<<
::std::ostream & operator<<(::std::ostream &os, const GazeTarget &target)
Definition: GazeTarget.cpp:75
armarx::FramedPosition
The FramedPosition class.
Definition: FramedPose.h:157
armarx::view_selection::gaze_targets
Definition: aron_conversions.cpp:25
armarx::core::time::DateTime::toMicroSecondsSinceEpoch
std::int64_t toMicroSecondsSinceEpoch() const
Definition: DateTime.cpp:87
armarx::view_selection::gaze_targets::GazeTarget::isActive
bool isActive() const
Definition: GazeTarget.cpp:51
armarx::view_selection::gaze_targets::GazeTarget::GazeTarget
GazeTarget()
armarx::core::time::DateTime
Represents a point in time.
Definition: DateTime.h:24
armarx::view_selection::gaze_targets::GazeTarget::creationTimestamp
armarx::DateTime creationTimestamp
Definition: GazeTarget.h:51
armarx::view_selection::gaze_targets::GazeTarget::abortedTimestamp
armarx::DateTime abortedTimestamp
Definition: GazeTarget.h:55
armarx::core::time::Duration
Represents a duration.
Definition: Duration.h:16
armarx::view_selection::gaze_targets::GazeTarget::activationTimestamp
armarx::DateTime activationTimestamp
Definition: GazeTarget.h:52
GazeTarget.h
armarx::view_selection::gaze_targets::TargetPriority
The Priority of a GazeTarget.
Definition: TargetPriority.h:39
armarx::view_selection::gaze_targets::GazeTarget::isAborted
bool isAborted() const
Definition: GazeTarget.cpp:69