Public Member Functions | Public Attributes | Private Member Functions | List of all members
sr_hand.shadowhand_commander.Commander Class Reference
Inheritance diagram for sr_hand.shadowhand_commander.Commander:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self)
 
def get_hand_effort (self)
 
def get_hand_position (self)
 
def get_hand_velocity (self)
 
def get_tactile_state (self)
 
def get_tactile_type (self)
 
def move_hand (self, command)
 

Public Attributes

 grasp_interpolators
 
 hand
 
 hand_interpolation_period
 
 mutex
 

Private Member Functions

def _move_hand_interpolation (self, joints, interpolation_time=1.0)
 
def _prune_interpolators (self, joints)
 

Detailed Description

Definition at line 54 of file shadowhand_commander.py.

Constructor & Destructor Documentation

def sr_hand.shadowhand_commander.Commander.__init__ (   self)

Definition at line 56 of file shadowhand_commander.py.

Member Function Documentation

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)
Returns a dictionary with the position of each joint in degrees.

Definition at line 177 of file shadowhand_commander.py.

def sr_hand.shadowhand_commander.Commander.get_hand_velocity (   self)
Returns a dictionary with the velocity of each joint in degrees/s.

Definition at line 183 of file shadowhand_commander.py.

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.

Member Data Documentation

sr_hand.shadowhand_commander.Commander.grasp_interpolators

Definition at line 65 of file shadowhand_commander.py.

sr_hand.shadowhand_commander.Commander.hand

Definition at line 68 of file shadowhand_commander.py.

sr_hand.shadowhand_commander.Commander.hand_interpolation_period

Definition at line 72 of file shadowhand_commander.py.

sr_hand.shadowhand_commander.Commander.mutex

Definition at line 61 of file shadowhand_commander.py.


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


sr_hand
Author(s): Ugo Cupcic
autogenerated on Tue Oct 13 2020 03:55:53