Skip to content
Snippets Groups Projects
Commit 26966612 authored by armar-user's avatar armar-user
Browse files

fixed the undefined behavior for tripple buffer initialization

parent 953015c6
No related branches found
No related tags found
1 merge request!185Clean up interfaces and unneeded code in memory core classes
...@@ -551,6 +551,11 @@ namespace armarx ...@@ -551,6 +551,11 @@ namespace armarx
usleep(100); usleep(100);
} }
while (!interfaceData.updateReadBuffer())
{
usleep(100);
}
Eigen::Matrix4f pose = interfaceData.getUpToDateReadBuffer().currentTcpPose; Eigen::Matrix4f pose = interfaceData.getUpToDateReadBuffer().currentTcpPose;
dmpCtrl->prepareExecution(dmpCtrl->eigen4f2vec(pose), goals); dmpCtrl->prepareExecution(dmpCtrl->eigen4f2vec(pose), goals);
......
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