Home | Trees | Indices | Help |
|
---|
|
Library for Python message generation.
The structure of the serialization descends several levels of serializers:
Classes | |
MsgGenerationException Exception type for errors in roslib.genpy |
|
Special |
Functions | |||
|
|||
bool |
|
||
bool |
|
||
Special |
|
||
str |
|
||
MsgSpec
|
|
||
MsgSpec
|
|
||
str |
|
||
str |
|
||
|
|||
|
|||
[str] |
|
||
str |
|
||
str |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Variables | |
INDENT =
|
|
SIMPLE_TYPES_DICT =
|
|
SIMPLE_TYPES =
|
|
__package__ =
|
Function Details |
wrapper for roslib.msgs.get_registered that wraps unknown types with a MsgGenerationException
|
@return True if type_ is a special type (i.e. builtin represented as a class instead of a primitive)
|
|
Compute default value for field_type
|
Flattens the msg spec so that embedded message fields become direct
references. The resulting MsgSpec isn't a true/legal
|
Remap field/constant names in spec to avoid collision with Python reserved words.
|
|
Compute post-deserialization code for type_, if necessary
|
Compute python constructor expression for specified message type implementation
|
|
Compute python import statement for specified message type implementation
|
Same as roslib.gentools.compute_full_text, except that the resulting text is escaped to be safe for Python's triple-quote string quoting
|
Optimize the struct format pattern.
|
|
|
create struct.pack call for when pattern is a string pattern
|
create struct.pack call for when pattern is the name of a variable
|
create struct.unpack call for when pattern is a string pattern
|
Create struct.unpack call for when pattern refers to variable
|
create numpy serialization code
|
Push new variable context onto context stack. The context stack manages field-reference context for serialization, e.g. 'self.foo' vs. 'self.bar.foo' vs. 'var.foo' |
Pop variable context from context stack. The context stack manages field-reference context for serialization, e.g. 'self.foo' vs. 'self.bar.foo' vs. 'var.foo' |
|
Generator for array-length serialization (32-bit, little-endian unsigned integer)
|
Generator for string types. similar to arrays, but with more efficient call to struct.pack.
|
Generator for array types
|
Generator for serializing complex type
|
Generator (de)serialization code for multiple fields from spec
|
Python generator that yields un-indented python code for (de)serializing MsgSpec. The code this yields is meant to be included in a class method and cannot be used standalone. serialize_fn_generator and deserialize_fn_generator wrap method to provide appropriate class field initializations.
|
generator for body of serialize() function
|
generator for body of deserialize() function
|
Python code generator for .msg files. Takes in a package name, message name, and message specification and generates a Python message class.
|
Dymamically generate message classes from msg_cat .msg text gendeps dump. This method modifies sys.path to include a temp file directory.
|
Variables Details |
SIMPLE_TYPES_DICT
|
SIMPLE_TYPES
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jan 11 12:17:40 2013 | http://epydoc.sourceforge.net |