Public Member Functions | |
def | __init__ |
def | as_yaml |
def | get_all |
def | get_grasp |
def | get_grasp_array |
def | get_grasp_at |
def | load_all |
def | load_yaml |
def | load_yaml_file |
def | put_grasp |
def | save_yaml_file |
def | size |
Public Attributes | |
grasps_file | |
Private Attributes | |
_store |
Interface to the list of grasps stored in the system. Clients should all use this library so that it can deal with the detail of the undelying storage.
Definition at line 105 of file __init__.py.
def sr_grasp.GraspStash.__init__ | ( | self | ) |
Definition at line 111 of file __init__.py.
def sr_grasp.GraspStash.as_yaml | ( | self | ) |
Definition at line 153 of file __init__.py.
def sr_grasp.GraspStash.get_all | ( | self | ) |
Return list of all grasps.
Definition at line 119 of file __init__.py.
def sr_grasp.GraspStash.get_grasp | ( | self, | |
grasp_index | |||
) |
Return a single grasp from the stash from it's id field.
Definition at line 128 of file __init__.py.
def sr_grasp.GraspStash.get_grasp_array | ( | self | ) |
Definition at line 123 of file __init__.py.
def sr_grasp.GraspStash.get_grasp_at | ( | self, | |
idx | |||
) |
Return the Grasp at the given index.
Definition at line 132 of file __init__.py.
def sr_grasp.GraspStash.load_all | ( | self | ) |
Load all configured sources of grasps into the stash.
Definition at line 149 of file __init__.py.
def sr_grasp.GraspStash.load_yaml | ( | self, | |
data | |||
) |
Load a set of grasps from a YAML object. Throws exceptions on errors.
Definition at line 168 of file __init__.py.
def sr_grasp.GraspStash.load_yaml_file | ( | self, | |
fname | |||
) |
Load a set of grasps from a YAML file.
Definition at line 156 of file __init__.py.
def sr_grasp.GraspStash.put_grasp | ( | self, | |
grasp | |||
) |
Stash the given grasp, using it's id field, which must be set.
Definition at line 140 of file __init__.py.
def sr_grasp.GraspStash.save_yaml_file | ( | self, | |
fname = "" |
|||
) |
Definition at line 174 of file __init__.py.
def sr_grasp.GraspStash.size | ( | self | ) |
Return the number of grasps.
Definition at line 136 of file __init__.py.
sr_grasp.GraspStash::_store [private] |
Definition at line 111 of file __init__.py.
Definition at line 111 of file __init__.py.