aron_conversions.cpp
Go to the documentation of this file.
1
#include "
aron_conversions.h
"
2
3
#include <
RobotAPI/libraries/ArmarXObjects/aron_conversions.h
>
4
#include <
RobotAPI/libraries/aron/common/aron_conversions.h
>
5
6
namespace
armarx::armem::robot_state::description
7
{
8
9
void
10
fromAron
(
const
arondto::ObjectClass& dto,
RobotDescription
&
bo
)
11
{
12
bo
.name = aron::fromAron<armarx::ObjectID>(dto.id).str();
13
fromAron
(dto.articulatedSimoxXmlPath,
bo
.xml);
14
}
15
16
void
17
toAron
(arondto::ObjectClass& dto,
const
RobotDescription
&
bo
)
18
{
19
toAron
(dto.id,
ObjectID
(
bo
.name));
20
toAron
(dto.articulatedSimoxXmlPath,
bo
.xml);
21
}
22
}
// namespace armarx::armem::robot_state::description
23
24
namespace
armarx::armem::robot_state
25
{
26
void
27
fromAron
(
const
arondto::ObjectInstance& dto,
RobotState
&
bo
)
28
{
29
fromAron
(dto.pose,
bo
);
30
}
31
32
void
33
toAron
(arondto::ObjectInstance& dto,
const
RobotState
&
bo
)
34
{
35
toAron
(dto.pose,
bo
);
36
}
37
38
void
39
fromAron
(
const
objpose::arondto::ObjectPose& dto,
RobotState
&
bo
)
40
{
41
aron::fromAron
(dto.timestamp,
bo
.timestamp);
42
aron::fromAron
(dto.objectPoseGlobal,
bo
.globalPose);
43
aron::fromAron
(dto.objectJointValues,
bo
.jointMap);
44
}
45
46
void
47
toAron
(objpose::arondto::ObjectPose& dto,
const
RobotState
&
bo
)
48
{
49
aron::toAron
(dto.timestamp,
bo
.timestamp);
50
aron::toAron
(dto.objectPoseGlobal,
bo
.globalPose.matrix());
51
aron::toAron
(dto.objectJointValues,
bo
.jointMap);
52
}
53
54
55
}
// namespace armarx::armem::robot_state
armarx::ObjectID
A known object ID of the form "Dataset/ClassName" or "Dataset/ClassName/InstanceName".
Definition:
ObjectID.h:11
armarx::armem::robot_state::fromAron
void fromAron(const arondto::ObjectInstance &dto, RobotState &bo)
Definition:
aron_conversions.cpp:27
armarx::armem::robot_state::description::RobotDescription
Definition:
types.h:44
armarx::armem::robot_state::description::fromAron
void fromAron(const arondto::ObjectClass &dto, RobotDescription &bo)
Definition:
aron_conversions.cpp:10
armarx::armem::robot_state::RobotState
Definition:
types.h:113
armarx::armem::robot_state
Definition:
RobotStatePredictionClient.cpp:42
armarx::armem::robot_state::description
Definition:
aron_conversions.cpp:6
armarx::armem::robot_state::description::toAron
void toAron(arondto::ObjectClass &dto, const RobotDescription &bo)
Definition:
aron_conversions.cpp:17
aron_conversions.h
armarx::aron::toAron
void toAron(T &dto, const T &bo)
Framework for converting ARON DTOs (Data Transfer Objects) to C++ BOs (Business Objects) and back.
Definition:
aron_conversions.h:74
armarx::aron::fromAron
void fromAron(const T &dto, T &bo)
Definition:
aron_conversions.h:79
armarx::armem::robot_state::toAron
void toAron(arondto::ObjectInstance &dto, const RobotState &bo)
Definition:
aron_conversions.cpp:33
aron_conversions.h
armarx::aron::bo
const std::optional< BoT > & bo
Definition:
aron_conversions.h:168
RobotAPI
libraries
armem_objects
client
articulated_object
aron_conversions.cpp
Generated on Sat Oct 12 2024 09:14:08 for armarx_documentation by
1.8.17