Skip to content
Snippets Groups Projects
Commit 4d17432a authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Change NJointController::useSynchronizedRtRobot to return the rtRobot

parent 97048062
No related branches found
No related tags found
No related merge requests found
......@@ -252,7 +252,7 @@ namespace armarx
return RobotUnitModule::Devices::Instance().getControlDevice(deviceName);
}
void NJointController::useSynchronizedRtRobot(bool updateCollisionModel)
const VirtualRobot::RobotPtr& NJointController::useSynchronizedRtRobot(bool updateCollisionModel)
{
ARMARX_CHECK_EXPRESSION_W_HINT(
NJointControllerRegistryEntry::ConstructorIsRunning(),
......@@ -261,6 +261,7 @@ namespace armarx
ARMARX_CHECK_IS_NULL_W_HINT(rtRobot, "useSynchronizedRtRobot was already called");
rtRobot = RobotUnitModule::RobotData::Instance().cloneRobot(updateCollisionModel);
rtRobotNodes = rtRobot->getRobotNodes();
return rtRobot;
}
void NJointController::onInitComponent()
......
......@@ -643,7 +643,7 @@ namespace armarx
* @param updateCollisionModel Whether the robot's collision model should be updated
* @see rtGetRobot
*/
void useSynchronizedRtRobot(bool updateCollisionModel = false);
const VirtualRobot::RobotPtr& useSynchronizedRtRobot(bool updateCollisionModel = false);
// //////////////////////////////////////////////////////////////////////////////////////// //
// ////////////////////////////////// Component interface ///////////////////////////////// //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment