aron_conversions.h
Go to the documentation of this file.
1
/**
2
* This file is part of ArmarX.
3
*
4
* ArmarX is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation.
7
*
8
* ArmarX is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*
16
* @author Fabian Reister ( fabian dot reister at kit dot edu )
17
* @date 2022
18
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19
* GNU General Public License
20
*/
21
22
#pragma once
23
24
#include <
RobotAPI/libraries/aron/core/codegeneration/cpp/AronGeneratedClass.h
>
25
26
27
namespace
armarx
28
{
29
template
<
typename
AronType,
typename
T>
30
T
31
fromAron
(
const ::armarx::aron::data::dto::DictPtr
& dto)
32
{
33
static_assert(
34
std::is_base_of<armarx::aron::codegenerator::cpp::AronGeneratedClass, AronType>::value
,
35
"AronType must be an ARON generated type"
);
36
37
const
auto
dtoConfig = AronType::FromAron(dto);
38
39
T
config;
40
fromAron
(dtoConfig, config);
41
42
return
config;
43
}
44
}
// namespace armarx
45
46
47
namespace
armarx::navigation::platform_controller
48
{
49
namespace
platform_global_trajectory
50
{
51
namespace
arondto
52
{
53
class
Config
;
54
}
55
56
struct
Config
;
57
58
void
fromAron
(
const
arondto::Config& dto,
Config
&
bo
);
59
60
}
// namespace platform_global_trajectory
61
62
namespace
platform_local_trajectory
63
{
64
namespace
arondto
65
{
66
class
Config
;
67
}
68
69
struct
Config
;
70
71
void
fromAron
(
const
arondto::Config& dto,
Config
&
bo
);
72
73
}
// namespace platform_local_trajectory
74
75
}
// namespace armarx::navigation::platform_controller
armarx::navigation::platform_controller::platform_local_trajectory::fromAron
void fromAron(const arondto::Targets &dto, Targets &bo)
Definition:
aron_conversions.cpp:60
armarx::navigation::platform_controller::platform_local_trajectory::Config
Definition:
PlatformLocalTrajectoryController.h:49
armarx::navigation::platform_controller::platform_global_trajectory::Config
Definition:
PlatformGlobalTrajectoryController.h:50
cxxopts::value
std::shared_ptr< Value > value()
Definition:
cxxopts.hpp:926
armarx::navigation::platform_controller
This file is part of ArmarX.
Definition:
aron_conversions.cpp:35
armarx::navigation::platform_controller::platform_global_trajectory::fromAron
void fromAron(const arondto::Targets &dto, Targets &bo)
Definition:
aron_conversions.cpp:42
armarx::aron::data::DictPtr
std::shared_ptr< Dict > DictPtr
Definition:
Dict.h:41
armarx::fromAron
void fromAron(const arondto::PackagePath &dto, PackageFileLocation &bo)
T
float T
Definition:
UnscentedKalmanFilterTest.cpp:35
AronGeneratedClass.h
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition:
ArmarXTimeserver.cpp:28
armarx::aron::bo
const std::optional< BoT > & bo
Definition:
aron_conversions.h:168
armarx
navigation
platform_controller
aron_conversions.h
Generated on Sat Sep 7 2024 09:13:52 for armarx_documentation by
1.8.17