Skip to content
Snippets Groups Projects
Commit 6e1b4650 authored by Fabian Reister's avatar Fabian Reister
Browse files

fixing platform movement after initialization

parent e20dcb6c
No related branches found
No related tags found
No related merge requests found
Pipeline #19387 failed
......@@ -81,7 +81,9 @@ namespace armarx
Eigen::Vector3f result;
if (activationTime > rtGetControlStruct().commandTimestamp)
{
result = ramp.update(activationVelocity, timeSinceLastIteration.toSecondsDouble());
// No valid command has been specified. Sane default: come to rest.
const Eigen::Vector3f targetVelocity = Eigen::Vector3f::Zero();
result = ramp.update(targetVelocity, timeSinceLastIteration.toSecondsDouble());
}
else
{
......
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