YARP
Yet Another Robot Platform
ImplementControlMode.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_IMPLEMENTCONTROLMODE_H
7 #define YARP_DEV_IMPLEMENTCONTROLMODE_H
8 
10 #include <yarp/dev/api.h>
11 
12 namespace yarp {
13  namespace dev {
14  class ImplementControlMode;
15  }
16 }
17 
18 namespace yarp {
19 namespace dev {
20 namespace impl {
21 
22 template <typename T>
23 class FixedSizeBuffersManager;
24 
25 } // namespace impl
26 } // namespace dev
27 } // namespace yarp
28 
30 {
31  void *helper;
34 
35 public:
36  bool initialize(int k, const int *amap);
37  bool uninitialize();
40  bool getControlMode(int j, int *f) override;
41  bool getControlModes(int *modes) override;
42  bool getControlModes(const int n_joint, const int *joints, int *modes) override;
43  bool setControlMode(const int j, const int mode) override;
44  bool setControlModes(const int n_joint, const int *joints, int *modes) override;
45  bool setControlModes(int *modes) override;
46 };
47 
48 #endif // YARP_DEV_IMPLEMENTCONTROLMODE_H
Interface for setting control mode in control board.
Definition: IControlMode.h:101
Interface for setting control mode in control board.
Definition: IControlMode.h:25
virtual bool setControlMode(const int j, const int mode)=0
Set the current control mode.
virtual bool setControlModes(const int n_joint, const int *joints, int *modes)=0
Set the current control mode for a subset of axes.
virtual bool getControlModes(int *modes)=0
Get the current control mode (multiple joints).
virtual bool getControlMode(int j, int *mode)=0
Get the current control mode.
bool initialize(int k, const int *amap)
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_dev_API
Definition: api.h:18