7 EthercatMaster::getInstance(
"youbot-ethercat.cfg", CONFIG_FOLDER_PATH,
true);
16 Logger::logginLevel =
trace;
34 bool targetReachedBar1 =
false;
35 bool targetReachedBar2 =
false;
38 myTrace.startTrace(
"Load",
"");
43 for (
int i = 0; i < 40; i++) {
45 bar1TargetReched.getParameter(targetReachedBar1);
48 myTrace.updateTrace((
double)targetReachedBar1);
49 if (targetReachedBar1 && targetReachedBar2) {
53 targetReachedBar1 =
false;
54 targetReachedBar2 =
false;
59 for (
int i = 0; i < 40; i++) {
61 bar1TargetReched.getParameter(targetReachedBar1);
64 myTrace.updateTrace((
double)targetReachedBar2);
65 if (targetReachedBar1 && targetReachedBar2) {
Indicates that the actual position equals the target position.
YouBotGripper & getArmGripper()
It groups the manipulator joints and the gripper together.
virtual ~YouBotGripperTest()
virtual void getConfigurationParameter(MaxEncoderValue ¶meter) const
YouBotGripperBar & getGripperBar1()
YouBotGripperBar & getGripperBar2()
void getParameter(bool ¶meter) const
void calibrateGripper(const bool forceCalibration=false)
Creates a trace of one parameter of the gripper.