Classes | Functions | Variables
genlisp.generate Namespace Reference

Classes

class  Indent
 
class  IndentedWriter
 Indented writer. More...
 

Functions

def field_initform (f)
 
def field_type (f)
 
def generate_msg (pkg, files, out_dir, search_path)
 
def generate_msg_from_spec (msg_context, spec, search_path, output_dir, package)
 
def generate_srv (pkg, files, out_dir, search_path)
 
def generate_srv_from_spec (msg_context, spec, search_path, output_dir, package, path)
 
def is_bool (t)
 
def is_fixnum (t)
 Built in types. More...
 
def is_float (t)
 
def is_integer (t)
 
def is_signed_int (t)
 
def is_string (t)
 
def is_time (t)
 
def is_unsigned_int (t)
 
def lisp_initform (t)
 
def lisp_type (t)
 
def message_class (spec)
 
def msg_list (pkg, search_path, ext)
 
def msg_type (f)
 
def new_message_class (spec)
 
def parse_msg_type (f)
 
def write_accessor_exports (s, spec)
 
def write_asd (s, pkg, msgs, context)
 
def write_asd_deps (s, deps, msgs)
 
def write_begin (s, spec, is_service=False)
 
def write_builtin_length (s, f, var='msg')
 
def write_class_exports (s, msgs, pkg)
 
def write_constants (s, spec)
 
def write_defclass (s, spec)
 
def write_deprecated_readers (s, spec)
 
def write_deserialize (s, spec)
 
def write_deserialize_bits (s, v, num_bytes)
 
def write_deserialize_bits_signed (s, v, num_bytes)
 
def write_deserialize_builtin (s, f, v)
 
def write_deserialize_field (s, f, pkg)
 
def write_deserialize_length (s, is_array=False)
 
def write_html_include (s, spec, is_srv=False)
 
def write_list_converter (s, spec)
 
def write_md5sum (s, msg_context, spec, parent=None)
 
def write_message_definition (s, msg_context, spec)
 
def write_ros_datatype (s, spec)
 
def write_serialization_length (s, spec)
 
def write_serialize (s, spec)
 
def write_serialize_bits (s, v, num_bytes)
 
def write_serialize_bits_signed (s, v, num_bytes)
 
def write_serialize_builtin (s, f, var='msg', lookup_slot=True)
 
def write_serialize_field (s, f)
 
def write_serialize_length (s, v, is_array=False)
 
def write_service_specific_methods (s, spec)
 
def write_slot_definition (s, field)
 
def write_srv_asd (s, pkg, srvs, context)
 
def write_srv_component (s, spec, context, parent)
 
def write_srv_exports (s, srvs, pkg)
 

Variables

dictionary NUM_BYTES
 

Function Documentation

◆ field_initform()

def genlisp.generate.field_initform (   f)

Definition at line 125 of file generate.py.

◆ field_type()

def genlisp.generate.field_type (   f)

Definition at line 88 of file generate.py.

◆ generate_msg()

def genlisp.generate.generate_msg (   pkg,
  files,
  out_dir,
  search_path 
)
Generate lisp code for all messages in a package

Definition at line 720 of file generate.py.

◆ generate_msg_from_spec()

def genlisp.generate.generate_msg_from_spec (   msg_context,
  spec,
  search_path,
  output_dir,
  package 
)
Generate a message

@param msg_path: The path to the .msg file
@type msg_path: str

Definition at line 752 of file generate.py.

◆ generate_srv()

def genlisp.generate.generate_srv (   pkg,
  files,
  out_dir,
  search_path 
)
Generate lisp code for all services in a package

Definition at line 732 of file generate.py.

◆ generate_srv_from_spec()

def genlisp.generate.generate_srv_from_spec (   msg_context,
  spec,
  search_path,
  output_dir,
  package,
  path 
)

Definition at line 837 of file generate.py.

◆ is_bool()

def genlisp.generate.is_bool (   t)

Definition at line 76 of file generate.py.

◆ is_fixnum()

def genlisp.generate.is_fixnum (   t)

Built in types.

Definition at line 64 of file generate.py.

◆ is_float()

def genlisp.generate.is_float (   t)

Definition at line 82 of file generate.py.

◆ is_integer()

def genlisp.generate.is_integer (   t)

Definition at line 67 of file generate.py.

◆ is_signed_int()

def genlisp.generate.is_signed_int (   t)

Definition at line 70 of file generate.py.

◆ is_string()

def genlisp.generate.is_string (   t)

Definition at line 79 of file generate.py.

◆ is_time()

def genlisp.generate.is_time (   t)

Definition at line 85 of file generate.py.

◆ is_unsigned_int()

def genlisp.generate.is_unsigned_int (   t)

Definition at line 73 of file generate.py.

◆ lisp_initform()

def genlisp.generate.lisp_initform (   t)

Definition at line 138 of file generate.py.

◆ lisp_type()

def genlisp.generate.lisp_type (   t)

Definition at line 109 of file generate.py.

◆ message_class()

def genlisp.generate.message_class (   spec)
Return the CLOS class name for this message type

Definition at line 275 of file generate.py.

◆ msg_list()

def genlisp.generate.msg_list (   pkg,
  search_path,
  ext 
)

Definition at line 744 of file generate.py.

◆ msg_type()

def genlisp.generate.msg_type (   f)

Definition at line 105 of file generate.py.

◆ new_message_class()

def genlisp.generate.new_message_class (   spec)

Definition at line 281 of file generate.py.

◆ parse_msg_type()

