Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
hrl_pr2_arms.pr2_arm_joint_traj.PR2ArmJointTraj Class Reference

Class for interacting with the JointTrajectory controller on the PR2. More...

Inheritance diagram for hrl_pr2_arms.pr2_arm_joint_traj.PR2ArmJointTraj:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def get_ep
 Returns the current equilibrium point.
def interpolate_ep
 Interpolates from one ep to the other using the trajectory specified by t.
def set_ep
 Commands joint angles to a single position.

Public Attributes

 joint_action_client

Private Member Functions

def _ctrl_state_cb

Private Attributes

 _state_sub

Detailed Description

Class for interacting with the JointTrajectory controller on the PR2.

Controller type: robot_mechanism_controllers/JointTrajectoryActionController The equilibrium points are lists of joint angles.

Definition at line 50 of file pr2_arm_joint_traj.py.


Constructor & Destructor Documentation

def hrl_pr2_arms.pr2_arm_joint_traj.PR2ArmJointTraj.__init__ (   self,
  arm_side,
  urdf,
  base_link = 'torso_lift_link',
  end_link = '%s_gripper_tool_frame',
  controller_name = '/%s_arm_controller',
  kdl_tree = None,
  timeout = 1. 
)

Definition at line 51 of file pr2_arm_joint_traj.py.


Member Function Documentation

def hrl_pr2_arms.pr2_arm_joint_traj.PR2ArmJointTraj._ctrl_state_cb (   self,
  ctrl_state 
) [private]

Definition at line 67 of file pr2_arm_joint_traj.py.

Returns the current equilibrium point.

Returns:
equilibrium point

Definition at line 84 of file pr2_arm_joint_traj.py.

def hrl_pr2_arms.pr2_arm_joint_traj.PR2ArmJointTraj.interpolate_ep (   self,
  ep_a,
  ep_b,
  t_vals 
)

Interpolates from one ep to the other using the trajectory specified by t.

Parameters:
ep_aThe starting EP.
ep_bThe ending EP.
t_valsList of values in [0, 1] representing where in the linear interpolation of ep_a to ep_b to place that point.
Returns:
np.array of size len(t_vals)xlen(ep_*) trajectory.

Definition at line 114 of file pr2_arm_joint_traj.py.

def hrl_pr2_arms.pr2_arm_joint_traj.PR2ArmJointTraj.set_ep (   self,
  jep,
  duration,
  delay = 0.0 
)

Commands joint angles to a single position.

Parameters:
jepList of joint params to command the the arm to reach
durationLength of time command should take
delayTime to wait before starting joint command

Definition at line 97 of file pr2_arm_joint_traj.py.


Member Data Documentation

Definition at line 51 of file pr2_arm_joint_traj.py.

Definition at line 51 of file pr2_arm_joint_traj.py.


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


hrl_pr2_arms
Author(s): Kelsey Hawkins, Advisor: Prof. Charlie Kemp, Lab: Healthcare Robotics Lab
autogenerated on Wed Nov 27 2013 11:41:30