Revision: 9010
          http://playerstage.svn.sourceforge.net/playerstage/?rev=9010&view=rev
Author:   jpgr87
Date:     2010-12-13 23:08:55 +0000 (Mon, 13 Dec 2010)

Log Message:
-----------
Added uint8_t* to recognized python array types, camera imagedata now 
accessible from playerc python bindings

Modified Paths:
--------------
    
code/player/trunk/client_libs/libplayerc/bindings/python/playerc_swig_parse.py

Modified: 
code/player/trunk/client_libs/libplayerc/bindings/python/playerc_swig_parse.py
===================================================================
--- 
code/player/trunk/client_libs/libplayerc/bindings/python/playerc_swig_parse.py  
    2010-12-13 21:01:32 UTC (rev 9009)
+++ 
code/player/trunk/client_libs/libplayerc/bindings/python/playerc_swig_parse.py  
    2010-12-13 23:08:55 UTC (rev 9010)
@@ -128,7 +128,7 @@
     body=match.group('body');
     # 'arrayMember' is a regex designed to match certain member definitions,
     # e.g. 'double *ranges;' (playerc_laser_t)
-    
arrayMember=re.compile(r"\b(?P<type>int|double|float)\s*[*]\s*(?P<name>\w+);",re.MULTILINE)
+    
arrayMember=re.compile(r"\b(?P<type>int|double|float|uint8_t)\s*[*]\s*(?P<name>\w+);",re.MULTILINE)
     
     # performs a substitution on the member definitions described above,
     # e.g. 'double *ranges;' becomes 'doubleArray ranges;',
@@ -215,7 +215,7 @@
     # see comments on the 'accessorize' function above.  
     file=open("%s.h" % outfilename,"w")
     # write accessor structure definitions for arrays of ints, doubles and 
floats.
-    for type in ["int","double","float"]:
+    for type in ["int","double","float","uint8_t"]:
         file.write(accessor_header.replace("TYPE",type))
     # write the modified header file.
     file.write(ifaceStream)
@@ -264,7 +264,7 @@
     # write the SWIG interface definition file.
     file=open("%s.i" % outfilename,"w")
     # write interfaces for the accessor structs including subscripting 
functions.
-    for type in ["int","double","float"]:
+    for type in ["int","double","float","uint8_t"]:
         file.write(accessor_interface.replace("TYPE",type))
     file.write(ifaceStream)
     file.close()


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to