Robot
- class itmobotics_sim.utils.robot.EEState(ee_link, ref_frame='world')[source]
Bases:
objectEnd Effector State
- Parameters:
ee_link (str) – name of end effector link in urdf
ref_frame (str, optional) – name of base link in urdf. Defaults to “world”.
- property ee_link: str
- property force_torque: ndarray
- static from_force_torque(force_torque, ee_link, ref_link='world')[source]
End Effector State
- Parameters:
force_torque (np.ndarray) – force and torque
ee_link (str) – name of end effector link in urdf
ref_link (str, optional) – name of base link in urdf. Defaults to “world”.
- Returns:
End Effector State
- Return type:
- static from_tf(tf, ee_link, ref_link='world')[source]
_summary_
- Parameters:
tf (SE3) – transformation
ee_link (str) – name of end effector link in urdf
ref_link (str, optional) – name of base link in urdf. Defaults to “world”.
- Returns:
End Effector State
- Return type:
- static from_twist(twist, ee_link, ref_link='world')[source]
_summary_
- Parameters:
twist (np.ndarray) – linear and angular speeds
ee_link (str) – name of end effector link in urdf
ref_link (str, optional) – name of base link in urdf. Defaults to “world”.
- Returns:
End Effector State
- Return type:
- property ref_frame: str
- property tf: SE3
- property twist: ndarray
- class itmobotics_sim.utils.robot.JointLimits(limit_positions, limit_velocities, limit_torques)[source]
Bases:
objectJoint limits class
- Parameters:
limit_positions (Tuple[np.ndarray]) – limit joints positions
limit_velocities (Tuple[np.ndarray]) – limit joints velocities
limit_torques (Tuple[np.ndarray]) – limit joints torques
- clip_joint_state(joint_state)[source]
clip joint state
Clip positions, velocities, torques by limits
- Parameters:
joint_state (JointState) – joint_state to clipping
- property limit_positions: Tuple[ndarray]
current limit_positions
- Type:
np.ndarray
- property limit_torques: Tuple[ndarray]
current limit_torques
- Type:
np.ndarray
- property limit_velocities: Tuple[ndarray]
current limit_velocities
- Type:
np.ndarray
- property num_joints: int
number of joints
- Type:
int
- class itmobotics_sim.utils.robot.JointState(num_joints)[source]
Bases:
object_summary_
- property joint_positions: ndarray
- property joint_torques: ndarray
- property joint_velocities: ndarray
- property num_joints: int
- class itmobotics_sim.utils.robot.Motion(ee_link, num_joints)[source]
Bases:
objectClass description
- Parameters:
ee_link (str) – end link
num_joints (int) – num of joints
- static from_joint_state(joint_state)[source]
- Parameters:
joint_state (JointState) – JointState
- Return type:
- static from_states(joint_state, ee_state)[source]
- Parameters:
joint_state (JointState) – JointState
ee_state (EEState) – End Effector State
- Return type:
- property joint_state: JointState
- class itmobotics_sim.utils.robot.Robot(urdf_filename, base_transform=SE3(array([[1., 0., 0., 0.], [0., 1., 0., 0.], [0., 0., 1., 0.], [0., 0., 0., 1.]])))[source]
Bases:
ABCRobot base class
- Parameters:
urdf_filename (str) – path to robot URDF
base_transform (SE3, optional) – base transform from world to robot
- ee_state(ee_link, ref_frame='world')[source]
EE state of robot
- Parameters:
ee_link (str) – name of end effector link in urdf
ref_link (str, optional) – name of base link in urdf. Defaults to “world”.
- Returns:
_description_
- Return type:
- abstract property joint_limits: JointLimits
- property joint_state: JointState
- property num_joints: int
- set_control(target_motion, type_ctrl)[source]
- Parameters:
target_motion (Motion) –
type_ctrl (RobotControllerType) –
- Returns:
return True if success
- Return type:
bool