Functions | Variables
add-obj-to-hrpproject Namespace Reference

Functions

def add_attr
 <<< copied from xacro/src/xacro.py
def add_object_to_projectfile
def append_collision_node
def append_item_node
def append_prop_node
def fixed_writexml
 >>> copied from xacro/src/xacro.py Better pretty printing of xml Taken from http://ronrothman.com/public/leftbraned/xml-dom-minidom-toprettyxml-and-silly-whitespace/

Variables

 add_collision = False
tuple argc = len(argvs)
 argvs = sys.argv
tuple doc = xml.dom.minidom.parse(infile)
tuple f = open(outfile, 'w')
list infile = argvs[1]
list objlist = argvs[3:]
list objname = params[0]
list outfile = argvs[2]
tuple params = obj.split(',')
 parse add objects
 robot = False
string rotation = '1 0 0 0'
string translation = '0 0 0'
list url = params[1]

Function Documentation

def add-obj-to-hrpproject.add_attr (   nd,
  name,
  value 
)

<<< copied from xacro/src/xacro.py

Definition at line 51 of file add-obj-to-hrpproject.py.

def add-obj-to-hrpproject.add_object_to_projectfile (   objname,
  url,
  robot = False,
  add_collision = True,
  translation = '0 0 0',
  rotation = '1 0 0 0' 
)

Definition at line 97 of file add-obj-to-hrpproject.py.

def add-obj-to-hrpproject.append_collision_node (   pelem,
  obj1,
  obj2 
)

Definition at line 80 of file add-obj-to-hrpproject.py.

def add-obj-to-hrpproject.append_item_node (   pelem,
  objname,
  url,
  robot = False,
  translation = '0 0 0',
  rotation = '1 0 0 0' 
)

Definition at line 64 of file add-obj-to-hrpproject.py.

def add-obj-to-hrpproject.append_prop_node (   pelem,
  name,
  value 
)

Definition at line 57 of file add-obj-to-hrpproject.py.

def add-obj-to-hrpproject.fixed_writexml (   self,
  writer,
  indent = "",
  addindent = "",
  newl = "" 
)

>>> copied from xacro/src/xacro.py Better pretty printing of xml Taken from http://ronrothman.com/public/leftbraned/xml-dom-minidom-toprettyxml-and-silly-whitespace/

Definition at line 18 of file add-obj-to-hrpproject.py.


Variable Documentation

tuple add-obj-to-hrpproject::add_collision = False

Definition at line 141 of file add-obj-to-hrpproject.py.

tuple add-obj-to-hrpproject::argc = len(argvs)

Definition at line 118 of file add-obj-to-hrpproject.py.

add-obj-to-hrpproject::argvs = sys.argv

Definition at line 117 of file add-obj-to-hrpproject.py.

Definition at line 130 of file add-obj-to-hrpproject.py.

tuple add-obj-to-hrpproject::f = open(outfile, 'w')

Definition at line 153 of file add-obj-to-hrpproject.py.

list add-obj-to-hrpproject::infile = argvs[1]

Definition at line 126 of file add-obj-to-hrpproject.py.

list add-obj-to-hrpproject::objlist = argvs[3:]

Definition at line 128 of file add-obj-to-hrpproject.py.

list add-obj-to-hrpproject::objname = params[0]

Definition at line 136 of file add-obj-to-hrpproject.py.

list add-obj-to-hrpproject::outfile = argvs[2]

Definition at line 127 of file add-obj-to-hrpproject.py.

tuple add-obj-to-hrpproject::params = obj.split(',')

parse add objects

Definition at line 134 of file add-obj-to-hrpproject.py.

tuple add-obj-to-hrpproject::robot = False

Definition at line 138 of file add-obj-to-hrpproject.py.

string add-obj-to-hrpproject::rotation = '1 0 0 0'

Definition at line 147 of file add-obj-to-hrpproject.py.

string add-obj-to-hrpproject::translation = '0 0 0'

Definition at line 144 of file add-obj-to-hrpproject.py.

list add-obj-to-hrpproject::url = params[1]

Definition at line 137 of file add-obj-to-hrpproject.py.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


hrpsys_ros_bridge_tutorials
Author(s): Kei Okada
autogenerated on Tue Jul 23 2013 11:51:58