YARP
Yet Another Robot Platform
ControlBoardWrapperRemoteCalibrator.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
10 
11 #include <yarp/os/LogStream.h>
12 
14 
16 
18 {
21 }
22 
24 {
27 }
28 
30 {
32  if (!getCalibratorDevice()) {
33  return false;
34  }
35 
36  return IRemoteCalibrator::getCalibratorDevice()->calibrateSingleJoint(j);
37 }
38 
40 {
42  if (!getCalibratorDevice()) {
43  return false;
44  }
45 
47 }
48 
50 {
52  if (!getCalibratorDevice()) {
53  return false;
54  }
55 
57 }
58 
60 {
62  if (!getCalibratorDevice()) {
63  return false;
64  }
65 
67 }
68 
70 {
72  if (!getCalibratorDevice()) {
73  return false;
74  }
75 
76  return getCalibratorDevice()->parkSingleJoint(j, _wait);
77 }
78 
80 {
82  if (!getCalibratorDevice()) {
83  return false;
84  }
85 
87 }
88 
90 {
92  if (!getCalibratorDevice()) {
93  return false;
94  }
95 
97 }
98 
100 {
102  if (!getCalibratorDevice()) {
103  return false;
104  }
105 
106  return getCalibratorDevice()->quitPark();
107 }
LogStream.h
ControlBoardWrapperLogComponent.h
ControlBoardWrapperRemoteCalibrator::homingSingleJoint
bool homingSingleJoint(int j) override
homingSingleJoint: call the homing procedure for a single joint
Definition: ControlBoardWrapperRemoteCalibrator.cpp:49
yarp::dev::IRemoteCalibrator::isCalibratorDevicePresent
virtual bool isCalibratorDevicePresent(bool *isCalib)
isCalibratorDevicePresent: check if a calibrator device has been set
Definition: IRemoteCalibrator.cpp:39
ControlBoardWrapperRemoteCalibrator::calibrateSingleJoint
bool calibrateSingleJoint(int j) override
calibrateSingleJoint: call the calibration procedure for the single joint
Definition: ControlBoardWrapperRemoteCalibrator.cpp:29
yarp::dev::IRemoteCalibrator::quitCalibrate
virtual bool quitCalibrate()=0
quitCalibrate: interrupt the calibration procedure
ControlBoardWrapperRemoteCalibrator::getCalibratorDevice
yarp::dev::IRemoteCalibrator * getCalibratorDevice() override
getCalibratorDevice: return the pointer stored with the setCalibratorDevice
Definition: ControlBoardWrapperRemoteCalibrator.cpp:17
ControlBoardWrapperRemoteCalibrator::quitPark
bool quitPark() override
quitPark: interrupt the park procedure
Definition: ControlBoardWrapperRemoteCalibrator.cpp:99
ControlBoardWrapperRemoteCalibrator::homingWholePart
bool homingWholePart() override
homingWholePart: call the homing procedure for a the whole part/device
Definition: ControlBoardWrapperRemoteCalibrator.cpp:59
yarp::dev::IRemoteCalibrator::homingWholePart
virtual bool homingWholePart()=0
homingWholePart: call the homing procedure for a the whole part/device
yarp::dev::IRemoteCalibrator::homingSingleJoint
virtual bool homingSingleJoint(int j)=0
homingSingleJoint: call the homing procedure for a single joint
ControlBoardWrapperRemoteCalibrator.h
yarp::dev::IRemoteCalibrator::getCalibratorDevice
virtual yarp::dev::IRemoteCalibrator * getCalibratorDevice()
getCalibratorDevice: return the pointer stored with the setCalibratorDevice
Definition: IRemoteCalibrator.cpp:34
CONTROLBOARDWRAPPER
const yarp::os::LogComponent & CONTROLBOARDWRAPPER()
Definition: ControlBoardWrapperLogComponent.cpp:11
yarp::dev::IRemoteCalibrator::calibrateWholePart
virtual bool calibrateWholePart()=0
calibrateWholePart: call the procedure for calibrating the whole device
ControlBoardWrapperRemoteCalibrator::quitCalibrate
bool quitCalibrate() override
quitCalibrate: interrupt the calibration procedure
Definition: ControlBoardWrapperRemoteCalibrator.cpp:89
yarp::dev::IRemoteCalibrator::parkSingleJoint
virtual bool parkSingleJoint(int j, bool _wait=true)=0
parkSingleJoint(): start the parking procedure for the single joint
ControlBoardWrapperRemoteCalibrator::calibrateWholePart
bool calibrateWholePart() override
calibrateWholePart: call the procedure for calibrating the whole device
Definition: ControlBoardWrapperRemoteCalibrator.cpp:39
ControlBoardWrapperRemoteCalibrator::parkSingleJoint
bool parkSingleJoint(int j, bool _wait=true) override
parkSingleJoint(): start the parking procedure for the single joint
Definition: ControlBoardWrapperRemoteCalibrator.cpp:69
ControlBoardWrapperRemoteCalibrator::isCalibratorDevicePresent
bool isCalibratorDevicePresent(bool *isCalib) override
isCalibratorDevicePresent: check if a calibrator device has been set
Definition: ControlBoardWrapperRemoteCalibrator.cpp:23
ControlBoardWrapperRemoteCalibrator::parkWholePart
bool parkWholePart() override
parkWholePart: start the parking procedure for the whole part
Definition: ControlBoardWrapperRemoteCalibrator.cpp:79
yarp::dev::IRemoteCalibrator::parkWholePart
virtual bool parkWholePart()=0
parkWholePart: start the parking procedure for the whole part
yCTrace
#define yCTrace(component,...)
Definition: LogComponent.h:88
yarp::dev::IRemoteCalibrator
IRemoteCalibrator interface is meant to remotize the access of the calibration device in order to all...
Definition: IRemoteCalibrator.h:30
yarp::dev::IRemoteCalibrator::quitPark
virtual bool quitPark()=0
quitPark: interrupt the park procedure