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 <vector>
10#include <yarp/os/Vocab.h>
11#include <yarp/dev/api.h>
13
14namespace yarp::dev {
15class IInteractionMode;
16class IInteractionModeRaw;
17
24} // namespace yarp::dev
25
29
37{
38public:
42 virtual ~IInteractionMode() {}
43
51
52
64 virtual yarp::dev::ReturnValue getInteractionModes(const std::vector<int>& joints, std::vector<yarp::dev::InteractionModeEnum>& modes)=0;
65
66
72 virtual yarp::dev::ReturnValue getInteractionModes(std::vector<yarp::dev::InteractionModeEnum>& modes)=0;
73
74
83
84
97 virtual yarp::dev::ReturnValue setInteractionModes(const std::vector<int>& joints, const std::vector <yarp::dev::InteractionModeEnum>& modes)=0;
98
105 virtual yarp::dev::ReturnValue setInteractionModes(const std::vector <yarp::dev::InteractionModeEnum>& modes) = 0;
106};
107
108
116{
117public:
122
123
131
132
144 virtual yarp::dev::ReturnValue getInteractionModesRaw(const std::vector<int>& joints, std::vector<yarp::dev::InteractionModeEnum>& modes)=0;
145
146
152 virtual yarp::dev::ReturnValue getInteractionModesRaw(std::vector<yarp::dev::InteractionModeEnum>& modes)=0;
153
154
163
164
177 virtual yarp::dev::ReturnValue setInteractionModesRaw(const std::vector<int>& joints, const std::vector<yarp::dev::InteractionModeEnum>& modes)=0;
178
185 virtual yarp::dev::ReturnValue setInteractionModesRaw(const std::vector<yarp::dev::InteractionModeEnum>& modes)=0;
186};
187
188#endif // YARP_DEV_IINTERACTIONMODE_H
FeatureMode mode
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
Interface settings the way the robot interacts with the environment: basic interaction types are Stif...
virtual yarp::dev::ReturnValue setInteractionModesRaw(const std::vector< int > &joints, const std::vector< yarp::dev::InteractionModeEnum > &modes)=0
Set the interaction mode of the robot for a set of joints, values can be stiff or compliant.
virtual yarp::dev::ReturnValue getInteractionModesRaw(const std::vector< int > &joints, std::vector< 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 yarp::dev::ReturnValue setInteractionModesRaw(const std::vector< 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 yarp::dev::ReturnValue setInteractionModeRaw(int axis, yarp::dev::InteractionModeEnum mode)=0
Set the interaction mode of the robot, values can be stiff or compliant.
virtual yarp::dev::ReturnValue getInteractionModesRaw(std::vector< 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 yarp::dev::ReturnValue 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 yarp::dev::ReturnValue setInteractionModes(const std::vector< int > &joints, const std::vector< yarp::dev::InteractionModeEnum > &modes)=0
Set the interaction mode of the robot for a set of joints, values can be stiff or compliant.
virtual yarp::dev::ReturnValue getInteractionMode(int axis, yarp::dev::InteractionModeEnum &mode)=0
Get the current interaction mode of the robot, values can be stiff or compliant.
virtual yarp::dev::ReturnValue setInteractionModes(const std::vector< yarp::dev::InteractionModeEnum > &modes)=0
Set the interaction mode of the robot for a all the joints, values can be stiff or compliant.
virtual yarp::dev::ReturnValue setInteractionMode(int axis, yarp::dev::InteractionModeEnum mode)=0
Set the interaction mode of the robot, values can be stiff or compliant.
virtual ~IInteractionMode()
Destructor.
virtual yarp::dev::ReturnValue getInteractionModes(std::vector< 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 yarp::dev::ReturnValue getInteractionModes(const std::vector< int > &joints, std::vector< yarp::dev::InteractionModeEnum > &modes)=0
Get the current interaction mode of the robot for a set of joints, 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.
constexpr yarp::conf::vocab32_t createVocab32(char a, char b=0, char c=0, char d=0)
Create a vocab from chars.
Definition Vocab32.h:27
The main, catch-all namespace for YARP.
Definition dirs.h:16
#define YARP_dev_API
Definition api.h:18