1from typing
import NoReturn
2from numpy
import ndarray
3from .iCub_Interface
import ANNiCub_wrapper
9 def __init__(cls, *args, **kwargs) -> None: ...
11 def close(self, iCub: ANNiCub_wrapper) -> NoReturn:
12 """Close and clean skin reader.
16 iCub : ANNiCub_wrapper
17 main interface wrapper
26 """Return tactile data for the upper arm skin.
34 NDarray (vector[vector[double]]): tactile data of the arm part of the skin, values: non-normalized: 0..255 ; normalized: 0..1.0
39 """Return size of tactile data for the upper arm skin.
47 unsigned int: size of sensor data vector -> upper arm section
52 """Return tactile data for the forearm skin.
60 NDarray (vector[vector[double]]): tactile data of the forearm part of the skin, values: non-normalized: 0..255 ; normalized: 0..1.0
65 """Return size of tactile data for the forearm skin
73 unsigned int: size of sensor data vector -> forearm section
78 """Return tactile data for the hand skin.
86 NDarray (vector[vector[double]]): tactile data of the hand part of the skin, values: non-normalized: 0..255 ; normalized: 0..1.0
91 """Return size of tactile data for the hand skin.
99 unsigned int: size of sensor data vector -> hand section
104 """Return the taxel positions given by the ini files from the icub-main repo.
109 skin part to load the data for ("arm", "forearm", "hand")
114 NDarray (vector[vector[double]]): Vector containing taxel positions -> reference frame depending on skin part
118 def init(self, iCub: ANNiCub_wrapper, name: str, arm: str, norm=..., ini_path: str = ...) -> bool:
119 """Initialize skin reader with given parameters.
123 iCub : ANNiCub_wrapper
124 main interface wrapper
126 individual name for the skin reader module
128 character to choose the arm side (r/R for right; l/L for left)
130 if true, the sensor data are returned normalized (iCub [0..255]; normalized [0..1]). (Default value = True)
132 Path to the "interface_param.ini"-file. (Default value = "../data/")
137 return True/False, indicating success/failure
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.
146 iCub : ANNiCub_wrapper
147 main interface wrapper
149 individual name for the skin reader module
151 character to choose the arm side (r/R for right; l/L for left)
153 if true, the sensor data are returned normalized (iCub [0..255]; normalized [0..1]). (Default value = True)
155 Path to the "interface_param.ini"-file. (Default value = "../data/")
157 gRPC server ip address. (Default value = "0.0.0.0")
159 gRPC server port. (Default value = 50015)
160 iCub: ANNiCub_wrapper :
165 return True/False, indicating success/failure
170 """Read tactile data for upper arm skin.
177 NDarray : vector[double]
178 tactile data of the arm part of the skin, values: non-normalized: 0..255 ; normalized: 0..1.0
183 """Read tactile data for forearm skin.
190 NDarray : vector[double]
191 tactile data of the forearm part of the skin, values: non-normalized: 0..255 ; normalized: 0..1.0
196 """Read tactile data for hand skin.
203 NDarray : vector[double]
204 tactile data of the hand part of the skin, values: non-normalized: 0..255 ; normalized: 0..1.0
209 """Read sensor data for one step
217 return True/False, indicating success/failure
ndarray get_tactile_arm(self)
bool init(self, ANNiCub_wrapper iCub, str name, str arm, norm=..., str ini_path=...)
NoReturn close(self, ANNiCub_wrapper iCub)
ndarray read_skin_hand(self)
ndarray read_skin_forearm(self)
bool init_grpc(self, ANNiCub_wrapper iCub, str name, str arm, norm=..., str ini_path=..., str ip_address=..., int port=...)
ndarray get_tactile_forearm(self)
ndarray get_taxel_pos(self, str skin_part)
ndarray get_tactile_hand(self)
ndarray read_skin_arm(self)
int get_tactile_forearm_size(self)
int get_tactile_hand_size(self)
None __init__(cls, *args, **kwargs)
int get_tactile_arm_size(self)