YARP
Yet Another Robot Platform
ImplementControlCalibration.h
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 
9 #ifndef YARP_DEV_IMPLEMENTCONTROLCALIBRATION_H
10 #define YARP_DEV_IMPLEMENTCONTROLCALIBRATION_H
11 
15 
16 #include <yarp/dev/api.h>
17 namespace yarp{
18  namespace dev {
19  class ImplementControlCalibration;
20  }
21 }
22 
24 {
25 protected:
27  void *helper;
28  double *temp;
29 
38  bool initialize (int size, const int *amap, const double *enc, const double *zos);
39 
44  bool uninitialize ();
45 
46 public:
47  /* Constructor.
48  * @param y is the pointer to the class instance inheriting from this
49  * implementation.
50  */
52 
57 
58  bool calibrateAxisWithParams(int axis, unsigned int type, double p1, double p2, double p3) override;
59 
60  bool setCalibrationParameters(int axis, const CalibrationParameters& params) override;
61 
62  bool calibrationDone(int j) override;
63 };
64 
65 
66 #endif // YARP_DEV_IMPLEMENTCONTROLCALIBRATION_H
yarp::dev::ImplementControlCalibration::uninitialize
bool uninitialize()
Clean up internal data and memory.
Definition: ImplementControlCalibration.cpp:109
yarp::dev::ImplementControlCalibration::helper
void * helper
Definition: ImplementControlCalibration.h:27
yarp::dev::IControlCalibrationRaw
Interface for control devices, calibration commands.
Definition: IControlCalibration.h:48
ControlBoardInterfaces.h
define control board standard interfaces
yarp::dev::IControlCalibration
Interface for control devices, calibration commands.
Definition: IControlCalibration.h:85
yarp::dev::IControlCalibration::setCalibrationParameters
virtual bool setCalibrationParameters(int axis, const CalibrationParameters &params)
Start calibration, this method is very often platform specific.
Definition: IControlCalibration.h:108
IControlCalibration.h
yarp::dev::ImplementControlCalibration::temp
double * temp
Definition: ImplementControlCalibration.h:28
ControlBoardHelper.h
yarp::dev::IControlCalibration::calibrateAxisWithParams
virtual bool calibrateAxisWithParams(int axis, unsigned int type, double p1, double p2, double p3)=0
Start calibration, this method is very often platform specific.
yarp::dev::ImplementControlCalibration::~ImplementControlCalibration
virtual ~ImplementControlCalibration()
Destructor.
Definition: ImplementControlCalibration.cpp:88
YARP_dev_API
#define YARP_dev_API
Definition: api.h:19
yarp::dev::IControlCalibration::calibrationDone
virtual bool calibrationDone(int j)=0
Check if the calibration is terminated, on a particular joint.
yarp::dev::ImplementControlCalibration::iCalibrate
IControlCalibrationRaw * iCalibrate
Definition: ImplementControlCalibration.h:26
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::dev::ImplementControlCalibration
Definition: ImplementControlCalibration.h:24
yarp::dev::ImplementControlCalibration::ImplementControlCalibration
ImplementControlCalibration(yarp::dev::IControlCalibrationRaw *y)
Definition: ImplementControlCalibration.cpp:81
yarp::dev::CalibrationParameters
Definition: IControlCalibration.h:32
yarp::dev::ImplementControlCalibration::initialize
bool initialize(int size, const int *amap, const double *enc, const double *zos)
Initialize the internal data and alloc memory.
Definition: ImplementControlCalibration.cpp:93
api.h