convertToBinaries.py
Go to the documentation of this file.
00001 #!/usr/bin/python
00002 import os
00003 import sys
00004 import subprocess
00005 
00006 if __name__ == '__main__':
00007         if len(sys.argv) != 2:
00008                 print "Usage: " + sys.argv[0] + " [directory]"
00009                 sys.exit(-1)
00010         path= sys.argv[1]
00011         dirList=os.listdir(path)
00012         for fname in dirList:
00013                 path1 = path + fname
00014                 path2 = path + fname + "b"
00015                 cmd = "rosrun ivcon ivcon " + path1 + " " + path2
00016                 proc = subprocess.Popen([cmd], stdout=subprocess.PIPE, shell=True)
00017                 (out, err) = proc.communicate()
00018                 print err
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


simmechanics_to_urdf
Author(s): David Lu!!
autogenerated on Mon Aug 19 2013 11:02:04