ANNarchy iCub Interface 1.1.1
Loading...
Searching...
No Matches
Skin_Reader.pyi
1from typing import NoReturn
2from numpy import ndarray
3from .iCub_Interface import ANNiCub_wrapper
4
5
7 """ """
8 @classmethod
9 def __init__(cls, *args, **kwargs) -> None: ...
10
11 def close(self, iCub: ANNiCub_wrapper) -> NoReturn:
12 """Close and clean skin reader.
13
14 Parameters
15 ----------
16 iCub : ANNiCub_wrapper
17 main interface wrapper
18
19 Returns
20 -------
21
22 """
23 ...
24
25 def get_tactile_arm(self) -> ndarray:
26 """Return tactile data for the upper arm skin.
27
28 Parameters
29 ----------
30
31 Returns
32 -------
33 type
34 NDarray (vector[vector[double]]): tactile data of the arm part of the skin, values: non-normalized: 0..255 ; normalized: 0..1.0
35 """
36 ...
37
38 def get_tactile_arm_size(self) -> int:
39 """Return size of tactile data for the upper arm skin.
40
41 Parameters
42 ----------
43
44 Returns
45 -------
46 type
47 unsigned int: size of sensor data vector -> upper arm section
48 """
49 ...
50
51 def get_tactile_forearm(self) -> ndarray:
52 """Return tactile data for the forearm skin.
53
54 Parameters
55 ----------
56
57 Returns
58 -------
59 type
60 NDarray (vector[vector[double]]): tactile data of the forearm part of the skin, values: non-normalized: 0..255 ; normalized: 0..1.0
61 """
62 ...
63
64 def get_tactile_forearm_size(self) -> int:
65 """Return size of tactile data for the forearm skin
66
67 Parameters
68 ----------
69
70 Returns
71 -------
72 type
73 unsigned int: size of sensor data vector -> forearm section
74 """
75 ...
76
77 def get_tactile_hand(self) -> ndarray:
78 """Return tactile data for the hand skin.
79
80 Parameters
81 ----------
82
83 Returns
84 -------
85 type
86 NDarray (vector[vector[double]]): tactile data of the hand part of the skin, values: non-normalized: 0..255 ; normalized: 0..1.0
87 """
88 ...
89
90 def get_tactile_hand_size(self) -> int:
91 """Return size of tactile data for the hand skin.
92
93 Parameters
94 ----------
95
96 Returns
97 -------
98 type
99 unsigned int: size of sensor data vector -> hand section
100 """
101 ...
102
103 def get_taxel_pos(self, skin_part: str) -> ndarray:
104 """Return the taxel positions given by the ini files from the icub-main repo.
105
106 Parameters
107 ----------
108 skin_part: str :
109 skin part to load the data for ("arm", "forearm", "hand")
110
111 Returns
112 -------
113 type
114 NDarray (vector[vector[double]]): Vector containing taxel positions -> reference frame depending on skin part
115 """
116 ...
117
118 def init(self, iCub: ANNiCub_wrapper, name: str, arm: str, norm=..., ini_path: str = ...) -> bool:
119 """Initialize skin reader with given parameters.
120
121 Parameters
122 ----------
123 iCub : ANNiCub_wrapper
124 main interface wrapper
125 name : str
126 individual name for the skin reader module
127 arm : str
128 character to choose the arm side (r/R for right; l/L for left)
129 norm : bool
130 if true, the sensor data are returned normalized (iCub [0..255]; normalized [0..1]). (Default value = True)
131 ini_path : str
132 Path to the "interface_param.ini"-file. (Default value = "../data/")
133
134 Returns
135 -------
136 bool
137 return True/False, indicating success/failure
138 """
139 ...
140
141 def init_grpc(self, iCub: ANNiCub_wrapper, name: str, arm: str, norm=..., ini_path: str = ..., ip_address: str = ..., port: int = ...) -> bool:
142 """Initialize the skin reader with given parameters, including the gRPC based connection.
143
144 Parameters
145 ----------
146 iCub : ANNiCub_wrapper
147 main interface wrapper
148 name : str
149 individual name for the skin reader module
150 arm : str
151 character to choose the arm side (r/R for right; l/L for left)
152 norm : bool
153 if true, the sensor data are returned normalized (iCub [0..255]; normalized [0..1]). (Default value = True)
154 ini_path : str
155 Path to the "interface_param.ini"-file. (Default value = "../data/")
156 ip_address : str
157 gRPC server ip address. (Default value = "0.0.0.0")
158 port : unsigned int
159 gRPC server port. (Default value = 50015)
160 iCub: ANNiCub_wrapper :
161
162 Returns
163 -------
164 bool
165 return True/False, indicating success/failure
166 """
167 ...
168
169 def read_skin_arm(self) -> ndarray:
170 """Read tactile data for upper arm skin.
171
172 Parameters
173 ----------
174
175 Returns
176 -------
177 NDarray : vector[double]
178 tactile data of the arm part of the skin, values: non-normalized: 0..255 ; normalized: 0..1.0
179 """
180 ...
181
182 def read_skin_forearm(self) -> ndarray:
183 """Read tactile data for forearm skin.
184
185 Parameters
186 ----------
187
188 Returns
189 -------
190 NDarray : vector[double]
191 tactile data of the forearm part of the skin, values: non-normalized: 0..255 ; normalized: 0..1.0
192 """
193 ...
194
195 def read_skin_hand(self) -> ndarray:
196 """Read tactile data for hand skin.
197
198 Parameters
199 ----------
200
201 Returns
202 -------
203 NDarray : vector[double]
204 tactile data of the hand part of the skin, values: non-normalized: 0..255 ; normalized: 0..1.0
205 """
206 ...
207
208 def read_tactile(self) -> bool:
209 """Read sensor data for one step
210
211 Parameters
212 ----------
213
214 Returns
215 -------
216 bool
217 return True/False, indicating success/failure
218 """
219 ...
bool init(self, ANNiCub_wrapper iCub, str name, str arm, norm=..., str ini_path=...)
NoReturn close(self, ANNiCub_wrapper iCub)
bool init_grpc(self, ANNiCub_wrapper iCub, str name, str arm, norm=..., str ini_path=..., str ip_address=..., int port=...)