ANNarchy iCub Interface 1.1.1
Loading...
Searching...
No Matches
Kinematic_Reader.pyi
1from typing import Any, 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 block_links(self, blocked_joints) -> Any:
12 """Block specific set of joints in the kinematic chain.
13
14 Parameters
15 ----------
16 blocked_joints : list
17 joints that should be blocked
18
19 Returns
20 -------
21
22 """
23 ...
24
25 def close(self, iCub: ANNiCub_wrapper) -> NoReturn:
26 """Close the module
27
28 Parameters
29 ----------
30 iCub : ANNiCub_wrapper
31 main interface wrapper
32
33 Returns
34 -------
35
36 """
37 ...
38
39 def get_DOF(self) -> int:
40 """Return the DOF of the kinematic chain
41
42 Parameters
43 ----------
44
45 Returns
46 -------
47 type
48 int: degree of freedom (DOF) of the kinematic chain
49 """
50 ...
51
52 def get_DOF_links(self) -> ndarray:
53 """Get joints being part of active kinematic chain.
54
55 Parameters
56 ----------
57
58 Returns
59 -------
60 NDarray
61 vector with the active joints
62 """
63 ...
64
65 def get_blocked_links(self) -> ndarray:
66 """Get blocked links.
67
68 Parameters
69 ----------
70
71 Returns
72 -------
73 NDarray
74 vector containing the blocked links
75 """
76 ...
77
78 def get_handposition(self) -> ndarray:
79 """Get End-Effector cartesian position.
80
81 Parameters
82 ----------
83
84 Returns
85 -------
86 NDarray
87 Cartesian position of the end-effector in robot reference frame
88 """
89 ...
90
91 def get_jointangles(self, radians=True) -> ndarray:
92 """Get current joint angles of active kinematic chain -> radians.
93
94 Parameters
95 ----------
96 radians : bool
97 control the format (radians/degrees) of the returned angles
98 Returns
99 -------
100 NDarray
101 joint angles in radians
102 """
103 ...
104
105 def get_jointposition(self, joint: int) -> ndarray:
106 """Get cartesian position for the given joint.
107
108 Parameters
109 ----------
110 joint : unsigned int
111 joint number of the robot part
112
113 Returns
114 -------
115 NDarray
116 Cartesian position of the joint in robot reference frame
117 """
118 ...
119
120 def init(self, iCub: ANNiCub_wrapper, name: str, part: str, version: float, ini_path: str = ..., offline_mode=...) -> bool:
121 """Initialize the Kinematic Reader with given parameters
122
123 Parameters
124 ----------
125 iCub : ANNiCub_wrapper
126 main interface wrapper
127 name : str
128 individual name for the kinematic reader
129 part : str
130 string representing the robot part, has to match iCub part naming {left_(arm/leg), right_(arm/leg), head, torso}
131 version : float
132 version of the robot hardware
133 ini_path : str
134 path to the interface ini-file. (Default value = "../data/")
135 offline_mode : bool
136 flag, if iCub network is offline. (Default value = False)
137
138 Returns
139 -------
140 bool
141 return True/False, indicating success/failure
142 """
143 ...
144
145 def init_grpc(self, iCub: ANNiCub_wrapper, name: str, part: str, version: float, ini_path: str = ...,
146 ip_address: str = ..., port: int = ..., offline_mode=...) -> bool:
147 """Initialize the Kinematic Reader with given parameters, including the gRPC based connection.
148
149 Parameters
150 ----------
151 iCub : ANNiCub_wrapper
152 main interface wrapper
153 name : str
154 individual name for the kinematic reader
155 part : str
156 string representing the robot part, has to match iCub part naming {left_(arm/leg), right_(arm/leg), head, torso}
157 version : float
158 version of the robot hardware
159 ini_path : str
160 path to the interface ini-file. (Default value = "../data/")
161 ip_address : str
162 gRPC server ip address. (Default value = "0.0.0.0")
163 port : unsigned int
164 gRPC server port. (Default value = 50020)
165 offline_mode : bool
166 flag, if iCub network is offline. (Default value = False)
167
168 Returns
169 -------
170 bool
171 return True/False, indicating success/failure
172 """
173 ...
174
175 def release_links(self, release_joints) -> Any:
176 """Release links of kinematic chain
177
178 Parameters
179 ----------
180 release_joints : list
181 joints that should be released
182
183 Returns
184 -------
185
186 """
187 ...
188
189 def set_jointangles(self, joint_angles, radians=True) -> ndarray:
190 """Set joint angles for forward kinematic in offline mode.
191
192 Parameters
193 ----------
194 joint_angles : list/NDarray
195 joint angles in radians
196 radians : bool
197 if true, the angles are given in radians, otherwise the angles should be given in degrees
198
199 Returns
200 -------
201 NDarray
202 actual set joint angles in radians/degrees -> evaluted constraints
203 """
204 ...
bool init_grpc(self, ANNiCub_wrapper iCub, str name, str part, float version, str ini_path=..., str ip_address=..., int port=..., offline_mode=...)
bool init(self, ANNiCub_wrapper iCub, str name, str part, float version, str ini_path=..., offline_mode=...)
ndarray set_jointangles(self, joint_angles, radians=True)