20 Network::setLocalMode(
true);
22 SECTION(
"Checking fakeJointCoupling device")
25 IJointCoupling*
ijc=
nullptr;
28 p_cfg.put(
"device",
"fakeJointCoupling");
82 CHECK(
ijc->convertFromPhysicalJointsToActuatedAxesPos(physJointsPos, actAxesPos));
83 CHECK(actAxesPos[0] == 0.0);
84 CHECK(actAxesPos[1] == 1.0);
85 CHECK(actAxesPos[2] == 5.0);
87 CHECK(
ijc->convertFromPhysicalJointsToActuatedAxesVel(physJointsPos, physJointsVel, actAxesVel));
88 CHECK(actAxesVel[0] == 0.0);
89 CHECK(actAxesVel[1] == 1.0);
90 CHECK(actAxesVel[2] == 10.0);
92 CHECK(
ijc->convertFromPhysicalJointsToActuatedAxesAcc(physJointsPos, physJointsVel, physJointsAcc, actAxesAcc));
93 CHECK(actAxesAcc[0] == 0.0);
94 CHECK(actAxesAcc[1] == 1.0);
95 CHECK(actAxesAcc[2] == 15.0);
97 CHECK_FALSE(
ijc->convertFromPhysicalJointsToActuatedAxesTrq(physJointsPos, physJointsAcc, actAxesAcc));
99 CHECK(
ijc->convertFromActuatedAxesToPhysicalJointsPos(actAxesPos, physJointsPos));
100 CHECK(physJointsPos[0] == 0.0);
101 CHECK(physJointsPos[1] == 1.0);
102 CHECK(physJointsPos[2] == 2.5);
103 CHECK(physJointsPos[3] == 2.5);
105 CHECK(
ijc->convertFromActuatedAxesToPhysicalJointsVel(actAxesPos, actAxesVel, physJointsVel));
106 CHECK(physJointsVel[0] == 0.0);
107 CHECK(physJointsVel[1] == 1.0);
108 CHECK(physJointsVel[2] == -2.5);
109 CHECK(physJointsVel[3] == 7.5);
111 CHECK(
ijc->convertFromActuatedAxesToPhysicalJointsAcc(actAxesPos, actAxesVel, actAxesAcc, physJointsAcc));
112 CHECK(physJointsAcc[0] == 0.0);
113 CHECK(physJointsAcc[1] == 1.0);
114 CHECK(physJointsAcc[2] == -10.0);
115 CHECK(physJointsAcc[3] == 15.0);
117 CHECK_FALSE(
ijc->convertFromActuatedAxesToPhysicalJointsTrq(actAxesPos, actAxesAcc, physJointsAcc));
119 double min{0.0}, max{0.0};
120 CHECK(
ijc->getPhysicalJointLimits(0, min, max));
123 CHECK(
ijc->getPhysicalJointLimits(1, min, max));
126 CHECK(
ijc->getPhysicalJointLimits(2, min, max));
129 CHECK(
ijc->getPhysicalJointLimits(3, min, max));
142 Network::setLocalMode(
false);