YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ImplementControlCalibration.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_DEV_IMPLEMENTCONTROLCALIBRATION_H
7#define YARP_DEV_IMPLEMENTCONTROLCALIBRATION_H
8
12
13#include <yarp/dev/api.h>
14namespace yarp::dev {
15class ImplementControlCalibration;
16}
17
19{
20protected:
21 IControlCalibrationRaw* m_iraw=nullptr;
22 void* m_helper=nullptr;
23 std::vector<int> m_buffer_ints;
24 std::vector<double> m_buffer_doubles;
25 std::mutex m_imp_mutex;
26
35 bool initialize (int size, const int *amap, const double *enc, const double *zos);
36
41 bool uninitialize ();
42
43public:
44 /* Constructor.
45 * @param y is the pointer to the class instance inheriting from this
46 * implementation.
47 */
49
54
55 ReturnValue calibrateAxisWithParams(int axis, unsigned int type, double p1, double p2, double p3) override;
56 ReturnValue setCalibrationParameters(int axis, const CalibrationParameters& params) override;
57 ReturnValue calibrationDone(int j) override;
58};
59
60
61#endif // YARP_DEV_IMPLEMENTCONTROLCALIBRATION_H
define control board standard interfaces
Interface for control devices, calibration commands.
Interface for control devices, calibration commands.
ReturnValue calibrateAxisWithParams(int axis, unsigned int type, double p1, double p2, double p3) override
Start calibration, this method is very often platform specific.
ReturnValue calibrationDone(int j) override
Check if the calibration is terminated, on a particular joint.
bool initialize(int size, const int *amap, const double *enc, const double *zos)
Initialize the internal data and alloc memory.
bool uninitialize()
Clean up internal data and memory.
ReturnValue setCalibrationParameters(int axis, const CalibrationParameters &params) override
Start calibration, this method is very often platform specific.
For streams capable of holding different kinds of content, check what they actually have.
The main, catch-all namespace for YARP.
Definition dirs.h:16
#define YARP_dev_API
Definition api.h:18