Skip to content
Snippets Groups Projects
Commit eda61643 authored by Armar6's avatar Armar6
Browse files

RobotUnit: made addObject in createController sync instead of async to avoid thread creation

parent 85d83609
No related branches found
No related tags found
No related merge requests found
...@@ -1283,7 +1283,7 @@ namespace armarx ...@@ -1283,7 +1283,7 @@ namespace armarx
std::move(ctrlDeviceUsedBitmap), std::move(ctrlDeviceUsedBitmap),
std::move(ctrlDeviceUsedIndices), std::move(ctrlDeviceUsedIndices),
deletable, internal); deletable, internal);
getArmarXManager()->addObjectAsync(nJointCtrl, instanceName, false, false); getArmarXManager()->addObject(nJointCtrl, instanceName, false, false);
nJointControllers[instanceName] = std::move(nJointCtrl); nJointControllers[instanceName] = std::move(nJointCtrl);
ARMARX_CHECK_EXPRESSION(listenerPrx); ARMARX_CHECK_EXPRESSION(listenerPrx);
listenerPrx->nJointControllerCreated(instanceName); listenerPrx->nJointControllerCreated(instanceName);
......
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