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

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 | |
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.
| def pykdl_utils.joint_kinematics.JointKinematics.__init__ | ( | self, | |
| urdf, | |||
| base_link, | |||
| end_link, | |||
kdl_tree = None, |
|||
timeout = 1. |
|||
| ) |
Constructor.
| urdf | URDF object of robot. |
| base_link | Name of the root link of the kinematic chain. |
| end_link | Name of the end link of the kinematic chain. |
| kdl_tree | Optional KDL.Tree object to use. If None, one will be generated from the URDF. |
| timeout | Time in seconds to wait for the /joint_states topic. |
Definition at line 132 of file joint_kinematics.py.
| def pykdl_utils.joint_kinematics.JointKinematics._joint_state_cb | ( | self, | |
| msg | |||
| ) | [private] |
Joint angles listener callback.
Definition at line 146 of file joint_kinematics.py.
| def pykdl_utils.joint_kinematics.JointKinematics.get_joint_angles | ( | self, | |
wrapped = False |
|||
| ) |
Returns the current joint angle positions.
| wrapped | If 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.
| def pykdl_utils.joint_kinematics.JointKinematics.wait_for_joint_angles | ( | self, | |
timeout = 1. |
|||
| ) |
Wait until we have found the current joint angles.
| timeout | Time at which we break if we haven't recieved the angles. |
Definition at line 158 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.
Definition at line 132 of file joint_kinematics.py.