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

Add estimateAt to Human

parent 4f4bc5da
No related branches found
No related tags found
2 merge requests!38human tracker skeleton,!28Draft: Dev -> Main
#include "types.h"
namespace armarx::navigation::human
{
core::Pose2D
Human::estimateAt(DateTime& time) const
{
double dt = (time - detectionTime).toSecondsDouble();
core::Pose2D estimation{pose};
estimation.translation() += linearVelocity * dt;
return estimation;
}
} // namespace armarx::navigation::human
......@@ -32,6 +32,8 @@ namespace armarx::navigation::human
core::Pose2D pose;
Eigen::Vector2f linearVelocity;
DateTime detectionTime;
core::Pose2D estimateAt(DateTime& time) const;
};
struct HumanGroup
......
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