Functions
include::genpy::dynamic Namespace Reference

Functions

def _gen_dyn_modify_references
def _gen_dyn_name
def _generate_dynamic_specs
def generate_dynamic

Function Documentation

def include.genpy.dynamic._gen_dyn_modify_references (   py_text,
  types 
) [private]
Modify the generated code to rewrite names such that the code can
safely co-exist with messages of the same name.

:param py_text: genmsg_py-generated Python source code, ``str``
:returns: updated text, ``str``

Definition at line 81 of file dynamic.py.

def include.genpy.dynamic._gen_dyn_name (   pkg,
  base_type 
) [private]
Modify pkg/base_type name so that it can safely co-exist with
statically generated files.

:returns: name to use for pkg/base_type for dynamically generated message class.
@rtype: str

Definition at line 71 of file dynamic.py.

def include.genpy.dynamic._generate_dynamic_specs (   msg_context,
  specs,
  dep_msg 
) [private]
:param dep_msg: text of dependent .msg definition, ``str``
:returns: type name, message spec, ``str, MsgSpec``
:raises: MsgGenerationException If dep_msg is improperly formatted

Definition at line 56 of file dynamic.py.

def include.genpy.dynamic.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 concatenanted .msg text
:param msg_cat str: concatenation of full message text (output of gendeps --cat)
:raises: MsgGenerationException If dep_msg is improperly formatted

Definition at line 106 of file dynamic.py.



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