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;
90 dto.pose = Eigen::Matrix4f::Identity();
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();