Skip to content
Snippets Groups Projects

Improve armar7 platform movement

Merged Tobias Gröger requested to merge feature/improve-armar7-platform-movement into master
All threads resolved!
2 files
+ 18
6
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -92,10 +92,20 @@ namespace armarx
rtGetControlStruct().velocityY,
rtGetControlStruct().velocityRotation);
Eigen::VectorXf result = ramp.update(x, timeSinceLastIteration.toSecondsDouble());
target->velocityX = result(0);
target->velocityY = result(1);
target->velocityRotation = result(2);
if (x == Eigen::Vector3f::Zero())
{
target->velocityX = 0;
target->velocityY = 0;
target->velocityRotation = 0;
}
else
{
Eigen::VectorXf result = ramp.update(x, timeSinceLastIteration.toSecondsDouble());
target->velocityX = result(0);
target->velocityY = result(1);
target->velocityRotation = result(2);
}
}
}
Loading