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 }
IRemoteCalibrator interface is meant to remotize the access of the calibration device in order to all...
IRemoteCalibrator()
This interface is meant to remotize the access of the calibration device in order to allow users to r...
virtual bool setCalibratorDevice(yarp::dev::IRemoteCalibrator *dev)
setCalibratorDevice: store the pointer to the calibrator device.
virtual void releaseCalibratorDevice()
releaseCalibratorDevice: reset the internal pointer to NULL when stop using the calibrator
virtual bool isCalibratorDevicePresent(bool *isCalib)
isCalibratorDevicePresent: check if a calibrator device has been set
virtual yarp::dev::IRemoteCalibrator * getCalibratorDevice()
getCalibratorDevice: return the pointer stored with the setCalibratorDevice
An interface for the device drivers.