Functions | Variables
include::genpy::base Namespace Reference

Functions

def is_simple

Variables

tuple SIMPLE_TYPES = list(SIMPLE_TYPES_DICT.keys())
 Simple types are primitives with fixed-serialization length.
dictionary SIMPLE_TYPES_DICT
 Primitive type handling for ROS builtin types.

Function Documentation

:returns: ``True`` if type is a 'simple' type, i.e. is of
  fixed/known serialization length. This is effectively all primitive
  types except for string, ``bool``

Definition at line 58 of file base.py.


Variable Documentation

tuple include::genpy::base::SIMPLE_TYPES = list(SIMPLE_TYPES_DICT.keys())

Simple types are primitives with fixed-serialization length.

Definition at line 56 of file base.py.

Initial value:
00001 { #see python module struct
00002     'int8': 'b', 
00003     'uint8': 'B',
00004     # Python 2.6 adds in '?' for C99 _Bool, which appears equivalent to an uint8,
00005     # thus, we use uint8
00006     'bool': 'B',    
00007     'int16' : 'h',
00008     'uint16' : 'H',
00009     'int32' : 'i',
00010     'uint32' : 'I',
00011     'int64' : 'q',
00012     'uint64' : 'Q',
00013     'float32': 'f',
00014     'float64': 'd',
00015     # deprecated
00016     'char' : 'B', #unsigned
00017     'byte' : 'b', #signed
00018     }

Primitive type handling for ROS builtin types.

Definition at line 36 of file base.py.



firos
Author(s): IƱigo Gonzalez, igonzalez@ikergune.com
autogenerated on Thu Jun 6 2019 17:51:04