3 #include <RobotAPI/libraries/aron/common/aron/framed.aron.generated.h>
10 bo.frame = dto.header.frame;
11 bo.agent = dto.header.agent;
12 bo.x = dto.position.x();
13 bo.y = dto.position.y();
14 bo.z = dto.position.z();
20 dto.header.frame =
bo.frame;
21 dto.header.agent =
bo.agent;
22 dto.position.x() =
bo.x;
23 dto.position.y() =
bo.y;
24 dto.position.z() =
bo.z;
30 bo.frame = dto.header.frame;
31 bo.agent = dto.header.agent;
32 bo.x = dto.direction.x();
33 bo.y = dto.direction.y();
34 bo.z = dto.direction.z();
40 dto.header.frame =
bo.frame;
41 dto.header.agent =
bo.agent;
42 dto.direction.x() =
bo.x;
43 dto.direction.y() =
bo.y;
44 dto.direction.z() =
bo.z;
50 bo.frame = dto.header.frame;
51 bo.agent = dto.header.agent;
52 bo.qw = dto.orientation.w();
53 bo.qx = dto.orientation.x();
54 bo.qy = dto.orientation.y();
55 bo.qz = dto.orientation.z();
61 dto.header.frame =
bo.frame;
62 dto.header.agent =
bo.agent;
63 dto.orientation.w() =
bo.qw;
64 dto.orientation.x() =
bo.qx;
65 dto.orientation.y() =
bo.qy;
66 dto.orientation.z() =
bo.qz;
72 bo.frame = dto.header.frame;
73 bo.agent = dto.header.agent;
74 auto vec = Eigen::Vector3f(dto.pose.block<3, 1>(0, 3));
75 bo.position->x = vec.x();
76 bo.position->y = vec.y();
77 bo.position->z = vec.z();
79 bo.orientation->qw = quat.w();
80 bo.orientation->qx = quat.x();
81 bo.orientation->qy = quat.y();
82 bo.orientation->qz = quat.z();
88 dto.header.frame =
bo.frame;
89 dto.header.agent =
bo.agent;
92 vec.x() =
bo.position->x;
93 vec.y() =
bo.position->y;
94 vec.z() =
bo.position->z;
96 quat.w() =
bo.orientation->qw;
97 quat.x() =
bo.orientation->qx;
98 quat.y() =
bo.orientation->qy;
99 quat.z() =
bo.orientation->qz;
100 dto.pose.block<3, 1>(0, 3) = vec;
101 dto.pose.block<3, 3>(0, 0) = quat.toRotationMatrix();