YARP
Yet Another Robot Platform
ControlBoardWrapperVelocityControl.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_CONTROLBOARDWRAPPERVELOCITYCONTROL_H
10 #define YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERVELOCITYCONTROL_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 velocityMove(int j, double v) override;
24  bool velocityMove(const double* v) override;
25  bool velocityMove(const int n_joints, const int* joints, const double* spds) override;
26  bool getRefVelocity(const int joint, double* vel) override;
27  bool getRefVelocities(double* vels) override;
28  bool getRefVelocities(const int n_joint, const int* joints, double* vels) override;
29  inline bool setRefAcceleration(int j, double acc) override { return ControlBoardWrapperCommon::setRefAcceleration(j, acc); }
30  inline bool setRefAccelerations(const double* accs) override { return ControlBoardWrapperCommon::setRefAccelerations(accs); }
31  inline bool setRefAccelerations(const int n_joints, const int* joints, const double* accs) override { return ControlBoardWrapperCommon::setRefAccelerations(n_joints, joints, accs); }
32  inline bool getRefAcceleration(int j, double* acc) override { return ControlBoardWrapperCommon::getRefAcceleration(j, acc); }
33  inline bool getRefAccelerations(double* accs) override { return ControlBoardWrapperCommon::getRefAccelerations(accs); }
34  inline bool getRefAccelerations(const int n_joints, const int* joints, double* accs) override { return ControlBoardWrapperCommon::getRefAccelerations(n_joints, joints, accs); }
35  inline bool stop(int j) override { return ControlBoardWrapperCommon::stop(j); }
36  inline bool stop() override { return ControlBoardWrapperCommon::stop(); }
37  inline bool stop(const int n_joint, const int* joints) override { return ControlBoardWrapperCommon::stop(n_joint, joints); }
38 };
39 
40 #endif // YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERVELOCITYCONTROL_H
ControlBoardWrapperCommon::stop
bool stop()
Definition: ControlBoardWrapperCommon.cpp:236
ControlBoardWrapperVelocityControl::stop
bool stop(const int n_joint, const int *joints) override
Stop motion for a subset of joints.
Definition: ControlBoardWrapperVelocityControl.h:37
ControlBoardWrapperVelocityControl::setRefAccelerations
bool setRefAccelerations(const double *accs) override
Set reference acceleration on all joints.
Definition: ControlBoardWrapperVelocityControl.h:30
ControlBoardWrapperVelocityControl::getRefAccelerations
bool getRefAccelerations(const int n_joints, const int *joints, double *accs) override
Get reference acceleration for a subset of joints.
Definition: ControlBoardWrapperVelocityControl.h:34
ControlBoardWrapperVelocityControl::setRefAccelerations
bool setRefAccelerations(const int n_joints, const int *joints, const double *accs) override
Set reference acceleration for a subset of joints.
Definition: ControlBoardWrapperVelocityControl.h:31
ControlBoardWrapperVelocityControl::velocityMove
bool velocityMove(int j, double v) override
Start motion at a given speed, single joint.
Definition: ControlBoardWrapperVelocityControl.cpp:15
ControlBoardWrapperCommon::getRefAcceleration
bool getRefAcceleration(int j, double *acc)
Definition: ControlBoardWrapperCommon.cpp:113
ControlBoardWrapperVelocityControl::setRefAcceleration
bool setRefAcceleration(int j, double acc) override
Set reference acceleration for a joint.
Definition: ControlBoardWrapperVelocityControl.h:29
ControlBoardWrapperVelocityControl::stop
bool stop(int j) override
Stop motion, single joint.
Definition: ControlBoardWrapperVelocityControl.h:35
ControlBoardWrapperCommon.h
IVelocityControl.h
ControlBoardWrapperCommon
Definition: ControlBoardWrapperCommon.h:19
yarp::dev::IVelocityControl
Interface for control boards implementing velocity control.
Definition: IVelocityControl.h:160
ControlBoardWrapperVelocityControl::getRefVelocity
bool getRefVelocity(const int joint, double *vel) override
Get the last reference speed set by velocityMove for single joint.
Definition: ControlBoardWrapperVelocityControl.cpp:103
ControlBoardWrapperVelocityControl::getRefVelocities
bool getRefVelocities(double *vels) override
Get the last reference speed set by velocityMove for all joints.
Definition: ControlBoardWrapperVelocityControl.cpp:131
ControlBoardWrapperVelocityControl::getAxes
bool getAxes(int *ax) override
Get the number of controlled axes.
Definition: ControlBoardWrapperVelocityControl.h:22
ControlBoardWrapperCommon::setRefAcceleration
bool setRefAcceleration(int j, double acc)
Definition: ControlBoardWrapperCommon.cpp:21
ControlBoardWrapperVelocityControl::getRefAccelerations
bool getRefAccelerations(double *accs) override
Get reference acceleration of all joints.
Definition: ControlBoardWrapperVelocityControl.h:33
ControlBoardWrapperVelocityControl::stop
bool stop() override
Stop motion, multiple joints.
Definition: ControlBoardWrapperVelocityControl.h:36
ControlBoardWrapperCommon::getAxes
bool getAxes(int *ax)
Definition: ControlBoardWrapperCommon.cpp:14
ControlBoardWrapperCommon::setRefAccelerations
bool setRefAccelerations(const double *accs)
Definition: ControlBoardWrapperCommon.cpp:45
ControlBoardWrapperCommon::getRefAccelerations
bool getRefAccelerations(double *accs)
Definition: ControlBoardWrapperCommon.cpp:138
ControlBoardWrapperVelocityControl::getRefAcceleration
bool getRefAcceleration(int j, double *acc) override
Get reference acceleration for a joint.
Definition: ControlBoardWrapperVelocityControl.h:32
ControlBoardWrapperVelocityControl
Definition: ControlBoardWrapperVelocityControl.h:20