Functions | Variables
genmypy.converter Namespace Reference

Functions

def _convert_message_constants (first_party_package, spec, imports)
 
def _convert_message_fields (first_party_package, spec, imports)
 
def _get_genmsg_type (first_party_package, field_type, imports)
 
def convert_genpy_init (modules)
 
def convert_message_class (first_party_package, spec, imports)
 
def convert_service_class (spec, request_class, response_class)
 

Variables

dictionary _GENMSG_PRIMITIVES
 
dictionary _GENPY_DEFINED
 

Function Documentation

◆ _convert_message_constants()

def genmypy.converter._convert_message_constants (   first_party_package,
  spec,
  imports 
)
private

Definition at line 103 of file converter.py.

◆ _convert_message_fields()

def genmypy.converter._convert_message_fields (   first_party_package,
  spec,
  imports 
)
private

Definition at line 88 of file converter.py.

◆ _get_genmsg_type()

def genmypy.converter._get_genmsg_type (   first_party_package,
  field_type,
  imports 
)
private
Get the corresponding python type for the given ROS type.

.. warning::
    As this method is decorated by lru_cache, make sure that
    you are using another instance of ImportsElement when
    calling this method in a different context.
    (e.g. creating a different module)

Definition at line 48 of file converter.py.

◆ convert_genpy_init()

def genmypy.converter.convert_genpy_init (   modules)

Definition at line 211 of file converter.py.

◆ convert_message_class()

def genmypy.converter.convert_message_class (   first_party_package,
  spec,
  imports 
)

Definition at line 117 of file converter.py.

◆ convert_service_class()

def genmypy.converter.convert_service_class (   spec,
  request_class,
  response_class 
)

Definition at line 200 of file converter.py.

Variable Documentation

◆ _GENMSG_PRIMITIVES

dictionary genmypy.converter._GENMSG_PRIMITIVES
private
Initial value:
1 = {
2  "byte": "byte",
3  "char": "str",
4  "int8": "int",
5  "int16": "int",
6  "int32": "int",
7  "int64": "int",
8  "uint8": "int",
9  "uint16": "int",
10  "uint32": "int",
11  "uint64": "int",
12  "float32": "float",
13  "float64": "float",
14  "bool": "bool",
15  "string": "str",
16 }

Definition at line 23 of file converter.py.

◆ _GENPY_DEFINED

dictionary genmypy.converter._GENPY_DEFINED
private
Initial value:
1 = {
2  genmsg.HEADER: ("std_msgs.msg._Header.Header", "std_msgs.msg._Header"),
3  genmsg.TIME: ("genpy.Time", "genpy"),
4  genmsg.DURATION: ("genpy.Duration", "genpy"),
5 }

Definition at line 40 of file converter.py.



genmypy
Author(s): Yuki Igarashi, Tamaki Nishino
autogenerated on Mon Apr 10 2023 02:40:49