25 bo.humanTrackingId = dto.humanTrackingId;
26 bo.cameraFrameName = dto.cameraFrameName;
35 toAron(dto.poseModelId,
bo.poseModelId);
36 dto.humanTrackingId =
bo.humanTrackingId;
37 dto.cameraFrameName =
bo.cameraFrameName;
42 fromAron(
const std::map<std::string, armarx::human::arondto::PoseKeypoint>& dto,
43 std::map<std::string, armarx::armem::human::PoseKeypoint>&
bo)
46 for (
const auto& [keypoint_name, keypoint] : dto)
49 keypoint_bo.
label = keypoint_name;
51 bo[keypoint_name] = keypoint_bo;
56 toAron(std::map<std::string, armarx::human::arondto::PoseKeypoint>& dto,
57 const std::map<std::string, armarx::armem::human::PoseKeypoint>&
bo)
60 for (
const auto& [keypoint_name, keypoint] :
bo)
62 armarx::human::arondto::PoseKeypoint keypoint_dto;
63 toAron(keypoint_dto, keypoint);
64 dto[keypoint_name] = keypoint_dto;
77 bo.confidence = dto.confidence;
89 dto.confidence =
bo.confidence;
100 bo.humanTrackingId = dto.humanTrackingId;
101 bo.cameraFrameName = dto.cameraFrameName;
110 toAron(dto.poseModelId,
bo.poseModelId);
111 dto.humanTrackingId =
bo.humanTrackingId;
112 dto.cameraFrameName =
bo.cameraFrameName;
113 toAron(dto.keypoints,
bo.keypoints);
117 fromAron(
const std::map<std::string, armarx::human::arondto::PoseKeypoint2D>& dto,
118 std::map<std::string, armarx::armem::human::PoseKeypoint2D>&
bo)
121 for (
const auto& [keypoint_name, keypoint] : dto)
124 keypoint_bo.
label = keypoint_name;
126 bo[keypoint_name] = keypoint_bo;
131 toAron(std::map<std::string, armarx::human::arondto::PoseKeypoint2D>& dto,
132 const std::map<std::string, armarx::armem::human::PoseKeypoint2D>&
bo)
135 for (
const auto& [keypoint_name, keypoint] :
bo)
137 armarx::human::arondto::PoseKeypoint2D keypoint_dto;
138 toAron(keypoint_dto, keypoint);
139 dto[keypoint_name] = keypoint_dto;
146 bo.position = Eigen::Vector2f(dto.x, dto.y);
147 bo.confidence = dto.confidence;
153 dto.x =
bo.position.x();
154 dto.y =
bo.position.y();
155 dto.confidence =
bo.confidence;
167 if (dto.profileID.has_value())
183 if (
bo.profileID.has_value())
188 dto.profileID = dtoID;