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 23 of file grasps_parser.py.

Constructor & Destructor Documentation

◆ __init__()

def sr_hand.grasps_parser.GraspParser.__init__ (   self)

Definition at line 29 of file grasps_parser.py.

Member Function Documentation

◆ parse_tree()

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 35 of file grasps_parser.py.

◆ refresh()

def sr_hand.grasps_parser.GraspParser.refresh (   self)

Definition at line 91 of file grasps_parser.py.

◆ write_grasp_to_file()

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

Definition at line 74 of file grasps_parser.py.

Member Data Documentation

◆ grasps

sr_hand.grasps_parser.GraspParser.grasps

Definition at line 32 of file grasps_parser.py.

◆ xml_path

sr_hand.grasps_parser.GraspParser.xml_path

Definition at line 33 of file grasps_parser.py.

◆ xml_tree

sr_hand.grasps_parser.GraspParser.xml_tree

Definition at line 31 of file grasps_parser.py.


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


sr_hand
Author(s): Ugo Cupcic
autogenerated on Mon Feb 28 2022 23:52:24