LinearPredictionsVisu.h
Go to the documentation of this file.
1
#pragma once
2
3
4
#include <
ArmarXCore/core/application/properties/forward_declarations.h
>
5
#include <
ArmarXCore/core/logging/Logging.h
>
6
#include <
ArmarXCore/core/time/DateTime.h
>
7
8
#include <
ArmarXGui/libraries/RemoteGui/Client/Widgets.h
>
9
10
#include <
RobotAPI/components/ArViz/Client/Layer.h
>
11
#include <
RobotAPI/libraries/ArmarXObjects/forward_declarations.h
>
12
13
14
namespace
armarx::armem::server::obj::instance::visu
15
{
16
17
/// Visualization control for linear predictions for objects.
18
struct
LinearPredictions
:
public
armarx::Logging
19
{
20
bool
showGhost
=
false
;
21
float
ghostAlpha
= 0.7;
22
23
bool
showFrame
=
false
;
24
bool
showArrow
=
false
;
25
26
float
timeOffsetSeconds
= 1;
27
float
timeWindowSeconds
= 2;
28
29
void
defineProperties
(
armarx::PropertyDefinitionsPtr
defs,
const
std::string& prefix);
30
31
bool
showAny
()
const
;
32
void
draw
(
viz::Layer
& layer,
33
std::function<
viz::Object
(
const
std::string& key)> makeObjectFn,
34
const
objpose::ObjectPose
& objectPose,
35
const
std::map<DateTime, objpose::ObjectPose>& poseHistory,
36
bool
inGlobalFrame)
const
;
37
38
39
struct
RemoteGui
40
{
41
armarx::RemoteGui::Client::CheckBox
showGhost
;
42
armarx::RemoteGui::Client::FloatSpinBox
ghostAlpha
;
43
44
armarx::RemoteGui::Client::CheckBox
showFrame
;
45
armarx::RemoteGui::Client::CheckBox
showArrow
;
46
47
armarx::RemoteGui::Client::FloatSpinBox
timeOffsetSeconds
;
48
armarx::RemoteGui::Client::FloatSpinBox
timeWindowSeconds
;
49
50
armarx::RemoteGui::Client::GroupBox
group
;
51
52
void
setup
(
const
LinearPredictions
&
data
);
53
void
update
(
LinearPredictions
&
data
);
54
};
55
56
};
57
58
59
}
armarx::armem::server::obj::instance::visu::LinearPredictions::showAny
bool showAny() const
Definition:
LinearPredictionsVisu.cpp:36
armarx::armem::server::obj::instance::visu::LinearPredictions::RemoteGui::timeWindowSeconds
armarx::RemoteGui::Client::FloatSpinBox timeWindowSeconds
Definition:
LinearPredictionsVisu.h:48
armarx::armem::server::obj::instance::visu::LinearPredictions::RemoteGui::showFrame
armarx::RemoteGui::Client::CheckBox showFrame
Definition:
LinearPredictionsVisu.h:44
armarx::armem::server::obj::instance::visu::LinearPredictions::RemoteGui::group
armarx::RemoteGui::Client::GroupBox group
Definition:
LinearPredictionsVisu.h:50
armarx::armem::server::obj::instance::visu::LinearPredictions::RemoteGui
Definition:
LinearPredictionsVisu.h:39
DateTime.h
armarx::armem::server::obj::instance::visu::LinearPredictions::showArrow
bool showArrow
Definition:
LinearPredictionsVisu.h:24
armarx::armem::server::obj::instance::visu::LinearPredictions::RemoteGui::showGhost
armarx::RemoteGui::Client::CheckBox showGhost
Definition:
LinearPredictionsVisu.h:41
armarx::armem::server::obj::instance::visu::LinearPredictions::draw
void draw(viz::Layer &layer, std::function< viz::Object(const std::string &key)> makeObjectFn, const objpose::ObjectPose &objectPose, const std::map< DateTime, objpose::ObjectPose > &poseHistory, bool inGlobalFrame) const
Definition:
LinearPredictionsVisu.cpp:41
Layer.h
armarx::viz::Object
Definition:
Elements.h:321
armarx::armem::server::obj::instance::visu::LinearPredictions::showGhost
bool showGhost
Definition:
LinearPredictionsVisu.h:20
armarx::armem::server::obj::instance::visu::LinearPredictions::defineProperties
void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix)
Definition:
LinearPredictionsVisu.cpp:18
data
uint8_t data[1]
Definition:
EtherCATFrame.h:68
armarx::armem::server::obj::instance::visu::LinearPredictions::RemoteGui::update
void update(LinearPredictions &data)
Definition:
LinearPredictionsVisu.cpp:136
armarx::RemoteGui::Client::GroupBox
Definition:
Widgets.h:193
armarx::armem::server::obj::instance::visu::LinearPredictions::showFrame
bool showFrame
Definition:
LinearPredictionsVisu.h:23
armarx::armem::server::obj::instance::visu::LinearPredictions::timeWindowSeconds
float timeWindowSeconds
Definition:
LinearPredictionsVisu.h:27
armarx::armem::server::obj::instance::visu::LinearPredictions::RemoteGui::setup
void setup(const LinearPredictions &data)
Definition:
LinearPredictionsVisu.cpp:90
forward_declarations.h
armarx::armem::server::obj::instance::visu::LinearPredictions::RemoteGui::showArrow
armarx::RemoteGui::Client::CheckBox showArrow
Definition:
LinearPredictionsVisu.h:45
armarx::Logging
Base Class for all Logging classes.
Definition:
Logging.h:232
armarx::armem::server::obj::instance::visu::LinearPredictions
Visualization control for linear predictions for objects.
Definition:
LinearPredictionsVisu.h:18
armarx::armem::server::obj::instance::visu
Definition:
LinearPredictionsVisu.cpp:15
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::armem::server::obj::instance::visu::LinearPredictions::RemoteGui::ghostAlpha
armarx::RemoteGui::Client::FloatSpinBox ghostAlpha
Definition:
LinearPredictionsVisu.h:42
armarx::armem::server::obj::instance::visu::LinearPredictions::timeOffsetSeconds
float timeOffsetSeconds
Definition:
LinearPredictionsVisu.h:26
forward_declarations.h
armarx::armem::server::obj::instance::visu::LinearPredictions::ghostAlpha
float ghostAlpha
Definition:
LinearPredictionsVisu.h:21
armarx::RemoteGui::Client::CheckBox
Definition:
Widgets.h:129
Widgets.h
Logging.h
armarx::viz::Layer
Definition:
Layer.h:12
armarx::RemoteGui::Client::FloatSpinBox
Definition:
Widgets.h:93
armarx::objpose::ObjectPose
An object pose as stored by the ObjectPoseStorage.
Definition:
ObjectPose.h:36
armarx::armem::server::obj::instance::visu::LinearPredictions::RemoteGui::timeOffsetSeconds
armarx::RemoteGui::Client::FloatSpinBox timeOffsetSeconds
Definition:
LinearPredictionsVisu.h:47
RobotAPI
libraries
armem_objects
server
instance
visu
LinearPredictionsVisu.h
Generated on Sat Oct 12 2024 09:14:09 for armarx_documentation by
1.8.17