ocra-recipes
Doxygen documentation for the ocra-recipes repository
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ocra
include
ocra
control
TaskYarpInterfaceVocab.h
Go to the documentation of this file.
1
#ifndef TASK_YARP_INTERFACE_VOCAB_H
2
#define TASK_YARP_INTERFACE_VOCAB_H
3
4
#include <iostream>
5
#include <vector>
6
#include <Eigen/Dense>
7
#include <Eigen/Lgsm>
8
#include <yarp/os/Bottle.h>
9
10
#include <algorithm>
11
#include <string>
12
#include <regex>
13
#include <iterator>
14
15
namespace
ocra
16
{
17
18
enum
TASK_MESSAGE
19
{
20
// Indicators
21
OCRA_FAILURE
= 0,
22
OCRA_SUCCESS
,
23
OCRA_WARNING
,
24
// Getters
25
GET_CURRENT_STATE
,
26
GET_STIFFNESS
,
27
GET_DAMPING
,
28
GET_WEIGHTS
,
29
GET_ACTIVITY_STATUS
,
30
GET_DIMENSION
,
31
GET_TYPE
,
32
GET_TYPE_AS_STRING
,
33
GET_NAME
,
34
GET_CONTROL_PORT_NAMES
,
35
GET_TASK_PORT_NAME
,
36
GET_TASK_ERROR
,
37
GET_TASK_STATE
,
38
GET_DESIRED_TASK_STATE
,
39
GET_TASK_POSITION
,
40
GET_DESIRED_TASK_POSITION
,
41
// Setters
42
SET_STIFFNESS
,
43
SET_STIFFNESS_VECTOR
,
44
SET_STIFFNESS_MATRIX
,
45
SET_DAMPING
,
46
SET_DAMPING_VECTOR
,
47
SET_DAMPING_MATRIX
,
48
SET_WEIGHT
,
49
SET_WEIGHT_VECTOR
,
50
SET_DESIRED_TASK_STATE
,
51
SET_DESIRED_TASK_POSITION
,
52
// Other
53
ACTIVATE
,
54
DEACTIVATE
,
55
TASK_IS_ACTIVATED
,
56
TASK_IS_DEACTIVATED
,
57
OPEN_CONTROL_PORTS
,
58
CLOSE_CONTROL_PORTS
,
59
HELP
60
61
};
62
63
class
TaskMessageHandler
64
{
65
public
:
66
static
const
std::vector<std::string>
TASK_MESSAGES_AS_STRINGS
;
67
68
static
std::string
taskManagerMessageTagToString
(
TASK_MESSAGE
msg);
69
static
std::string
removeUnderscores
(std::string s);
70
static
TASK_MESSAGE
stringToTaskManagerMessageTag
(std::string testString);
71
};
72
73
74
75
}
// namespace ocra
76
#endif // TASK_YARP_INTERFACE_VOCAB_H
ocra::SET_DAMPING_MATRIX
Definition:
TaskYarpInterfaceVocab.h:47
ocra::ACTIVATE
Definition:
TaskYarpInterfaceVocab.h:53
ocra::GET_STIFFNESS
Definition:
TaskYarpInterfaceVocab.h:26
ocra::SET_WEIGHT_VECTOR
Definition:
TaskYarpInterfaceVocab.h:49
ocra::GET_TYPE_AS_STRING
Definition:
TaskYarpInterfaceVocab.h:32
ocra::CLOSE_CONTROL_PORTS
Definition:
TaskYarpInterfaceVocab.h:58
ocra::SET_STIFFNESS_MATRIX
Definition:
TaskYarpInterfaceVocab.h:44
ocra::SET_DESIRED_TASK_STATE
Definition:
TaskYarpInterfaceVocab.h:50
ocra::GET_DAMPING
Definition:
TaskYarpInterfaceVocab.h:27
ocra::GET_DESIRED_TASK_STATE
Definition:
TaskYarpInterfaceVocab.h:38
ocra::OPEN_CONTROL_PORTS
Definition:
TaskYarpInterfaceVocab.h:57
ocra::GET_TASK_ERROR
Definition:
TaskYarpInterfaceVocab.h:36
ocra::TaskMessageHandler
Definition:
TaskYarpInterfaceVocab.h:63
ocra::GET_TASK_POSITION
Definition:
TaskYarpInterfaceVocab.h:39
ocra::GET_CONTROL_PORT_NAMES
Definition:
TaskYarpInterfaceVocab.h:34
ocra::SET_DAMPING
Definition:
TaskYarpInterfaceVocab.h:45
ocra
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
Definition:
ContactAvoidanceConstraint.h:14
ocra::GET_TYPE
Definition:
TaskYarpInterfaceVocab.h:31
ocra::TaskMessageHandler::taskManagerMessageTagToString
static std::string taskManagerMessageTagToString(TASK_MESSAGE msg)
Definition:
TaskYarpInterfaceVocab.cpp:47
ocra::TASK_IS_ACTIVATED
Definition:
TaskYarpInterfaceVocab.h:55
ocra::OCRA_WARNING
Definition:
TaskYarpInterfaceVocab.h:23
ocra::TASK_IS_DEACTIVATED
Definition:
TaskYarpInterfaceVocab.h:56
ocra::GET_TASK_STATE
Definition:
TaskYarpInterfaceVocab.h:37
ocra::SET_STIFFNESS_VECTOR
Definition:
TaskYarpInterfaceVocab.h:43
ocra::GET_DIMENSION
Definition:
TaskYarpInterfaceVocab.h:30
ocra::HELP
Definition:
TaskYarpInterfaceVocab.h:59
ocra::TaskMessageHandler::stringToTaskManagerMessageTag
static TASK_MESSAGE stringToTaskManagerMessageTag(std::string testString)
Definition:
TaskYarpInterfaceVocab.cpp:62
ocra::OCRA_SUCCESS
Definition:
TaskYarpInterfaceVocab.h:22
ocra::GET_NAME
Definition:
TaskYarpInterfaceVocab.h:33
ocra::GET_TASK_PORT_NAME
Definition:
TaskYarpInterfaceVocab.h:35
ocra::TaskMessageHandler::removeUnderscores
static std::string removeUnderscores(std::string s)
Definition:
TaskYarpInterfaceVocab.cpp:55
ocra::OCRA_FAILURE
Definition:
TaskYarpInterfaceVocab.h:21
ocra::GET_CURRENT_STATE
Definition:
TaskYarpInterfaceVocab.h:25
ocra::TaskMessageHandler::TASK_MESSAGES_AS_STRINGS
static const std::vector< std::string > TASK_MESSAGES_AS_STRINGS
Definition:
TaskYarpInterfaceVocab.h:66
ocra::GET_DESIRED_TASK_POSITION
Definition:
TaskYarpInterfaceVocab.h:40
ocra::GET_WEIGHTS
Definition:
TaskYarpInterfaceVocab.h:28
ocra::DEACTIVATE
Definition:
TaskYarpInterfaceVocab.h:54
ocra::GET_ACTIVITY_STATUS
Definition:
TaskYarpInterfaceVocab.h:29
ocra::TASK_MESSAGE
TASK_MESSAGE
Definition:
TaskYarpInterfaceVocab.h:18
ocra::SET_DESIRED_TASK_POSITION
Definition:
TaskYarpInterfaceVocab.h:51
ocra::SET_WEIGHT
Definition:
TaskYarpInterfaceVocab.h:48
ocra::SET_STIFFNESS
Definition:
TaskYarpInterfaceVocab.h:42
ocra::SET_DAMPING_VECTOR
Definition:
TaskYarpInterfaceVocab.h:46
Generated on Wed Mar 21 2018 09:00:39 for ocra-recipes by
1.8.11