Skip to content
Snippets Groups Projects
Commit c843c3d0 authored by Corvin-N's avatar Corvin-N
Browse files

Fix errors

parent 112051be
No related branches found
No related tags found
2 merge requests!68Add human tracking,!28Draft: Dev -> Main
......@@ -116,7 +116,7 @@ namespace armarx::navigation::human
//create pose with orientation from old human
core::Pose2D pose = core::Pose2D::Identity();
pose.translation() = conv::to2D(centerPos);
pose.translation() = centerPos;
pose.linear() = posDistance.oldHuman->humanFilter.get().pose.linear();
......@@ -141,7 +141,7 @@ namespace armarx::navigation::human
auto& footprint = human.associatedCluster;
//create pose with orientation from old human
core::Pose2D pose = core::Pose2D::Identity();
pose.translation() = conv::to2D(footprint->center);
pose.translation() = footprint->center;
pose.linear() = human.humanFilter.get().pose.linear();
human.humanFilter.update(pose, measurements.detectionTime);
......@@ -291,7 +291,7 @@ namespace armarx::navigation::human
// sort the distances ascending by their numeric value
std::sort(posDistances.begin(),
posDistances.end(),
[](const PosHumanDistance& a, const PosHumanDistance& b) -> bool
[](const PosLaserDistance& a, const PosLaserDistance& b) -> bool
{ return a.distance < b.distance; });
return posDistances;
......
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