aron_conversions.cpp
Go to the documentation of this file.
1
#include "
aron_conversions.h
"
2
3
#include <algorithm>
4
#include <cstdint>
5
#include <iterator>
6
7
#include <
RobotAPI/libraries/armem/core/aron_conversions.h
>
8
#include <
RobotAPI/libraries/aron/common/aron_conversions.h
>
9
#include <
RobotAPI/libraries/aron/core/data/variant/complex/NDArray.h
>
10
11
#include "
types.h
"
12
13
namespace
armarx::armem::vision
14
{
15
16
17
/************ toAron ************/
18
19
void
20
toAron
(arondto::OccupancyGrid& dto,
const
OccupancyGrid
&
bo
)
21
{
22
aron::toAron
(dto.frame,
bo
.frame);
23
aron::toAron
(dto.pose,
bo
.pose);
24
aron::toAron
(dto.resolution,
bo
.resolution);
25
// bo.grid is NdArray -> need special handling.
26
}
27
28
void
29
fromAron
(
const
arondto::OccupancyGrid& dto,
OccupancyGrid
&
bo
)
30
{
31
aron::fromAron
(dto.frame,
bo
.frame);
32
aron::fromAron
(dto.pose,
bo
.pose);
33
aron::fromAron
(dto.resolution,
bo
.resolution);
34
// bo.grid is NdArray -> need special handling.
35
}
36
37
}
// namespace armarx::armem::vision
armarx::armem::vision::toAron
void toAron(arondto::OccupancyGrid &dto, const OccupancyGrid &bo)
Definition:
aron_conversions.cpp:20
armarx::armem::vision::OccupancyGrid
Definition:
types.h:36
armarx::armem::vision
Definition:
aron_conversions.cpp:13
aron_conversions.h
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
types.h
armarx::aron::fromAron
void fromAron(const T &dto, T &bo)
Definition:
aron_conversions.h:79
armarx::aron::bo
const std::optional< BoT > & bo
Definition:
aron_conversions.h:168
armarx::armem::vision::fromAron
void fromAron(const arondto::OccupancyGrid &dto, OccupancyGrid &bo)
Definition:
aron_conversions.cpp:29
NDArray.h
RobotAPI
libraries
armem_vision
aron_conversions.cpp
Generated on Sat Oct 12 2024 09:14:08 for armarx_documentation by
1.8.17