aron_conversions.cpp
Go to the documentation of this file.
1
#include "
aron_conversions.h
"
2
3
#include <
RobotAPI/libraries/aron/common/aron_conversions.h
>
4
5
namespace
armarx::control::pointing
6
{
7
void
8
skills::fromAron
(
const
arondto::Side
& dto,
core::Side
&
bo
)
9
{
10
switch
(dto.value)
11
{
12
case
arondto::Side::Left
:
13
bo
=
core::Side::LEFT
;
14
break
;
15
case
arondto::Side::Right:
16
bo
=
core::Side::RIGHT
;
17
break
;
18
default
:
19
ARMARX_ERROR
<<
"Invalid side"
;
20
}
21
}
22
23
using namespace
armarx::aron
;
24
25
void
26
skills::fromAron
(
const
arondto::PointAtParams& dto,
core::Pointing::Parameters
&
bo
)
27
{
28
fromAron
(dto.side,
bo
.side);
29
armarx::aron::fromAron
(dto.target,
bo
.target);
30
armarx::aron::fromAron
(dto.handShape,
bo
.handShape);
31
armarx::aron::fromAron
(dto.maxVelocity,
bo
.maxVelocity);
32
armarx::aron::fromAron
(dto.maxAcceleration,
bo
.maxAcceleration);
33
}
34
35
core::Pointing::Parameters
36
skills::fromAron
(
const
arondto::PointAtParams& dto)
37
{
38
core::Pointing::Parameters
bo
;
39
fromAron
(dto,
bo
);
40
return
bo
;
41
}
42
43
}
// namespace armarx::control::pointing
armarx::control::pointing::core::RIGHT
@ RIGHT
Definition:
Side.h:13
armarx::control::pointing::core::Pointing::Parameters
Definition:
Pointing.h:50
armarx::control::pointing
Definition:
constants.cpp:3
armarx::control::pointing::core::Side
Side
Describes the side of an arm.
Definition:
Side.h:10
armarx::aron
Definition:
DataDisplayVisitor.cpp:5
ARMARX_ERROR
#define ARMARX_ERROR
Definition:
Logging.h:189
aron_conversions.h
armarx::fromAron
void fromAron(const arondto::PackagePath &dto, PackageFileLocation &bo)
armarx::aron::fromAron
void fromAron(const T &dto, T &bo)
Definition:
aron_conversions.h:79
Left
bool Left(const point2d &a, const point2d &b, const point2d &c)
Definition:
gdiam.cpp:1617
armarx::control::pointing::core::LEFT
@ LEFT
Definition:
Side.h:12
armarx::control::pointing::skills::fromAron
void fromAron(const arondto::Side &dto, core::Side &bo)
Definition:
aron_conversions.cpp:8
armarx::aron::bo
const std::optional< BoT > & bo
Definition:
aron_conversions.h:168
armarx
control
pointing
skills
aron_conversions.cpp
Generated on Sat Oct 12 2024 09:14:08 for armarx_documentation by
1.8.17