YARP
Yet Another Robot Platform
ControlBoardWrapperPositionDirect.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_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERPOSITIONDIRECT_H
7 #define YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERPOSITIONDIRECT_H
8 
10 
12 
13 
15  virtual public ControlBoardWrapperCommon,
17 {
18 public:
19  inline bool getAxes(int *ax) override { return ControlBoardWrapperCommon::getAxes(ax); }
20  bool setPosition(int j, double ref) override;
21  bool setPositions(const int n_joints, const int* joints, const double* dpos) override;
22  bool setPositions(const double* refs) override;
23  bool getRefPosition(const int joint, double* ref) override;
24  bool getRefPositions(double* refs) override;
25  bool getRefPositions(const int n_joint, const int* joints, double* refs) override;
26 };
27 
28 #endif // YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERPOSITIONDIRECT_H
bool getRefPositions(double *refs) override
Get the last position reference for all axes.
bool setPositions(const int n_joints, const int *joints, const double *dpos) override
Set new reference point for all axes.
bool setPosition(int j, double ref) override
Set new position for a single axis.
bool getRefPosition(const int joint, double *ref) override
Get the last position reference for the specified axis.
bool getAxes(int *ax) override
Get the number of controlled axes.
Interface for a generic control board device implementing position control.