Classes | Functions | Variables
geneus.generate Namespace Reference

Classes

class  Indent
 
class  IndentedWriter
 Indented writer. More...
 

Functions

def field_initform (f)
 
def field_initvalue (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_float (t)
 
def is_integer (t)
 Built in types. More...
 
def is_signed_int (t)
 
def is_string (t)
 
def is_time (t)
 
def is_unsigned_int (t)
 
def lisp_initform (t)
 
def lisp_initvalue (t)
 
def lisp_type (t, array)
 
def msg_list (pkg, search_path, ext)
 
def msg_type (f)
 
def parse_msg_type (f)
 
def write_accessors (s, spec)
 
def write_begin (s, spec, is_service=False)
 
def write_builtin_length (s, f, var='msg')
 
def write_constants (s, spec)
 
def write_defclass (s, spec)
 
def write_defmethod (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, f, v, is_array=False)
 
def write_include (s, spec, is_srv=False)
 
def write_md5sum (s, msg_context, spec, parent=None)
 
def write_message_definition (s, msg_context, spec)
 
def write_provide (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, v)
 
def write_serialize_field (s, f)
 
def write_serialize_length (s, v, is_array=False)
 
def write_service_definition (s, msg_context, spec, parent)
 
def write_service_specific_methods (s, context, spec)
 
def write_slot_argument (s, field)
 
def write_slot_definition (s, field)
 
def write_slot_initialize (s, field)
 
def write_srv_component (s, spec, context, parent)
 

Variables

dictionary NUM_BYTES
 

Function Documentation

◆ field_initform()

def geneus.generate.field_initform (   f)

Definition at line 112 of file generate.py.

◆ field_initvalue()

def geneus.generate.field_initvalue (   f)

Definition at line 123 of file generate.py.

◆ field_type()

def geneus.generate.field_type (   f)

Definition at line 77 of file generate.py.

◆ generate_msg()

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

Definition at line 724 of file generate.py.

◆ generate_msg_from_spec()

def geneus.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 755 of file generate.py.

◆ generate_srv()

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

Definition at line 736 of file generate.py.

◆ generate_srv_from_spec()

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

Definition at line 804 of file generate.py.

◆ is_bool()

def geneus.generate.is_bool (   t)

Definition at line 65 of file generate.py.

◆ is_float()

def geneus.generate.is_float (   t)

Definition at line 71 of file generate.py.

◆ is_integer()

def geneus.generate.is_integer (   t)

Built in types.

Definition at line 56 of file generate.py.

◆ is_signed_int()

def geneus.generate.is_signed_int (   t)

Definition at line 59 of file generate.py.

◆ is_string()

def geneus.generate.is_string (   t)

Definition at line 68 of file generate.py.

◆ is_time()

def geneus.generate.is_time (   t)

Definition at line 74 of file generate.py.

◆ is_unsigned_int()

def geneus.generate.is_unsigned_int (   t)

Definition at line 62 of file generate.py.

◆ lisp_initform()

def geneus.generate.lisp_initform (   t)

Definition at line 151 of file generate.py.

◆ lisp_initvalue()

def geneus.generate.lisp_initvalue (   t)

Definition at line 137 of file generate.py.

◆ lisp_type()

def geneus.generate.lisp_type (   t,
  array 
)

Definition at line 96 of file generate.py.

◆ msg_list()

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

Definition at line 748 of file generate.py.

◆ msg_type()

def geneus.generate.msg_type (   f)

Definition at line 91 of file generate.py.

◆ parse_msg_type()

def geneus.generate.parse_msg_type (   f)

Definition at line 84 of file generate.py.

◆ write_accessors()

def geneus.generate.write_accessors (   s,
  spec 
)

Definition at line 306 of file generate.py.

◆ write_begin()

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

Definition at line 224 of file generate.py.

◆ write_builtin_length()

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

Definition at line 608 of file generate.py.

◆ write_constants()

def geneus.generate.write_constants (   s,
  spec 
)

Definition at line 671 of file generate.py.

◆ write_defclass()

def geneus.generate.write_defclass (   s,
  spec 
)

Definition at line 278 of file generate.py.

◆ write_defmethod()

def geneus.generate.write_defmethod (   s,
  spec 
)

Definition at line 290 of file generate.py.

◆ write_deserialize()

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

Definition at line 558 of file generate.py.

◆ write_deserialize_bits()

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

Definition at line 445 of file generate.py.

◆ write_deserialize_bits_signed()

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

Definition at line 462 of file generate.py.

◆ write_deserialize_builtin()

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

Definition at line 479 of file generate.py.

◆ write_deserialize_field()

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

Definition at line 500 of file generate.py.

◆ write_deserialize_length()

def geneus.generate.write_deserialize_length (   s,
  f,
  v,
  is_array = False 
)

Definition at line 435 of file generate.py.

◆ write_include()

def geneus.generate.write_include (   s,
  spec,
  is_srv = False 
)

Definition at line 246 of file generate.py.

◆ write_md5sum()

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

Definition at line 573 of file generate.py.

◆ write_message_definition()

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

Definition at line 580 of file generate.py.

◆ write_provide()

def geneus.generate.write_provide (   s,
  msg_context,
  spec 
)

Definition at line 666 of file generate.py.

◆ write_ros_datatype()

def geneus.generate.write_ros_datatype (   s,
  spec 
)

Definition at line 577 of file generate.py.

◆ write_serialization_length()

def geneus.generate.write_serialization_length (   s,
  spec 
)

Definition at line 624 of file generate.py.

◆ write_serialize()

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

Definition at line 419 of file generate.py.

◆ write_serialize_bits()

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

Definition at line 335 of file generate.py.

◆ write_serialize_bits_signed()

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

Definition at line 358 of file generate.py.

◆ write_serialize_builtin()

def geneus.generate.write_serialize_builtin (   s,
  f,
  v 
)

Definition at line 361 of file generate.py.

◆ write_serialize_field()

def geneus.generate.write_serialize_field (   s,
  f 
)

Definition at line 381 of file generate.py.

◆ write_serialize_length()

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

Definition at line 328 of file generate.py.

◆ write_service_definition()

def geneus.generate.write_service_definition (   s,
  msg_context,
  spec,
  parent 
)

Definition at line 593 of file generate.py.

◆ write_service_specific_methods()

def geneus.generate.write_service_specific_methods (   s,
  context,
  spec 
)

Definition at line 700 of file generate.py.

◆ write_slot_argument()

def geneus.generate.write_slot_argument (   s,
  field 
)

Definition at line 260 of file generate.py.

◆ write_slot_definition()

def geneus.generate.write_slot_definition (   s,
  field 
)

Definition at line 255 of file generate.py.

◆ write_slot_initialize()

def geneus.generate.write_slot_initialize (   s,
  field 
)

Definition at line 274 of file generate.py.

◆ write_srv_component()

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

Definition at line 690 of file generate.py.

Variable Documentation

◆ NUM_BYTES

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

Definition at line 165 of file generate.py.



geneus
Author(s): Kei Okada
autogenerated on Wed Mar 2 2022 00:17:05