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

Use velocity in m/s for stretching

parent 05569ad6
No related branches found
No related tags found
2 merge requests!51Fix visualization, fix human obstacles,!28Draft: Dev -> Main
......@@ -22,7 +22,8 @@ namespace armarx::navigation::human
pose.translation() += global_V_offset;
float velocityNorm = human.linearVelocity.norm();
float movementStretch = 1 + velocityNorm * params.movementInfluence;
// stretch with velocity in m/s as factor
float movementStretch = 1 + velocityNorm * params.movementInfluence / 1000; // [mm] to [m]
if (velocityNorm != 0)
{
// y pointing forward
......
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