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 the visual reader module
16 iCub : ANNiCub_wrapper
17 main interface wrapper
25 def init(self, iCub: ANNiCub_wrapper, name: str, eye: str, fov_width: float = ..., fov_height: float = ...,
26 img_width: int = ..., img_height: int = ..., fast_filter=..., ini_path: str = ...) -> bool:
27 """Initialize Visual reader with given parameters.
31 iCub : ANNiCub_wrapper
32 main interface wrapper
34 name for the visual reader module
36 character representing the selected eye (l/L; r/R; b/B)
38 output field of view width in degree [0, 60] (input fov width: 60°). (Default value = 60)
40 output field of view height in degree [0, 48] (input fov height: 48°). (Default value = 48)
42 output image width in pixel (input width: 320px). (Default value = 320)
44 output image height in pixel (input height: 240px). (Default value = 240)
46 flag to select the filter for image upscaling; True for a faster filter. (Default value = True)
48 Path to the "interface_param.ini"-file. (Default value = "../data/")
53 return True/False, indicating success/failure
57 def init_grpc(self, iCub: ANNiCub_wrapper, name: str, eye: str, fov_width: float = ..., fov_height: float = ..., img_width: int = ...,
58 img_height: int = ..., fast_filter=..., ini_path: str = ..., ip_address: str = ..., port: int = ...) -> bool:
59 """Initialize the visual reader with given parameters, including the gRPC based connection.
63 ANNiCub_wrapperiCub : _type_
64 main interface wrapper
66 name for the visual reader module
68 character representing the selected eye (l/L; r/R; b/B)
70 output field of view width in degree [0, 60] (input fov width: 60°). (Default value = 60)
72 output field of view height in degree [0, 48] (input fov height: 48°). (Default value = 48)
74 output image width in pixel (input width: 320px). (Default value = 320)
76 output image height in pixel (input height: 240px). (Default value = 240)
78 flag to select the filter for image upscaling; True for a faster filter. (Default value = True)
80 Path to the "interface_param.ini"-file. (Default value = "../data/")
82 gRPC server ip address. (Default value = "0.0.0.0")
84 gRPC server port. (Default value = 50000)
89 return True/False, indicating success/failure
94 """Return image_s from the iCub camera_s. The return type depends on the selected precision (float/double).
102 NDarray (vector[vector[precision]]): image_s from the camera_s in the form vector of image_s and as flattened image
107 """Return RGB-image from one of the iCub cameras. Does not work in 'B' mode.
115 NDarrray (vector[int]): RGB-camera image flattened
ndarray retrieve_robot_eye(self)
None __init__(cls, *args, **kwargs)
ndarray read_robot_eyes(self)
bool init_grpc(self, ANNiCub_wrapper iCub, str name, str eye, float fov_width=..., float fov_height=..., int img_width=..., int img_height=..., fast_filter=..., str ini_path=..., str ip_address=..., int port=...)
NoReturn close(self, ANNiCub_wrapper iCub)
bool init(self, ANNiCub_wrapper iCub, str name, str eye, float fov_width=..., float fov_height=..., int img_width=..., int img_height=..., fast_filter=..., str ini_path=...)