GazeTargetStatus.cpp
Go to the documentation of this file.
1#include "GazeTargetStatus.h"
2
3#include <ostream>
4
6
8{
9
10 bool
12 {
13 return reachedTimestamp.isValid();
14 }
15
16 bool
21
22 ::std::ostream&
23 operator<<(::std::ostream& os, const GazeTargetStatus& status)
24 {
25 os << "<GazeTargetStatus " << TargetStatusNames.to_name(status.status) << " of "
26 << status.gazeTargetID.str() << ", angular error " << status.angularError
27 << " rad, lateral error " << status.lateralError << " mm";
28
29 if (not status.message.empty())
30 {
31 os << ", " << status.message;
32 }
33
34 return os << ">";
35 }
36
37} // namespace armarx::view_selection::gaze_targets
bool wasReached() const
Whether the gaze was fixed on this target at some point.
bool isTerminal() const
Whether the target has left the scheduler's queue for good.
const simox::meta::EnumNames< TargetStatus > TargetStatusNames
::std::ostream & operator<<(::std::ostream &os, const GazeTarget &target)
bool isTerminal(const TargetStatus status)
Whether the status is terminal, i.e. the target has left the scheduler's queue for good.