Public Member Functions | Public Attributes | List of all members
sr_hand.grasps_parser.GraspParser Class Reference

Public Member Functions

def __init__ (self)
 
def parse_tree (self, xml_filename="grasps.xml")
 
def refresh (self)
 
def write_grasp_to_file (self, grasp, xml_filename="")
 

Public Attributes

 grasps
 
 xml_path
 
 xml_tree
 

Detailed Description

Parses a XML file describing a grasp.

Definition at line 24 of file grasps_parser.py.

Constructor & Destructor Documentation

def sr_hand.grasps_parser.GraspParser.__init__ (   self)

Definition at line 30 of file grasps_parser.py.

Member Function Documentation

def sr_hand.grasps_parser.GraspParser.parse_tree (   self,
  xml_filename = "grasps.xml" 
)
parses a given tree, returns a Grasp

Keyword arguments:
xml_filename -- the filename where the grasp is defined
        if no filename is provided, then the default
        value is "grasps.xml"

Definition at line 36 of file grasps_parser.py.

def sr_hand.grasps_parser.GraspParser.refresh (   self)

Definition at line 92 of file grasps_parser.py.

def sr_hand.grasps_parser.GraspParser.write_grasp_to_file (   self,
  grasp,
  xml_filename = "" 
)

Definition at line 75 of file grasps_parser.py.

Member Data Documentation

sr_hand.grasps_parser.GraspParser.grasps

Definition at line 33 of file grasps_parser.py.

sr_hand.grasps_parser.GraspParser.xml_path

Definition at line 34 of file grasps_parser.py.

sr_hand.grasps_parser.GraspParser.xml_tree

Definition at line 32 of file grasps_parser.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