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