Definition at line 54 of file shadowhand_commander.py.
def sr_hand.shadowhand_commander.Commander.__init__ |
( |
|
self | ) |
|
def sr_hand.shadowhand_commander.Commander._move_hand_interpolation |
( |
|
self, |
|
|
|
joints, |
|
|
|
interpolation_time = 1.0 |
|
) |
| |
|
private |
Remove the coinciding joints from the currently running interpolators.
It actually removes the joints from the 'grasp_to' list of the interpolator.
@param joints - Dictionary of joint names in the keys and angles in
degrees in the values.
@param interpolation_time - A float. Interpolation time in seconds.
Definition at line 117 of file shadowhand_commander.py.
def sr_hand.shadowhand_commander.Commander._prune_interpolators |
( |
|
self, |
|
|
|
joints |
|
) |
| |
|
private |
Remove the coinciding joints from the currently running interpolators.
It actually removes the joints from the 'grasp_to' list of the interpolator.
@param joints - Dictionary of joint names in the keys and angles in
degrees in the values.
Definition at line 160 of file shadowhand_commander.py.
def sr_hand.shadowhand_commander.Commander.get_hand_effort |
( |
|
self | ) |
|
Returns a dictionary with the effort of each joint. Currently in ADC units, as no calibration
is performed on the strain gauges.
Definition at line 189 of file shadowhand_commander.py.
def sr_hand.shadowhand_commander.Commander.get_hand_position |
( |
|
self | ) |
|
def sr_hand.shadowhand_commander.Commander.get_hand_velocity |
( |
|
self | ) |
|
def sr_hand.shadowhand_commander.Commander.get_tactile_state |
( |
|
self | ) |
|
Returns an object containing tactile data. The structure of the data is different for every tactile_type .
Definition at line 202 of file shadowhand_commander.py.
def sr_hand.shadowhand_commander.Commander.get_tactile_type |
( |
|
self | ) |
|
Returns a string indicating the type of tactile sensors present. Possible values are: PST, biotac, UBI0 .
Definition at line 196 of file shadowhand_commander.py.
def sr_hand.shadowhand_commander.Commander.move_hand |
( |
|
self, |
|
|
|
command |
|
) |
| |
Move the Shadow Hand.
This call is non blocking. It will return before the motion has finished.
If called with interpolation time of 0.0 the joints will move to the target position
at maximum velocity (i.e. the max. vel. allowed by the position controller for that joint)
If called with interpolation time greater than self.hand_interpolation_period,
a separate thread will deal with the interpolation time and will keep
sending targets to the hand until the last target is sent.
If move_hand() is called again before the previous movements have finished,
the new call will override only the conciding joints. The others will keep moving
to their previous targets at their previous velocity.
@param command - Dictionary of joint names in the keys and angles in
degrees in the values. The key interpolation_time gives the time in seconds that
the movement will last.
Definition at line 77 of file shadowhand_commander.py.
sr_hand.shadowhand_commander.Commander.grasp_interpolators |
sr_hand.shadowhand_commander.Commander.hand |
sr_hand.shadowhand_commander.Commander.hand_interpolation_period |
sr_hand.shadowhand_commander.Commander.mutex |
The documentation for this class was generated from the following file: