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
10
11#include "types.h"
12
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
void fromAron(const arondto::OccupancyGrid &dto, OccupancyGrid &bo)
void toAron(arondto::OccupancyGrid &dto, const OccupancyGrid &bo)
void fromAron(const T &dto, T &bo)
void toAron(T &dto, const T &bo)
Framework for converting ARON DTOs (Data Transfer Objects) to C++ BOs (Business Objects) and back.