aron_conversions.cpp
Go to the documentation of this file.
1#include "aron_conversions.h"
2
4
6{
7 void
8 skills::fromAron(const arondto::Side& dto, core::Side& bo)
9 {
10 switch (dto.value)
11 {
12 case arondto::Side::Left:
14 break;
15 case arondto::Side::Right:
17 break;
18 default:
19 ARMARX_ERROR << "Invalid side";
20 }
21 }
22
23 using namespace armarx::aron;
24
25 void
26 skills::fromAron(const arondto::PointAtParams& dto, core::Pointing::Parameters& bo)
27 {
28 fromAron(dto.side, bo.side);
29 armarx::aron::fromAron(dto.target, bo.target);
30 armarx::aron::fromAron(dto.handShape, bo.handShape);
31 armarx::aron::fromAron(dto.maxVelocity, bo.maxVelocity);
32 armarx::aron::fromAron(dto.maxAcceleration, bo.maxAcceleration);
33 }
34
36 skills::fromAron(const arondto::PointAtParams& dto)
37 {
39 fromAron(dto, bo);
40 return bo;
41 }
42
43} // namespace armarx::control::pointing
Side
Describes the side of an arm.
Definition Side.h:11
#define ARMARX_ERROR
The logging level for unexpected behaviour, that must be fixed.
Definition Logging.h:196
void fromAron(const T &dto, T &bo)
void fromAron(const arondto::Side &dto, core::Side &bo)
Side side
Side of the arm to point with.
Definition Pointing.h:53
armarx::FramedPosition target
Position to point at.
Definition Pointing.h:56
std::optional< std::string > handShape
Name of the hand preshape to use.
Definition Pointing.h:59