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/interface/aron/Aron.h>
26
27namespace IceInternal
28{
29 template <typename T>
30 class Handle;
31}
32
38
39namespace armarx
40{
41 template <typename AronType, typename T>
42 T
43 fromAron(const ::armarx::aron::data::dto::DictPtr& dto)
44 {
45 static_assert(
46 std::is_base_of<armarx::aron::codegenerator::cpp::AronGeneratedClass, AronType>::value,
47 "AronType must be an ARON generated type");
48
49 const auto dtoConfig = AronType::FromAron(dto);
50
51 T config;
52 fromAron(dtoConfig, config);
53
54 return config;
55 }
56} // namespace armarx
57
59{
60 namespace platform_global_trajectory
61 {
62 namespace arondto
63 {
64 class Config;
65 }
66
67 struct Config;
68
69 void fromAron(const arondto::Config& dto, Config& bo);
70
71 } // namespace platform_global_trajectory
72
74 {
75 namespace arondto
76 {
77 class Config;
78 }
79
80 struct Config;
81
82 void fromAron(const arondto::Config& dto, Config& bo);
83
84 } // namespace platform_local_trajectory
85
86} // namespace armarx::navigation::platform_controller
This file is part of ArmarX.
::IceInternal::Handle< Dict > DictPtr
void fromAron(const arondto::Targets &dto, Targets &bo)
This file offers overloads of toIce() and fromIce() functions for STL container types.
void fromAron(const arondto::PackagePath &dto, PackageFileLocation &bo)