Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
fetch_arm_control.arm.Arm Class Reference

List of all members.

Public Member Functions

def __init__
def close_gripper
def get_ee_state
def get_gripper_state
def get_ik_for_ee
def get_joint_state
def get_movement
def get_time_to_pose
def is_executing
def move_to_joints
def move_to_joints_plan
def move_to_pose
def open_gripper
def relax_arm
def reset_movement_history
def un_relax_arm
def update

Private Member Functions

def _joint_states_cb
def _record_arm_movement
def _send_gripper_command
def _solve_ik
def _update_gripper_state

Static Private Member Functions

def _get_distance_bw_poses
def _get_time_bw_poses

Private Attributes

 _arm_movement
 _controller_client
 _ee_name
 _gravity_comp_controllers
 _gripper_client
 _gripper_state
 _is_executing
 _joint_names
 _l_gripper_joint_name
 _last_ee_pose
 _last_unstable_time
 _lock
 _move_group
 _movement_buffer_size
 _non_gravity_comp_controllers
 _planning_scene
 _r_gripper_joint_name
 _received_joint_names
 _received_joint_poses
 _tf_listener
 _traj_action_client

Detailed Description

Interface for controlling mid-level operations of the arm.
Interfaces with MoveIt and joint trajectory controllers to move the
arm to locations using different planning strategies.

Definition at line 46 of file arm.py.


Constructor & Destructor Documentation

def fetch_arm_control.arm.Arm.__init__ (   self,
  tf_listener 
)
Args:
    tf_listener (TransformListener)

Definition at line 51 of file arm.py.


Member Function Documentation

def fetch_arm_control.arm.Arm._get_distance_bw_poses (   pose0,
  pose1 
) [static, private]
Returns the dissimilarity between two end-effector poses

Args:
    pose0 (PoseStamped)
    pose1 (PoseStamped)

Returns:
    float

Definition at line 481 of file arm.py.

def fetch_arm_control.arm.Arm._get_time_bw_poses (   pose0,
  pose1,
  velocity = 0.2 
) [static, private]
Determines how much time should be allowed for moving between
pose0 and pose1 at velocity.

Args:
    pose0 (PoseStamped)
    pose1 (PoseStamped)
    velocity (float, optional): Defaults to 0.2.

Returns:
    float: How long (in seconds) to allow for moving between
pose0 and pose1 and velocity.

Definition at line 461 of file arm.py.

def fetch_arm_control.arm.Arm._joint_states_cb (   self,
  msg 
) [private]
Callback function that saves the joint positions when a
joint_states message is received

Args:
    msg (JointState): current joint positions for arm

Definition at line 514 of file arm.py.

def fetch_arm_control.arm.Arm._record_arm_movement (   self,
  movement 
) [private]
Records the sensed arm movement

Args:
    movement (float): dissimilarity between current pose and
                previous pose

Definition at line 589 of file arm.py.

def fetch_arm_control.arm.Arm._send_gripper_command (   self,
  pos = 0.115,
  eff = 30.0,
  wait = True 
) [private]
Sets the position of the gripper

Args:
    pose (float): Usually get this from echoing /joint_states
    eff (float)
    wait (bool)

Definition at line 558 of file arm.py.

def fetch_arm_control.arm.Arm._solve_ik (   self,
  ee_pose 
) [private]
Gets the IK solution for end effector pose

Args:
    ee_pose (PoseStamped)

Returns:
    Pose

Definition at line 533 of file arm.py.

Updates gripper state based on joint positions

Definition at line 573 of file arm.py.

def fetch_arm_control.arm.Arm.close_gripper (   self,
  pos = 0.0,
  eff = 100.0,
  wait = True 
)
Closes gripper

Args:
    pos (float)
    eff (float)
    wait (bool)

Definition at line 328 of file arm.py.

def fetch_arm_control.arm.Arm.get_ee_state (   self,
  ref_frame = 'base_link' 
)
Returns end effector pose for the arm

