in tools/rossim/rosigen.py [0:0]
def _check_primitive_type(self, field_val, val):
if type(field_val).__module__ == numpy.__name__:
field_val = field_val.item()
if type(field_val) not in self.PRIMITIVE_TYPES:
raise Exception("error: invalid path")
# If field is Boolean, check whether the value is false ('0', 'False' or 'false'), then set
# the value to '' (blank string), so that type(field_type)(val) will return False:
if type(field_val) == bool and val in ["0", "False", "false"]:
val = ""
if type(field_val) == bytes:
val = [int(val)]
return val