aron_conversions.cpp
Go to the documentation of this file.
1 #include "aron_conversions.h"
2 
4 
6 {
7  void
9  {
10  switch (dto.value)
11  {
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
armarx::control::pointing::core::RIGHT
@ RIGHT
Definition: Side.h:13
armarx::control::pointing::core::Pointing::Parameters
Definition: Pointing.h:50
armarx::control::pointing
Definition: constants.cpp:3
armarx::control::pointing::core::Side
Side
Describes the side of an arm.
Definition: Side.h:10
armarx::aron
Definition: DataDisplayVisitor.cpp:5
ARMARX_ERROR
#define ARMARX_ERROR
Definition: Logging.h:189
aron_conversions.h
armarx::fromAron
void fromAron(const arondto::PackagePath &dto, PackageFileLocation &bo)
armarx::aron::fromAron
void fromAron(const T &dto, T &bo)
Definition: aron_conversions.h:79
Left
bool Left(const point2d &a, const point2d &b, const point2d &c)
Definition: gdiam.cpp:1617
armarx::control::pointing::core::LEFT
@ LEFT
Definition: Side.h:12
armarx::control::pointing::skills::fromAron
void fromAron(const arondto::Side &dto, core::Side &bo)
Definition: aron_conversions.cpp:8
armarx::aron::bo
const std::optional< BoT > & bo
Definition: aron_conversions.h:168