YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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
12namespace yarp::dev {
13class ImplementControlMode;
14}
15
16namespace yarp::dev::impl {
17
18template <typename T>
19class FixedSizeBuffersManager;
20
21} // namespace yarp::dev::impl
22
24{
25 void *helper;
28
29public:
30 bool initialize(int k, const int *amap);
31 bool uninitialize();
34 bool getControlMode(int j, int *f) override;
35 bool getControlModes(int *modes) override;
36 bool getControlModes(const int n_joint, const int *joints, int *modes) override;
37 bool setControlMode(const int j, const int mode) override;
38 bool setControlModes(const int n_joint, const int *joints, int *modes) override;
39 bool setControlModes(int *modes) override;
40};
41
42#endif // YARP_DEV_IMPLEMENTCONTROLMODE_H
Interface for setting control mode in control board.
Interface for setting control mode in control board.
bool setControlModes(const int n_joint, const int *joints, int *modes) override
Set the current control mode for a subset of axes.
bool initialize(int k, const int *amap)
bool getControlModes(int *modes) override
Get the current control mode (multiple joints).
bool setControlMode(const int j, const int mode) override
Set the current control mode.
bool getControlMode(int j, int *f) override
Get the current control mode.
A manager of fixed size buffers in multi-thread environment.
For streams capable of holding different kinds of content, check what they actually have.
The main, catch-all namespace for YARP.
Definition dirs.h:16
#define YARP_dev_API
Definition api.h:18