YARP
Yet Another Robot Platform
ImplementControlMode.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_IMPLEMENTCONTROLMODE_H
10 #define YARP_DEV_IMPLEMENTCONTROLMODE_H
11 
12 #include <yarp/dev/IControlMode.h>
13 #include <yarp/dev/api.h>
14 
15 namespace yarp {
16  namespace dev {
17  class ImplementControlMode;
18  }
19 }
20 
21 namespace yarp {
22 namespace dev {
23 namespace impl {
24 
25 template <typename T>
26 class FixedSizeBuffersManager;
27 
28 } // namespace impl
29 } // namespace dev
30 } // namespace yarp
31 
33 {
34  void *helper;
37 
38 public:
39  bool initialize(int k, const int *amap);
40  bool uninitialize();
43  bool getControlMode(int j, int *f) override;
44  bool getControlModes(int *modes) override;
45  bool getControlModes(const int n_joint, const int *joints, int *modes) override;
46  bool setControlMode(const int j, const int mode) override;
47  bool setControlModes(const int n_joint, const int *joints, int *modes) override;
48  bool setControlModes(int *modes) override;
49 };
50 
51 #endif // YARP_DEV_IMPLEMENTCONTROLMODE_H
Interface for setting control mode in control board.
Definition: IControlMode.h:104
Interface for setting control mode in control board.
Definition: IControlMode.h:28
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: environment.h:18
#define YARP_dev_API
Definition: api.h:19