-
Notifications
You must be signed in to change notification settings - Fork 2
/
joint_dispatcherTypes.hpp
58 lines (48 loc) · 1.7 KB
/
joint_dispatcherTypes.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef joint_dispatcher_TYPES_HPP
#define joint_dispatcher_TYPES_HPP
#include <vector>
#include <string>
namespace joint_dispatcher {
struct OutputConfiguration
{
std::string name;
/** The name of the joints. Resize to a desired size, but leaving the
* names empty, if you do not want to use joint names
*/
std::vector<std::string> jointNames;
};
struct SingleDispatchConfiguration
{
/** Name of the input port */
std::string input;
/** Selection of joints on the input port, by index. If you want to
* select by name use input_selection_by_name instead
*/
std::vector<int> input_selection_by_index;
/** Selection of joints on the input port, by name. If you want to
* select by index, use input_selection_by_index instead
*/
std::vector<std::string> input_selection_by_name;
/** Name of the output port */
std::string output;
/** Selection of joints on the output port, by index. If you want to
* select by name use output_selection_by_name instead
*/
std::vector<int> output_selection_by_index;
/** Selection of joints on the output port, by name. If you want to
* select by index, use output_selection_by_index instead
*/
std::vector<std::string> output_selection_by_name;
/*
* If true, do not trigger immediate write
* to the output port, i.e. wait for another dispatch to do so
*/
bool defer_output = false;
};
struct DefaultJointConfiguration
{
std::string jointName;
double position;
};
}
#endif