def genlisp.generate.parse_msg_type (   f)

Definition at line 98 of file generate.py.

◆ write_accessor_exports()

def genlisp.generate.write_accessor_exports (   s,
  spec 
)

Definition at line 563 of file generate.py.

◆ write_asd()

def genlisp.generate.write_asd (   s,
  pkg,
  msgs,
  context 
)

Definition at line 546 of file generate.py.

◆ write_asd_deps()

def genlisp.generate.write_asd_deps (   s,
  deps,
  msgs 
)

Definition at line 507 of file generate.py.

◆ write_begin()

def genlisp.generate.write_begin (   s,
  spec,
  is_service = False 
)

Definition at line 213 of file generate.py.

◆ write_builtin_length()

def genlisp.generate.write_builtin_length (   s,
  f,
  var = 'msg' 
)

Definition at line 615 of file generate.py.

◆ write_class_exports()

def genlisp.generate.write_class_exports (   s,
  msgs,
  pkg 
)

Definition at line 478 of file generate.py.

◆ write_constants()

def genlisp.generate.write_constants (   s,
  spec 
)

Definition at line 668 of file generate.py.

◆ write_defclass()

def genlisp.generate.write_defclass (   s,
  spec 
)

Definition at line 248 of file generate.py.

◆ write_deprecated_readers()

def genlisp.generate.write_deprecated_readers (   s,
  spec 
)

Definition at line 236 of file generate.py.

◆ write_deserialize()

def genlisp.generate.write_deserialize (   s,
  spec 
)
Write the deserialize method

Definition at line 466 of file generate.py.

◆ write_deserialize_bits()

def genlisp.generate.write_deserialize_bits (   s,
  v,
  num_bytes 
)

Definition at line 386 of file generate.py.

◆ write_deserialize_bits_signed()

def genlisp.generate.write_deserialize_bits_signed (   s,
  v,
  num_bytes 
)

Definition at line 390 of file generate.py.

◆ write_deserialize_builtin()

def genlisp.generate.write_deserialize_builtin (   s,
  f,
  v 
)

Definition at line 399 of file generate.py.

◆ write_deserialize_field()

def genlisp.generate.write_deserialize_field (   s,
  f,
  pkg 
)

Definition at line 435 of file generate.py.

◆ write_deserialize_length()

def genlisp.generate.write_deserialize_length (   s,
  is_array = False 
)

Definition at line 379 of file generate.py.

◆ write_html_include()

def genlisp.generate.write_html_include (   s,
  spec,
  is_srv = False 
)

Definition at line 220 of file generate.py.

◆ write_list_converter()

def genlisp.generate.write_list_converter (   s,
  spec 
)

Definition at line 657 of file generate.py.

◆ write_md5sum()

def genlisp.generate.write_md5sum (   s,
  msg_context,
  spec,
  parent = None 
)

Definition at line 590 of file generate.py.

◆ write_message_definition()

def genlisp.generate.write_message_definition (   s,
  msg_context,
  spec 
)

Definition at line 599 of file generate.py.

◆ write_ros_datatype()

def genlisp.generate.write_ros_datatype (   s,
  spec 
)

Definition at line 583 of file generate.py.

◆ write_serialization_length()

def genlisp.generate.write_serialization_length (   s,
  spec 
)

Definition at line 631 of file generate.py.

◆ write_serialize()

def genlisp.generate.write_serialize (   s,
  spec 
)
Write the serialize method

Definition at line 366 of file generate.py.

◆ write_serialize_bits()

def genlisp.generate.write_serialize_bits (   s,
  v,
  num_bytes 
)

Definition at line 296 of file generate.py.

◆ write_serialize_bits_signed()

def genlisp.generate.write_serialize_bits_signed (   s,
  v,
  num_bytes 
)

Definition at line 300 of file generate.py.

◆ write_serialize_builtin()

def genlisp.generate.write_serialize_builtin (   s,
  f,
  var = 'msg',
  lookup_slot = True 
)

Definition at line 310 of file generate.py.

◆ write_serialize_field()

def genlisp.generate.write_serialize_field (   s,
  f 
)

Definition at line 343 of file generate.py.

◆ write_serialize_length()

def genlisp.generate.write_serialize_length (   s,
  v,
  is_array = False 
)

Definition at line 285 of file generate.py.

◆ write_service_specific_methods()

def genlisp.generate.write_service_specific_methods (   s,
  spec 
)

Definition at line 706 of file generate.py.

◆ write_slot_definition()

def genlisp.generate.write_slot_definition (   s,
  field 
)

Definition at line 224 of file generate.py.

◆ write_srv_asd()

def genlisp.generate.write_srv_asd (   s,
  pkg,
  srvs,
  context 
)

Definition at line 524 of file generate.py.

◆ write_srv_component()

def genlisp.generate.write_srv_component (   s,
  spec,
  context,
  parent 
)

Definition at line 691 of file generate.py.

◆ write_srv_exports()

def genlisp.generate.write_srv_exports (   s,
  srvs,
  pkg 
)

Definition at line 491 of file generate.py.

Variable Documentation

◆ NUM_BYTES

dictionary genlisp.generate.NUM_BYTES
Initial value:
1 = {'int8': 1, 'int16': 2, 'int32': 4, 'int64': 8,
2  'uint8': 1, 'uint16': 2, 'uint32': 4, 'uint64': 8}

Definition at line 152 of file generate.py.



genlisp
Author(s): Bhaskara Marti
autogenerated on Wed Mar 2 2022 00:17:19