ANNarchy iCub Interface 1.1.1
Loading...
Searching...
No Matches
Kinematic_Writer.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: 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_jointangles(self, radians = ...)-> ndarray:
79 """Get current joint angles of active kinematic chain -> radians.
80
81 Parameters
82 ----------
83 radians : bool
84 control the format (radians/degrees) of the returned angles
85
86 Returns
87 -------
88 NDarray
89 joint angles radians/degrees
90 """
91 ...
92
93 def init(self, iCub: ANNiCub_wrapper, name: str, part: str, version: float, ini_path: str = ..., offline_mode=...) -> bool:
94 """Initialize the Kinematic Writer with given parameters.
95
96 Parameters
97 ----------
98 iCub : ANNiCub_wrapper
99 main interface wrapper
100 name : str
101 individual name for the kinematic writer
102 part : str
103 string representing the robot part, has to match iCub part naming {left_(arm/leg), right_(arm/leg), head, torso}
104 version : float
105 version of the robot hardware
106 ini_path : str
107 path to the interface ini-file. (Default value = "../data/")
108 offline_mode : bool
109 flag, if iCub network is offline. (Default value = False)
110
111 Returns
112 -------
113 bool
114 return True/False, indicating success/failure
115 """
116 ...
117
118 def init_grpc(self, iCub: ANNiCub_wrapper, name: str, part: str, version: float, ini_path: str = ..., ip_address: str = ..., port: int = ..., offline_mode=...) -> bool:
119 """Initialize the Kinematic Writer with given parameters, including the gRPC based connection.
120
121 Parameters
122 ----------
123 iCub : ANNiCub_wrapper
124 main interface wrapper
125 name : str
126 individual name for the kinematic writer
127 part : str
128 string representing the robot part, has to match iCub part naming {left_(arm/leg), right_(arm/leg), head, torso}
129 version : float
130 version of the robot hardware
131 ini_path : str
132 path to the interface ini-file. (Default value = "../data/")
133 ip_address : str
134 gRPC server ip address. (Default value = "0.0.0.0")
135 port : unsigned int
136 gRPC server port. (Default value = 50025)
137 offline_mode : bool
138 flag, if iCub network is offline. (Default value = False)
139
140 Returns
141 -------
142 bool
143 return True/False, indicating success/failure
144 """
145 ...
146
147 def release_links(self, release_joints) -> Any:
148 """Release links of kinematic chain
149
150 Parameters
151 ----------
152 release_joints : list
153 joints that should be released
154
155 Returns
156 -------
157
158 """
159 ...
160
161 def set_jointangles(self, joint_angles, radians = ...) -> ndarray:
162 """Set joint angles for forward kinematic in offline mode.
163
164 Parameters
165 ----------
166 joint_angles : list/NDarray
167 joint angles in radians/degrees
168 radians : bool
169 control the format (radians/degrees) of the given/returned angles
170
171 Returns
172 -------
173 NDarray
174 actual set joint angles in radians/degrees -> evaluted constraints
175 """
176 ...
177
178 def solve_InvKin(self, position, blocked_links = ...) -> ndarray:
179 """Compute the joint configuration for a given 3D End-Effector position (Inverse Kinematics).
180
181 Parameters
182 ----------
183 position : list
184 target cartesian position for the end-effector/hand
185 blocked_links : list
186 links of the kinematic chain, which should be blocked for inverse kinematic in online mode (Default value = [])
187 IGNORED in offline mode -> use setter for block links and joint angles
188
189 Returns
190 -------
191 NDarray
192 active joint positions (in radians)
193 """
194 ...
bool init_grpc(self, ANNiCub_wrapper iCub, str name, str part, float version, str ini_path=..., str ip_address=..., int port=..., offline_mode=...)
ndarray solve_InvKin(self, position, blocked_links=...)
bool init(self, ANNiCub_wrapper iCub, str name, str part, float version, str ini_path=..., offline_mode=...)
ndarray set_jointangles(self, joint_angles, radians=...)