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

Prevent calls to addJointController after the ControlDevice was added to a RobotUnit

parent 3d1abfa0
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,7 @@ namespace armarx
void ControlDevice::addJointController(JointController* jointCtrl)
{
ARMARX_CHECK_IS_NULL(owner);
ARMARX_DEBUG << "adding Controller " << jointCtrl;
if (!jointCtrl)
{
......@@ -142,6 +143,7 @@ namespace armarx
jointCtrl->hardwareControlModeHash = hash(jointCtrl->getHardwareControlMode());
jointControllers.add(mode, std::move(jointCtrl));
ARMARX_DEBUG << "adding Controller " << jointCtrl << "...done";
ARMARX_CHECK_IS_NULL(owner);
}
}
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