Public Member Functions | Private Member Functions | Private Attributes
pykdl_utils.joint_kinematics.JointKinematics Class Reference

Kinematics class which subscribes to the /joint_states topic, recording the current joint states for the kinematic chain designated. More...

Inheritance diagram for pykdl_utils.joint_kinematics.JointKinematics:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
 Constructor.
def get_joint_angles
 Returns the current joint angle positions.
def get_joint_efforts
 Returns the current joint efforts.
def get_joint_velocities
 Returns the current joint velocities.
def wait_for_joint_angles
 Wait until we have found the current joint angles.

Private Member Functions

def _joint_state_cb
 Joint angles listener callback.

Private Attributes

 _joint_angles
 _joint_efforts
 _joint_state_inds
 _joint_velocities

Detailed Description

Kinematics class which subscribes to the /joint_states topic, recording the current joint states for the kinematic chain designated.

Definition at line 123 of file joint_kinematics.py.


Constructor & Destructor Documentation

def pykdl_utils.joint_kinematics.JointKinematics.__init__ (   self,
  urdf,
  base_link,
  end_link,
  kdl_tree = None,
  timeout = 1. 
)

Constructor.

Parameters:
urdfURDF object of robot.
base_linkName of the root link of the kinematic chain.
end_linkName of the end link of the kinematic chain.
kdl_treeOptional KDL.Tree object to use. If None, one will be generated from the URDF.
timeoutTime in seconds to wait for the /joint_states topic.

Definition at line 132 of file joint_kinematics.py.


Member Function Documentation

Joint angles listener callback.

Definition at line 146 of file joint_kinematics.py.

Returns the current joint angle positions.

Parameters:
wrappedIf False returns the raw encoded positions, if True returns the angles with the forearm and wrist roll in the range -pi to pi

Definition at line 175 of file joint_kinematics.py.

Returns the current joint efforts.

Definition at line 194 of file joint_kinematics.py.

Returns the current joint velocities.

Definition at line 186 of file joint_kinematics.py.

Wait until we have found the current joint angles.

Parameters:
timeoutTime at which we break if we haven't recieved the angles.

Definition at line 158 of file joint_kinematics.py.


Member Data Documentation

Definition at line 132 of file joint_kinematics.py.

Definition at line 132 of file joint_kinematics.py.

Definition at line 132 of file joint_kinematics.py.

Definition at line 132 of file joint_kinematics.py.


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


pykdl_utils
Author(s): Kelsey Hawkins
autogenerated on Fri Aug 28 2015 11:05:34