Public Member Functions | Public Attributes | Private Attributes
sr_grasp.GraspStash Class Reference

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

Definition at line 111 of file __init__.py.


Member Function Documentation

Definition at line 153 of file __init__.py.

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.

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.

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.


Member Data Documentation

Definition at line 111 of file __init__.py.

Definition at line 111 of file __init__.py.


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


sr_grasp
Author(s): Mark Pitchless
autogenerated on Fri Aug 21 2015 12:26:28