iCub-main
rpcSkinManager.h
Go to the documentation of this file.
1 #ifndef __RPC_SKIN_MANAGER_H__
2 #define __RPC_SKIN_MANAGER_H__
3 
4 #include <string>
5 
6 namespace iCub{
7 
8 namespace skinManager{
9 
10 // Enum containing all the commands accepted by the rpc port of the SkinManager.
11 // The last element of the enum (SkinManagerCommandSize) represents the total number of commands accepted by the module.
12 typedef enum {
26 
27 // Enum containing the responses to the the set commands
28 typedef enum{
32 
33 // the order of the command in this list MUST correspond to the order of the enum SkinManagerCommand
34 const std::string SkinManagerCommandList[] = {
35  "calib", "get touch thr",
36  "set binarization", "get binarization",
37  "set smooth filter", "get smooth filter", "set smooth factor",
38  "get smooth factor", "set threshold", "get threshold",
39  "set gain", "get gain", "set contact gain",
40  "get contact gain", "is calibrating", "get info",
41  "get pose", "set pose",
42  "get position", "set position",
43  "get confidence",
44  "get neigh dist", "set neigh dist", "get skin",
45  "enable skin", "disable skin", "is skin enabled",
46  "help", "quit"};
47 
48 // the order in SkinManagerCommandDesc must correspond to the order in SkinManagerCommandList
49 const std::string SkinManagerCommandDesc[] = {
50  "calibrate the skin, i.e. reset the baseline (for 5 sec no touch should occur)",
51  "get touch thresholds (i.e. 95 percentile)",
52  "enable or disable the binarization filter (255 touch, 0 no touch)",
53  "get the binarization filter state (on, off)",
54  "enable or disable the smooth filter",
55  "get the smooth filter state (on, off)",
56  "set the value of the smooth factor (in [0,1])",
57  "get the smooth factor value",
58  "set the safety threshold that is added to the touch thresholds (int in [0, 254])",
59  "get the safety threshold that is added to the touch threshold",
60  "set the compensation gain",
61  "get the compensation gain",
62  "set the contact compensation gain",
63  "get the contact compensation gain",
64  "tell whether the skin calibration is in progress",
65  "get information about the module",
66  "get taxel pose(s) with input params: skin part, taxel index (if taxel index is not specified return all taxel positions)",
67  "set taxel pose(s) with input params: skin part, taxel index, pose(s) (if taxel index is not specified set all taxel positions)",
68  "get taxel position(s) with input params: skin part, taxel index (if taxel index is not specified return all taxel positions)",
69  "set taxel position(s) with input params: skin part, taxel index, pose(s) (if taxel index is not specified set all taxel positions)",
70  "get taxel pose confidence with input params: skin part, taxel index",
71  "get the max neighbor distance",
72  "set the max neighbor distance",
73  "get the list of the skin parts",
74  "enable the specified skin part",
75  "disable the specified skin part",
76  "check whether the specified skin part is enabled",
77  "get this list",
78  "quit the module"};
79 
80 static const double MAX_NEIGHBOR_DISTANCE = 0.012;
81 
82 }
83 
84 }
85 
86 #endif
87 
const std::string SkinManagerCommandDesc[]
const std::string SkinManagerCommandList[]
static const double MAX_NEIGHBOR_DISTANCE
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.