YARP
Yet Another Robot Platform
ControlBoardWrapperControlMode.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_CONTROLBOARDWRAPPERCONTROLMODE_H
10 #define YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERCONTROLMODE_H
11 
12 #include <yarp/dev/IControlMode.h>
13 
15 
17  virtual public ControlBoardWrapperCommon,
19 {
20 public:
21  bool getControlMode(int j, int* mode) override;
22  bool getControlModes(int* modes) override;
23  bool getControlModes(const int n_joint, const int* joints, int* modes) override;
24  bool setControlMode(const int j, const int mode) override;
25  bool setControlModes(const int n_joints, const int* joints, int* modes) override;
26  bool setControlModes(int* modes) override;
27 };
28 
29 #endif // YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERCONTROLMODE_H
ControlBoardWrapperControlMode::setControlModes
bool setControlModes(const int n_joints, const int *joints, int *modes) override
Set the current control mode for a subset of axes.
Definition: ControlBoardWrapperControlMode.cpp:111
ControlBoardWrapperControlMode::getControlMode
bool getControlMode(int j, int *mode) override
Get the current control mode.
Definition: ControlBoardWrapperControlMode.cpp:14
yarp::dev::IControlMode
Interface for setting control mode in control board.
Definition: IControlMode.h:28
ControlBoardWrapperControlMode::setControlMode
bool setControlMode(const int j, const int mode) override
Set the current control mode.
Definition: ControlBoardWrapperControlMode.cpp:87
ControlBoardWrapperCommon.h
IControlMode.h
ControlBoardWrapperCommon
Definition: ControlBoardWrapperCommon.h:19
ControlBoardWrapperControlMode::getControlModes
bool getControlModes(int *modes) override
Get the current control mode (multiple joints).
Definition: ControlBoardWrapperControlMode.cpp:37
ControlBoardWrapperControlMode
Definition: ControlBoardWrapperControlMode.h:19