YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FakeCalibrator.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026-2026 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef __FAKE_CALIBRATOR__
7#define __FAKE_CALIBRATOR__
8
12
14
15
26{
27public:
32
37
44 virtual bool open (yarp::os::Searchable& config) override;
45
50 virtual bool close () override;
51
52 // ICalibrator
53
61 yarp::dev::ReturnValue park(DeviceDriver *dd, bool wait=true) override;
64
65 // IRemoteCalibrator
71 yarp::dev::ReturnValue parkSingleJoint(int j, bool _wait=true) override;
73
74private:
75 yarp::dev::PolyDriver* m_dev2calibrate = nullptr;
76 yarp::dev::IControlCalibration* m_iControlCalibration = nullptr;
77 yarp::dev::IEncoders* m_iEncoders = nullptr;
79};
80
81#endif
define control board standard interfaces
This class is the parameters parser for class FakeCalibrator.
fakeCalibrator: A fake calibrator implementation for testing purposes.
yarp::dev::ReturnValue parkWholePart() override
parkWholePart: start the parking procedure for the whole part
yarp::dev::ReturnValue homingWholePart() override
homingWholePart: call the homing procedure for a the whole part/device
yarp::dev::ReturnValue calibrate(DeviceDriver *device) override
Calibrate method.
yarp::dev::ReturnValue parkSingleJoint(int j, bool _wait=true) override
parkSingleJoint(): start the parking procedure for the single joint
virtual bool open(yarp::os::Searchable &config) override
Open the device driver.
yarp::dev::ReturnValue calibrateWholePart() override
calibrateWholePart: call the procedure for calibrating the whole device
yarp::dev::ReturnValue homingSingleJoint(int j) override
homingSingleJoint: call the homing procedure for a single joint
yarp::dev::ReturnValue quitCalibrate() override
virtual bool close() override
Close the device driver.
yarp::dev::ReturnValue calibrateSingleJoint(int j) override
calibrateSingleJoint: call the calibration procedure for the single joint
yarp::dev::IRemoteCalibrator * getCalibratorDevice() override
getCalibratorDevice: return the pointer stored with the setCalibratorDevice
FakeCalibrator()
Default constructor.
yarp::dev::ReturnValue park(DeviceDriver *dd, bool wait=true) override
~FakeCalibrator()
Destructor.
yarp::dev::ReturnValue quitPark() override
Interface implemented by all device drivers.
Interface for a calibrator device.
Definition ICalibrator.h:22
Interface for control devices, calibration commands.
Control board, encoder interface.
Definition IEncoders.h:117
IRemoteCalibrator interface is meant to remotize the access of the calibration device in order to all...
A container for a device driver.
Definition PolyDriver.h:23
A base class for nested structures that can be searched.
Definition Searchable.h:31