WUT Velma robot API
|
Classes | |
class | VelmaInterface |
ROS-based, Python interface class for WUT Velma Robot. More... | |
Functions | |
def | getSymmetricalJointName (joint_name) |
For joint names that refer to joints that are symmetrical (left or right), get the name of the another joint. More... | |
def | symmetricalConfiguration (q_map) |
Get configuration based on the input configuration such that all joint positions are symmetrical. More... | |
def | isConfigurationClose (q_map1, q_map2, tolerance=0.1, allow_subset=False) |
Check if two configurations of robot body are close within tolerance. More... | |
def | isHeadConfigurationClose (q1, q2, tolerance=0.1) |
Check if two configurations of robot neck are close within tolerance. More... | |
def | isHandConfigurationClose (current_q, dest_q, tolerance=0.1) |
Check if two configurations of robot hand are close within tolerance. More... | |
def | splitTrajectory (joint_trajectory, max_traj_len) |
Split a long trajectory into a number of shorter trajectories. More... | |
def velma_common.velma_interface.getSymmetricalJointName | ( | joint_name | ) |
For joint names that refer to joints that are symmetrical (left or right), get the name of the another joint.
joint_name | string: name of joint. |
Definition at line 64 of file velma_interface.py.
def velma_common.velma_interface.isConfigurationClose | ( | q_map1, | |
q_map2, | |||
tolerance = 0.1 , |
|||
allow_subset = False |
|||
) |
Check if two configurations of robot body are close within tolerance.
q_map1 | dictionary: Dictionary {name:position} that maps joint names to their positions. |
q_map2 | dictionary: Dictionary {name:position} that maps joint names to their positions. |
KeyError | Either q_map1 or q_map2 dictionaries does not contain required key, i.e. one of robot body joint names. |
Definition at line 97 of file velma_interface.py.
def velma_common.velma_interface.isHandConfigurationClose | ( | current_q, | |
dest_q, | |||
tolerance = 0.1 |
|||
) |
Check if two configurations of robot hand are close within tolerance.
current_q | tuple: 8-tuple of hand joints positions. |
dest_q | tuple: 4-tuple of hand DOFs positions. |
Definition at line 132 of file velma_interface.py.
def velma_common.velma_interface.isHeadConfigurationClose | ( | q1, | |
q2, | |||
tolerance = 0.1 |
|||
) |
Check if two configurations of robot neck are close within tolerance.
q1 | tuple: 2-tuple of neck joints positions. |
q2 | tuple: 2-tuple of neck joints positions. |
Definition at line 121 of file velma_interface.py.
def velma_common.velma_interface.splitTrajectory | ( | joint_trajectory, | |
max_traj_len | |||
) |
Split a long trajectory into a number of shorter trajectories.
joint_trajectory | trajectory_msgs.msg.JointTrajectory: A joint trajectory to be splitted. |
max_traj_len | int: Maximum number of nodes in the result trajectory. |
Definition at line 146 of file velma_interface.py.
def velma_common.velma_interface.symmetricalConfiguration | ( | q_map | ) |
Get configuration based on the input configuration such that all joint positions are symmetrical.
q_map | Dictionary: configuration {joint_name:joint_position}. |
Definition at line 79 of file velma_interface.py.