ANNarchy iCub Interface 1.1.1
Loading...
Searching...
No Matches
Visual_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 the visual reader module
13
14 Parameters
15 ----------
16 iCub : ANNiCub_wrapper
17 main interface wrapper
18
19 Returns
20 -------
21
22 """
23 ...
24
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.
28
29 Parameters
30 ----------
31 iCub : ANNiCub_wrapper
32 main interface wrapper
33 name : str
34 name for the visual reader module
35 eye : str
36 character representing the selected eye (l/L; r/R; b/B)
37 fov_width : double
38 output field of view width in degree [0, 60] (input fov width: 60°). (Default value = 60)
39 fov_height : double
40 output field of view height in degree [0, 48] (input fov height: 48°). (Default value = 48)
41 img_width : int
42 output image width in pixel (input width: 320px). (Default value = 320)
43 img_height : int
44 output image height in pixel (input height: 240px). (Default value = 240)
45 fast_filter : bool
46 flag to select the filter for image upscaling; True for a faster filter. (Default value = True)
47 ini_path : str
48 Path to the "interface_param.ini"-file. (Default value = "../data/")
49
50 Returns
51 -------
52 bool
53 return True/False, indicating success/failure
54 """
55 ...
56
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.
60
61 Parameters
62 ----------
63 ANNiCub_wrapperiCub : _type_
64 main interface wrapper
65 name : str
66 name for the visual reader module
67 eye : str
68 character representing the selected eye (l/L; r/R; b/B)
69 fov_width : double
70 output field of view width in degree [0, 60] (input fov width: 60°). (Default value = 60)
71 fov_height : double
72 output field of view height in degree [0, 48] (input fov height: 48°). (Default value = 48)
73 img_width : int
74 output image width in pixel (input width: 320px). (Default value = 320)
75 img_height : int
76 output image height in pixel (input height: 240px). (Default value = 240)
77 fast_filter : bool
78 flag to select the filter for image upscaling; True for a faster filter. (Default value = True)
79 ini_path : str
80 Path to the "interface_param.ini"-file. (Default value = "../data/")
81 strip_address : str
82 gRPC server ip address. (Default value = "0.0.0.0")
83 unsignedintport : int
84 gRPC server port. (Default value = 50000)
85
86 Returns
87 -------
88 bool
89 return True/False, indicating success/failure
90 """
91 ...
92
93 def read_robot_eyes(self) -> ndarray:
94 """Return image_s from the iCub camera_s. The return type depends on the selected precision (float/double).
95
96 Parameters
97 ----------
98
99 Returns
100 -------
101 type
102 NDarray (vector[vector[precision]]): image_s from the camera_s in the form vector of image_s and as flattened image
103 """
104 ...
105
106 def retrieve_robot_eye(self) -> ndarray:
107 """Return RGB-image from one of the iCub cameras. Does not work in 'B' mode.
108
109 Parameters
110 ----------
111
112 Returns
113 -------
114 type
115 NDarrray (vector[int]): RGB-camera image flattened
116 """
117 ...
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=...)