pyrobot.robots.arm.
Arm
(configs, ns='')[source]¶Bases: object
This is a parent class on which the robot specific Arm classes would be built.
__init__
(configs, ns='')[source]¶Constructor for Arm parent class.
configs – configurations for arm
get_joint_angle
(joint)[source]¶Return the joint angle of the ‘joint’
joint (string) – joint name
joint angle
float
get_joint_torque
(joint)[source]¶Return the joint torque of the ‘joint’
joint (string) – joint name
joint torque
float
get_joint_velocities
()[source]¶Return the joint velocities
joint_vels
np.ndarray
get_joint_velocity
(joint)[source]¶Return the joint velocity of the ‘joint’
joint (string) – joint name
joint velocity
float
set_joint_positions
(positions, wait=True, **kwargs)[source]¶Sets the desired joint angles for all arm joints
positions (list) – list of length #of joints, angles in radians
plan (bool) – whether to use moveit to plan a path. Without planning, there is no collision checking and each joint will move to its target joint position directly.
wait (bool) – if True, it will wait until the desired joint positions are achieved
True if successful; False otherwise (timeout, etc.)
bool