aron_conversions.cpp
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 #include "aron_conversions.h"
23 
26 
28 
30 {
31  void
32  fromAron(const arondto::ProximityFieldParams& dto, ProximityFieldParams& bo)
33  {
34  aron::fromAron(dto.reduceVelocity, bo.reduceVelocity);
35 
36  aron::fromAron(dto.minimumDistance, bo.minDistance);
37  aron::fromAron(dto.maximumDistance, bo.maxDistance);
38  aron::fromAron(dto.k, bo.k);
39  aron::fromAron(dto.lambda, bo.lambda);
40  }
41 
42  void
43  toAron(arondto::ProximityFieldParams& dto, const ProximityFieldParams& bo)
44  {
45  aron::toAron(dto.reduceVelocity, bo.reduceVelocity);
46 
47  aron::toAron(dto.minimumDistance, bo.minDistance);
48  aron::toAron(dto.maximumDistance, bo.maxDistance);
49  aron::toAron(dto.k, bo.k);
50  aron::toAron(dto.lambda, bo.lambda);
51  }
52 
53  void
54  fromAron(const arondto::LaserBasedProximityParams& dto, LaserBasedProximityParams& bo)
55  {
56  aron::fromAron(dto.enableHumans, bo.enableHumans);
57  aron::fromAron(dto.enableLaserScanner, bo.enableLaserScanners);
58 
59  core::fromAron(dto.maxVelocity, bo.maxVelocity);
60 
61  fromAron(dto.humanProximityField, bo.humanProximityField);
62  fromAron(dto.laserScannerProximityField, bo.laserScannerProximityField);
63  }
64 
65  void
66  toAron(arondto::LaserBasedProximityParams& dto, const LaserBasedProximityParams& bo)
67  {
68  aron::toAron(dto.enableHumans, bo.enableHumans);
69  aron::toAron(dto.enableLaserScanner, bo.enableLaserScanners);
70 
71  core::toAron(dto.maxVelocity, bo.maxVelocity);
72 
73  toAron(dto.humanProximityField, bo.humanProximityField);
74  toAron(dto.laserScannerProximityField, bo.laserScannerProximityField);
75  }
76 
77 
78 } // namespace armarx::navigation::safety_guard
armarx::navigation::safety_guard::LaserBasedProximityParams
Definition: LaserBasedProximity.h:57
armarx::navigation::core::fromAron
void fromAron(const arondto::GlobalTrajectoryPoint &dto, GlobalTrajectoryPoint &bo)
Definition: aron_conversions.cpp:31
armarx::navigation::safety_guard::fromAron
void fromAron(const arondto::ProximityFieldParams &dto, ProximityFieldParams &bo)
Definition: aron_conversions.cpp:32
armarx::navigation::safety_guard
This file is part of ArmarX.
Definition: fwd.h:54
armarx::navigation::core::toAron
void toAron(arondto::GlobalTrajectoryPoint &dto, const GlobalTrajectoryPoint &bo)
Definition: aron_conversions.cpp:24
aron_conversions.h
armarx::navigation::safety_guard::ProximityFieldParams
Definition: LaserBasedProximity.h:44
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:77
aron_conversions.h
eigen.h
armarx::aron::fromAron
void fromAron(const T &dto, T &bo)
Definition: aron_conversions.h:84
armarx::aron::bo
const std::optional< BoT > & bo
Definition: aron_conversions.h:174
armarx::navigation::safety_guard::toAron
void toAron(arondto::ProximityFieldParams &dto, const ProximityFieldParams &bo)
Definition: aron_conversions.cpp:43