Skip to content
Snippets Groups Projects
Commit e06e5238 authored by Tobias Gröger's avatar Tobias Gröger
Browse files

Fix Head kexpoint name

parent a41c0b8c
No related branches found
No related tags found
2 merge requests!68Add human tracking,!28Draft: Dev -> Main
......@@ -182,10 +182,10 @@ namespace armarx::navigation::human
// calculate the yaw of the specified keypoint representing the orientation if it exists
double yaw = 0;
if (humanPose.keypoints.count(parameters.rotationKeypoint) > 0)
auto head = humanPose.keypoints.find(parameters.rotationKeypoint);
if (head != humanPose.keypoints.end())
{
const armem::human::PoseKeypoint& refKeypoint =
humanPose.keypoints.at(parameters.rotationKeypoint);
const armem::human::PoseKeypoint& refKeypoint = head->second;
ARMARX_CHECK(refKeypoint.orientationGlobal.has_value());
Eigen::Quaternionf qhead = refKeypoint.orientationGlobal->toEigenQuaternion();
Eigen::Vector3f vec(1, 0, 0);
......
......@@ -102,7 +102,7 @@ namespace armarx::navigation::human
struct Parameters
{
// the keypoint which should be used for calculating the rotation of the humans
const std::string rotationKeypoint = "HEAD";
const std::string rotationKeypoint = "Head";
// the duration after which tracked humans will be erased if no new measurement for
// this human is found
Duration maxTrackingAge = Duration::MilliSeconds(500);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment