1from typing
import Any, NoReturn
2from numpy
import ndarray
3from .iCub_Interface
import ANNiCub_wrapper
9 def __init__(cls, *args, **kwargs) -> None: ...
12 """Block specific set of joints in the kinematic chain.
17 joints that should be blocked
25 def close(self, iCub: ANNiCub_wrapper) -> NoReturn:
30 iCub : ANNiCub_wrapper
31 main interface wrapper
40 """Return the DOF of the kinematic chain
48 int: degree of freedom (DOF) of the kinematic chain
53 """Get joints being part of active kinematic chain.
61 vector with the active joints
74 vector containing the blocked links
79 """Get End-Effector cartesian position.
87 Cartesian position of the end-effector in robot reference frame
92 """Get current joint angles of active kinematic chain -> radians.
97 control the format (radians/degrees) of the returned angles
101 joint angles in radians
106 """Get cartesian position for the given joint.
111 joint number of the robot part
116 Cartesian position of the joint in robot reference frame
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
125 iCub : ANNiCub_wrapper
126 main interface wrapper
128 individual name for the kinematic reader
130 string representing the robot part, has to match iCub part naming {left_(arm/leg), right_(arm/leg), head, torso}
132 version of the robot hardware
134 path to the interface ini-file. (Default value = "../data/")
136 flag, if iCub network is offline. (Default value = False)
141 return True/False, indicating success/failure
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.
151 iCub : ANNiCub_wrapper
152 main interface wrapper
154 individual name for the kinematic reader
156 string representing the robot part, has to match iCub part naming {left_(arm/leg), right_(arm/leg), head, torso}
158 version of the robot hardware
160 path to the interface ini-file. (Default value = "../data/")
162 gRPC server ip address. (Default value = "0.0.0.0")
164 gRPC server port. (Default value = 50020)
166 flag, if iCub network is offline. (Default value = False)
171 return True/False, indicating success/failure
176 """Release links of kinematic chain
180 release_joints : list
181 joints that should be released
190 """Set joint angles for forward kinematic in offline mode.
194 joint_angles : list/NDarray
195 joint angles in radians
197 if true, the angles are given in radians, otherwise the angles should be given in degrees
202 actual set joint angles in radians/degrees -> evaluted constraints
ndarray get_handposition(self)
ndarray get_blocked_links(self)
NoReturn close(self, ANNiCub_wrapper iCub)
ndarray get_jointposition(self, int joint)
Any release_links(self, release_joints)
ndarray get_DOF_links(self)
None __init__(cls, *args, **kwargs)
bool init_grpc(self, ANNiCub_wrapper iCub, str name, str part, float version, str ini_path=..., str ip_address=..., int port=..., offline_mode=...)
Any block_links(self, blocked_joints)
bool init(self, ANNiCub_wrapper iCub, str name, str part, float version, str ini_path=..., offline_mode=...)
ndarray get_jointangles(self, radians=True)
ndarray set_jointangles(self, joint_angles, radians=True)