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

Fix movement after emergency stop

parent d4bc11c2
No related branches found
No related tags found
1 merge request!451Improve armar7 platform movement
Pipeline #19017 passed
......@@ -52,11 +52,19 @@ namespace armarx
void
NJointHolonomicPlatformVelocityControllerWithRamp::rtPreActivateController()
{
const float velX = velocitySensor->velocityX;
const float velY = velocitySensor->velocityY;
const float velRot = velocitySensor->velocityRotation;
// init velocity ramp
Eigen::VectorXf state(6);
state << velocitySensor->velocityX, velocitySensor->velocityY, 0, 0, 0,
velocitySensor->velocityRotation;
state << velX, velY, 0, 0, 0, velRot;
ramp.setState(state, VirtualRobot::IKSolver::CartesianSelection::All);
getWriterControlStruct().velocityX = velX;
getWriterControlStruct().velocityY = velY;
getWriterControlStruct().velocityRotation = velRot;
writeControlStruct();
}
void
......
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