Robot.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
ArmarXCore/core/PackagePath.h
>
4
#include "
ElementOps.h
"
5
6
7
namespace
armarx::viz
8
{
9
10
class
Robot
:
public
ElementOps
<Robot, data::ElementRobot>
11
{
12
public
:
13
using
ElementOps::ElementOps
;
14
15
Robot
&
file
(std::string
const
&
project
, std::string
const
&
filename
)
16
{
17
data_
->project =
project
;
18
data_
->filename =
filename
;
19
20
return
*
this
;
21
}
22
23
Robot
&
file
(
const
armarx::PackagePath
& packagePath)
24
{
25
data_
->project = packagePath.
serialize
().package;
26
data_
->filename = packagePath.
serialize
().package +
"/"
+ packagePath.
serialize
().path;
27
28
return
*
this
;
29
}
30
31
Robot
&
useCollisionModel
()
32
{
33
data_
->drawStyle |= data::ModelDrawStyle::COLLISION;
34
35
return
*
this
;
36
}
37
38
Robot
&
useFullModel
()
39
{
40
data_
->drawStyle &= ~
data
::ModelDrawStyle::COLLISION;
41
42
return
*
this
;
43
}
44
45
Robot
&
overrideColor
(
Color
c
)
46
{
47
data_
->drawStyle |= data::ModelDrawStyle::OVERRIDE_COLOR;
48
49
return
color
(
c
);
50
}
51
52
Robot
&
useOriginalColor
()
53
{
54
data_
->drawStyle &= ~
data
::ModelDrawStyle::OVERRIDE_COLOR;
55
56
return
*
this
;
57
}
58
59
Robot
&
joint
(std::string
const
& name,
float
value
)
60
{
61
data_
->jointValues[name] =
value
;
62
63
return
*
this
;
64
}
65
66
Robot
&
joints
(std::map<std::string, float>
const
&
values
)
67
{
68
data_
->jointValues =
values
;
69
70
return
*
this
;
71
}
72
73
};
74
75
}
ElementOps.h
armarx::viz::Robot::file
Robot & file(std::string const &project, std::string const &filename)
Definition:
Robot.h:15
armarx::viz::Robot::joint
Robot & joint(std::string const &name, float value)
Definition:
Robot.h:59
ProsthesisInterface.values
values
Definition:
ProsthesisInterface.py:190
c
constexpr T c
Definition:
UnscentedKalmanFilterTest.cpp:43
armarx::viz::ElementOps< Robot, data::ElementRobot >::data_
IceInternal::Handle< data::ElementRobot > data_
Definition:
ElementOps.h:281
project
std::string project
Definition:
VisualizationRobot.cpp:82
armarx::viz::Robot::useFullModel
Robot & useFullModel()
Definition:
Robot.h:38
armarx::viz::Robot::file
Robot & file(const armarx::PackagePath &packagePath)
Definition:
Robot.h:23
armarx::viz::ElementOps::ElementOps
ElementOps(std::string const &id)
Definition:
ElementOps.h:111
armarx::PackagePath::serialize
data::PackagePath serialize() const
Definition:
PackagePath.cpp:76
armarx::viz::ElementOps
Definition:
ElementOps.h:108
armarx::viz::Robot::joints
Robot & joints(std::map< std::string, float > const &values)
Definition:
Robot.h:66
cxxopts::value
std::shared_ptr< Value > value()
Definition:
cxxopts.hpp:926
data
uint8_t data[1]
Definition:
EtherCATFrame.h:68
armarx::viz::Color
Definition:
Color.h:13
armarx::viz::Robot::useCollisionModel
Robot & useCollisionModel()
Definition:
Robot.h:31
armarx::viz::Robot::overrideColor
Robot & overrideColor(Color c)
Definition:
Robot.h:45
armarx::viz::Robot::useOriginalColor
Robot & useOriginalColor()
Definition:
Robot.h:52
filename
std::string filename
Definition:
VisualizationRobot.cpp:83
armarx::viz::Robot
Definition:
Robot.h:10
armarx::viz::ElementOps< Robot, data::ElementRobot >::color
Robot & color(Color color)
Definition:
ElementOps.h:195
armarx::PackagePath
Definition:
PackagePath.h:55
armarx::viz
This file is part of ArmarX.
Definition:
ArVizStorage.cpp:416
PackagePath.h
RobotAPI
components
ArViz
Client
elements
Robot.h
Generated on Sat Oct 12 2024 09:14:06 for armarx_documentation by
1.8.17