YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
IInteractionMode.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_IINTERACTIONMODE_H
7#define YARP_DEV_IINTERACTIONMODE_H
8
9#include <yarp/os/Vocab.h>
10#include <yarp/dev/api.h>
11
12namespace yarp::dev {
13class IInteractionMode;
14class IInteractionModeRaw;
15
22} // namespace yarp::dev
23
28
29
30
38{
39public:
43 virtual ~IInteractionMode() {}
44
51 virtual bool getInteractionMode(int axis, yarp::dev::InteractionModeEnum* mode)=0;
52
53
65 virtual bool getInteractionModes(int n_joints, int *joints, yarp::dev::InteractionModeEnum* modes)=0;
66
67
74
75
83 virtual bool setInteractionMode(int axis, yarp::dev::InteractionModeEnum mode)=0;
84
85
98 virtual bool setInteractionModes(int n_joints, int *joints, yarp::dev::InteractionModeEnum* modes)=0;
99
107};
108
109
117{
118public:
123
124
132
133
145 virtual bool getInteractionModesRaw(int n_joints, int *joints, yarp::dev::InteractionModeEnum* modes)=0;
146
147
154
155
164
165
178 virtual bool setInteractionModesRaw(int n_joints, int *joints, yarp::dev::InteractionModeEnum* modes)=0;
179
187};
188
189#endif // YARP_DEV_IINTERACTIONMODE_H
constexpr yarp::conf::vocab32_t VOCAB_INTERACTION_MODES
constexpr yarp::conf::vocab32_t VOCAB_INTERACTION_MODE_GROUP
constexpr yarp::conf::vocab32_t VOCAB_INTERACTION_MODE
constexpr yarp::conf::vocab32_t VOCAB_INTERFACE_INTERACTION_MODE
Interface settings the way the robot interacts with the environment: basic interaction types are Stif...
virtual bool getInteractionModesRaw(yarp::dev::InteractionModeEnum *modes)=0
Get the current interaction mode of the robot for a all the joints, values can be stiff or compliant.
virtual bool getInteractionModesRaw(int n_joints, int *joints, yarp::dev::InteractionModeEnum *modes)=0
Get the current interaction mode of the robot for a set of joints, values can be stiff or compliant.
virtual bool setInteractionModeRaw(int axis, yarp::dev::InteractionModeEnum mode)=0
Set the interaction mode of the robot, values can be stiff or compliant.
virtual bool setInteractionModesRaw(yarp::dev::InteractionModeEnum *modes)=0
Set the interaction mode of the robot for a all the joints, values can be stiff or compliant.
virtual ~IInteractionModeRaw()
Destructor.
virtual bool setInteractionModesRaw(int n_joints, int *joints, yarp::dev::InteractionModeEnum *modes)=0
Set the interaction mode of the robot for a set of joints, values can be stiff or compliant.
virtual bool getInteractionModeRaw(int axis, yarp::dev::InteractionModeEnum *mode)=0
Get the current interaction mode of the robot, values can be stiff or compliant.
Interface settings the way the robot interacts with the environment: basic interaction types are Stif...
virtual bool getInteractionMode(int axis, yarp::dev::InteractionModeEnum *mode)=0
Get the current interaction mode of the robot, values can be stiff or compliant.
virtual bool getInteractionModes(int n_joints, int *joints, yarp::dev::InteractionModeEnum *modes)=0
Get the current interaction mode of the robot for a set of joints, values can be stiff or compliant.
virtual bool getInteractionModes(yarp::dev::InteractionModeEnum *modes)=0
Get the current interaction mode of the robot for a all the joints, values can be stiff or compliant.
virtual bool setInteractionModes(yarp::dev::InteractionModeEnum *modes)=0
Set the interaction mode of the robot for a all the joints, values can be stiff or compliant.
virtual bool setInteractionModes(int n_joints, int *joints, yarp::dev::InteractionModeEnum *modes)=0
Set the interaction mode of the robot for a set of joints, values can be stiff or compliant.
virtual ~IInteractionMode()
Destructor.
virtual bool setInteractionMode(int axis, yarp::dev::InteractionModeEnum mode)=0
Set the interaction mode of the robot, values can be stiff or compliant.
std::int32_t vocab32_t
Definition numeric.h:78
For streams capable of holding different kinds of content, check what they actually have.
Definition jointData.cpp:13
constexpr yarp::conf::vocab32_t createVocab32(char a, char b=0, char c=0, char d=0)
Create a vocab from chars.
Definition Vocab.h:27
The main, catch-all namespace for YARP.
Definition dirs.h:16
#define YARP_dev_API
Definition api.h:18