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
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
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 
iCub::skinManager::enable_skin_part
@ enable_skin_part
Definition: rpcSkinManager.h:23
iCub::skinManager::get_cont_gain
@ get_cont_gain
Definition: rpcSkinManager.h:18
iCub
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.
Definition: emotionInterface.h:17
iCub::skinManager::SkinManagerResponse
SkinManagerResponse
Definition: rpcSkinManager.h:28
iCub::skinManager::quit
@ quit
Definition: rpcSkinManager.h:24
iCub::skinManager::SkinManagerCommand
SkinManagerCommand
Definition: rpcSkinManager.h:12
iCub::skinManager::is_calibrating
@ is_calibrating
Definition: rpcSkinManager.h:18
iCub::skinManager::get_threshold
@ get_threshold
Definition: rpcSkinManager.h:16
iCub::skinManager::set_cont_gain
@ set_cont_gain
Definition: rpcSkinManager.h:17
iCub::skinManager::SkinManagerCommandList
const std::string SkinManagerCommandList[]
Definition: rpcSkinManager.h:34
iCub::skinManager::MAX_NEIGHBOR_DISTANCE
static const double MAX_NEIGHBOR_DISTANCE
Definition: rpcSkinManager.h:80
iCub::skinManager::get_max_neigh_dist
@ get_max_neigh_dist
Definition: rpcSkinManager.h:22
iCub::skinManager::disable_skin_part
@ disable_skin_part
Definition: rpcSkinManager.h:23
iCub::skinManager::set_pose
@ set_pose
Definition: rpcSkinManager.h:19
iCub::skinManager::skin_manager_ok
@ skin_manager_ok
Definition: rpcSkinManager.h:29
iCub::skinManager::set_smooth_filter
@ set_smooth_filter
Definition: rpcSkinManager.h:15
iCub::skinManager::set_max_neigh_dist
@ set_max_neigh_dist
Definition: rpcSkinManager.h:22
iCub::skinManager::get_smooth_factor
@ get_smooth_factor
Definition: rpcSkinManager.h:16
iCub::skinManager::SkinManagerCommandSize
@ SkinManagerCommandSize
Definition: rpcSkinManager.h:25
iCub::skinManager::set_smooth_factor
@ set_smooth_factor
Definition: rpcSkinManager.h:15
iCub::skinManager::SkinManagerCommandDesc
const std::string SkinManagerCommandDesc[]
Definition: rpcSkinManager.h:49
iCub::skinManager::get_smooth_filter
@ get_smooth_filter
Definition: rpcSkinManager.h:15
iCub::skinManager::is_skin_enabled
@ is_skin_enabled
Definition: rpcSkinManager.h:23
iCub::skinManager::skinManager
Definition: skinManager.h:228
iCub::skinManager::get_info
@ get_info
Definition: rpcSkinManager.h:18
iCub::skinManager::set_gain
@ set_gain
Definition: rpcSkinManager.h:17
iCub::skinManager::set_position
@ set_position
Definition: rpcSkinManager.h:20
iCub::skinManager::set_binarization
@ set_binarization
Definition: rpcSkinManager.h:14
iCub::skinManager::set_threshold
@ set_threshold
Definition: rpcSkinManager.h:16
string
string(REPLACE "-rdynamic" "" CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS}") include_directories($
Definition: CMakeLists.txt:9
iCub::skinManager::skin_manager_error
@ skin_manager_error
Definition: rpcSkinManager.h:30
iCub::skinManager::get_pose
@ get_pose
Definition: rpcSkinManager.h:19
iCub::skinManager::get_touch_thr
@ get_touch_thr
Definition: rpcSkinManager.h:13
iCub::skinManager::get_skin_parts
@ get_skin_parts
Definition: rpcSkinManager.h:22
iCub::skinManager::get_gain
@ get_gain
Definition: rpcSkinManager.h:17
iCub::skinManager::calibrate
@ calibrate
Definition: rpcSkinManager.h:13
iCub::skinManager::get_binarization
@ get_binarization
Definition: rpcSkinManager.h:14
iCub::skinManager::get_confidence
@ get_confidence
Definition: rpcSkinManager.h:21
iCub::skinManager::get_position
@ get_position
Definition: rpcSkinManager.h:20
iCub::skinManager::help
@ help
Definition: rpcSkinManager.h:24