roslib: serialization spec for bool

This commit is contained in:
Ken Conley 2009-09-30 21:46:10 +00:00
parent dc26f61645
commit 93db75bbd3
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,9 @@ def get_registered_ex(type_):
SIMPLE_TYPES_DICT = { #see python module struct
'int8': 'b',
'uint8': 'B',
# Python 2.6 adds in '?' for C99 _Bool, which appears equivalent to an uint8,
# thus, we use uint8
'bool': 'B',
'int16' : 'h',
'uint16' : 'H',
'int32' : 'i',