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
yarp::dev::ImplementControlMode
Definition: ImplementControlMode.h:33
yarp::dev::IControlMode::getControlMode
virtual bool getControlMode(int j, int *mode)=0
Get the current control mode.
yarp::dev::IControlMode::setControlModes
virtual bool setControlModes(const int n_joint, const int *joints, int *modes)=0
Set the current control mode for a subset of axes.
yarp::dev::IControlMode::getControlModes
virtual bool getControlModes(int *modes)=0
Get the current control mode (multiple joints).
yarp::dev::impl::FixedSizeBuffersManager< int >
yarp::dev::ImplementControlMode::initialize
bool initialize(int k, const int *amap)
Definition: ImplementControlMode.cpp:25
yarp::dev::IControlModeRaw
Interface for setting control mode in control board.
Definition: IControlMode.h:104
yarp::dev::IControlMode
Interface for setting control mode in control board.
Definition: IControlMode.h:28
yarp::dev::ImplementControlMode::ImplementControlMode
ImplementControlMode(IControlModeRaw *v)
Definition: ImplementControlMode.cpp:19
yarp::dev::ImplementControlMode::uninitialize
bool uninitialize()
Definition: ImplementControlMode.cpp:43
IControlMode.h
YARP_dev_API
#define YARP_dev_API
Definition: api.h:19
yarp::dev::IControlMode::setControlMode
virtual bool setControlMode(const int j, const int mode)=0
Set the current control mode.
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::dev::ImplementControlMode::~ImplementControlMode
~ImplementControlMode()
Definition: ImplementControlMode.cpp:38
api.h