YARP
Yet Another Robot Platform
IRemoteCalibrator.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 using namespace yarp::dev;
12 
24 {
25  _remoteCalibrator = nullptr;
26 }
27 
29 {
30  _remoteCalibrator = dev;
31  return true;
32 }
33 
35 {
36  return _remoteCalibrator;
37 }
38 
40 {
41  _remoteCalibrator == nullptr ? *isCalib = false : *isCalib = true;
42  return true;
43 }
44 
46 {
47  _remoteCalibrator = nullptr;
48 }
yarp::dev::IRemoteCalibrator::isCalibratorDevicePresent
virtual bool isCalibratorDevicePresent(bool *isCalib)
isCalibratorDevicePresent: check if a calibrator device has been set
Definition: IRemoteCalibrator.cpp:39
yarp::dev::IRemoteCalibrator::setCalibratorDevice
virtual bool setCalibratorDevice(yarp::dev::IRemoteCalibrator *dev)
setCalibratorDevice: store the pointer to the calibrator device.
Definition: IRemoteCalibrator.cpp:28
yarp::dev
An interface for the device drivers.
Definition: audioBufferSizeData.cpp:17
yarp::dev::IRemoteCalibrator::getCalibratorDevice
virtual yarp::dev::IRemoteCalibrator * getCalibratorDevice()
getCalibratorDevice: return the pointer stored with the setCalibratorDevice
Definition: IRemoteCalibrator.cpp:34
IRemoteCalibrator.h
yarp::dev::IRemoteCalibrator::IRemoteCalibrator
IRemoteCalibrator()
This interface is meant to remotize the access of the calibration device in order to allow users to r...
Definition: IRemoteCalibrator.cpp:23
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::releaseCalibratorDevice
virtual void releaseCalibratorDevice()
releaseCalibratorDevice: reset the internal pointer to NULL when stop using the calibrator
Definition: IRemoteCalibrator.cpp:45