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

Re add accidentally removed NJointHolonomicPlatformRelativePositionController for platform unit

parent f5be7ce7
No related branches found
No related tags found
1 merge request!39Robot unit v3
......@@ -314,6 +314,19 @@ namespace armarx
);
ARMARX_CHECK_EXPRESSION(ctrl);
unit->pt = ctrl;
NJointHolonomicPlatformRelativePositionControllerConfigPtr configRelativePositionCtrlCfg = new NJointHolonomicPlatformRelativePositionControllerConfig;
configRelativePositionCtrlCfg->platformName = _module<RobotData>().getRobotPlatformName();
auto ctrlRelativePosition = NJointHolonomicPlatformRelativePositionControllerPtr::dynamicCast(
_module<ControllerManagement>().createNJointController(
"NJointHolonomicPlatformRelativePositionController", configName + "_RelativePositionContoller",
configRelativePositionCtrlCfg, false, true
)
);
ARMARX_CHECK_EXPRESSION(ctrlRelativePosition);
unit->pt = ctrl;
unit->relativePosCtrl = ctrlRelativePosition;
unit->platformSensorIndex = _module<Devices>().getSensorDevices().index(_module<RobotData>().getRobotPlatformName());
//add
addUnit(std::move(unit));
......
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