module documentation

Dynamic generation of deserializer.

Function generate_dynamic Dymamically generate message classes from msg_cat .msg text gendeps dump.
Function _gen_dyn_modify_references Modify the generated code to rewrite names such that the code can safely co-exist with messages of the same name.
Function _gen_dyn_name Modify pkg/base_type name so that it can safely co-exist with statically generated files.
Function _generate_dynamic_specs Dynamically generate message specificition.
def generate_dynamic(core_type, msg_cat):

Dymamically generate message classes from msg_cat .msg text gendeps dump.

This method modifies sys.path to include a temp file directory. :param core_type str: top-level ROS message type of concatenated .msg text :param msg_cat str: concatenation of full message text (output of gendeps --cat) :raises: MsgGenerationException If dep_msg is improperly formatted

def _gen_dyn_modify_references(py_text, current_type, types):

Modify the generated code to rewrite names such that the code can safely co-exist with messages of the same name.

Parameters
py_textgenmsg_py-generated Python source code, str
current_typeUndocumented
typesUndocumented
Returns
updated text, str
def _gen_dyn_name(pkg, base_type):

Modify pkg/base_type name so that it can safely co-exist with statically generated files.

@rtype: str

Returns
name to use for pkg/base_type for dynamically generated message class.
def _generate_dynamic_specs(msg_context, specs, dep_msg):

Dynamically generate message specificition.

Parameters
msg_contextUndocumented
specsUndocumented
dep_msgtext of dependent .msg definition, str
Returns
type name, message spec, str, MsgSpec
Raises
Unknown exceptionMsgGenerationException If dep_msg is improperly formatted