Args:
    ref_frame (st, optional): Reference frame that you
                      want the pose return in

Returns:
    PoseStamped | None

Definition at line 194 of file arm.py.

Returns current gripper state

Returns:
    GripperState.OPEN/CLOSED

Definition at line 309 of file arm.py.

def fetch_arm_control.arm.Arm.get_ik_for_ee (   self,
  ee_pose,
  seed = None 
)
Finds the IK solution for given end effector pose

Args:
    ee_pose (PoseStamped)

Returns:
    [float]

Definition at line 251 of file arm.py.

def fetch_arm_control.arm.Arm.get_joint_state (   self,
  joint_names = None 
)
Returns position(s) for the requested or all arm joints

Args:
    joint_names ([str], optional):

Returns:
    [float]

Definition at line 222 of file arm.py.

Returns cumulative movement in recent history

Returns:
    [float]

Definition at line 448 of file arm.py.

def fetch_arm_control.arm.Arm.get_time_to_pose (   self,
  target_pose 
)
Returns the time to get to the arm pose held in target_pose.

Args:
    target_pose (PoseStamped|None): A Pose holding the pose to
move to, or None if the arm should not move.

Returns:
    float|None: How long (in seconds) to allow for moving
arm to the pose in target_pose, or None if the arm
will not move.

Definition at line 409 of file arm.py.

Whether or not there is an ongoing action execution on the arm

Returns:
    bool

Definition at line 435 of file arm.py.

def fetch_arm_control.arm.Arm.move_to_joints (   self,
  joints,
  times_to_joints,
  velocities = None 
)
Moves the arm to the desired joint angles directly without planning

Args:
    joints ([float])
    time_to_joint ([float])
    velocities ([float])

Definition at line 373 of file arm.py.

def fetch_arm_control.arm.Arm.move_to_joints_plan (   self,
  joints,
  velocities = None 
)
Moves the arm to the desired joint angles using moveit

Args:
    joints ([float])

Definition at line 339 of file arm.py.

def fetch_arm_control.arm.Arm.move_to_pose (   self,
  ee_pose 
)
Move arm to specified pose

Args:
    ee_pose (Pose)

Returns:
    bool

Definition at line 270 of file arm.py.

def fetch_arm_control.arm.Arm.open_gripper (   self,
  pos = 0.15,
  eff = 100.0,
  wait = True 
)
Opens gripper

Args:
    pos (float)
    eff (float)
    wait (bool)

Definition at line 317 of file arm.py.

Turns on gravity compensation controller and turns
off other controllers

Definition at line 152 of file arm.py.

Clears the saved history of arm movements

Definition at line 443 of file arm.py.

Turns on gravity compensation controller and turns
off other controllers

Definition at line 173 of file arm.py.

Periodical update for one arm

Definition at line 144 of file arm.py.


Member Data Documentation

Definition at line 54 of file arm.py.

Definition at line 54 of file arm.py.

Definition at line 54 of file arm.py.

Definition at line 54 of file arm.py.

Definition at line 54 of file arm.py.

Definition at line 54 of file arm.py.

Definition at line 54 of file arm.py.

Definition at line 54 of file arm.py.

Definition at line 54 of file arm.py.

Definition at line 54 of file arm.py.

Definition at line 54 of file arm.py.

Definition at line 54 of file arm.py.

Definition at line 54 of file arm.py.

Definition at line 54 of file arm.py.

Definition at line 54 of file arm.py.

Definition at line 54 of file arm.py.

Definition at line 54 of file arm.py.

Definition at line 54 of file arm.py.

Definition at line 54 of file arm.py.

Definition at line 54 of file arm.py.

Definition at line 54 of file arm.py.


The documentation for this class was generated from the following file:


fetch_arm_control
Author(s): Sarah Elliott
autogenerated on Thu Jun 6 2019 18:27:17