Classes | Functions
gennodejs.generate Namespace Reference

Classes

class  Indent
 
class  IndentedWriter
 Indented writer. More...
 

Functions

def find_path_for_package (package)
 
def find_path_from_cmake_path (path)
 
def find_requires (spec)
 
def generate_msg (pkg, files, out_dir, search_path)
 
def generate_msg_from_spec (msg_context, spec, search_path, output_dir, package, msgs=None)
 
def generate_srv (pkg, files, out_dir, search_path)
 
def generate_srv_from_spec (msg_context, spec, search_path, output_dir, package, path)
 
def get_default_value (field, current_message_package)
 
def get_message_fixed_size (spec, search_path)
 
def get_message_path_from_field (field, pkg)
 
def get_type_size (t)
 
def get_typed_array (t)
 
def has_typed_array (t)
 
def is_bool (t)
 
def is_fixnum (t)
 Built in types. More...
 
def is_float (t)
 
def is_integer (t)
 
def is_message_fixed_size (spec, search_path)
 
def is_signed_int (t)
 
def is_string (t)
 
def is_time (t)
 
def is_unsigned_int (t)
 
def msg_list (pkg, search_path, ext)
 
def parse_msg_type (f)
 
def write_begin (s, spec, is_service=False)
 
def write_class (s, spec)
 
def write_constants (s, spec)
 
def write_deserialize (s, spec)
 
def write_deserialize_builtin (s, f)
 
def write_deserialize_complex (s, f, thisPackage)
 
def write_deserialize_field (s, f, package)
 
def write_deserialize_length (s, name)
 
def write_end (s, spec)
 
def write_get_message_size (s, spec, search_path)
 
def write_md5sum (s, msg_context, spec, parent=None)
 
def write_message_definition (s, msg_context, spec)
 
def write_msg_constructor_field (s, spec, field)
 
def write_msg_index (s, msgs, pkg, context)
 
def write_package_index (s, package_dir)
 
def write_requires (s, spec, previous_packages=None, prev_deps=None, isSrv=False)
 
def write_resolve (s, spec)
 
def write_ros_datatype (s, spec)
 
def write_serialize (s, spec)
 
def write_serialize_base (s, rest)
 
def write_serialize_builtin (s, f)
 
def write_serialize_complex (s, f, thisPackage)
 
def write_serialize_field (s, f, package)
 
def write_serialize_length (s, name)
 
def write_serialize_length_check (s, field)
 
def write_srv_component (s, spec, context, parent, search_path)
 
def write_srv_end (s, context, spec)
 
def write_srv_index (s, srvs, pkg)
 

Function Documentation

◆ find_path_for_package()

def gennodejs.generate.find_path_for_package (   package)

Definition at line 251 of file generate.py.

◆ find_path_from_cmake_path()

def gennodejs.generate.find_path_from_cmake_path (   path)

Definition at line 242 of file generate.py.

◆ find_requires()

def gennodejs.generate.find_requires (   spec)

Definition at line 254 of file generate.py.

◆ generate_msg()

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

Definition at line 756 of file generate.py.

◆ generate_msg_from_spec()

def gennodejs.generate.generate_msg_from_spec (   msg_context,
  spec,
  search_path,
  output_dir,
  package,
  msgs = None 
)
Generate a message

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

Definition at line 787 of file generate.py.

◆ generate_srv()

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

Definition at line 768 of file generate.py.

◆ generate_srv_from_spec()

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

Definition at line 857 of file generate.py.

◆ get_default_value()

def gennodejs.generate.get_default_value (   field,
  current_message_package 
)
Return the default value for a message data field

Definition at line 109 of file generate.py.

◆ get_message_fixed_size()

def gennodejs.generate.get_message_fixed_size (   spec,
  search_path 
)
Return the size of a message.
If the message does not have a fixed size, returns None

Definition at line 159 of file generate.py.

◆ get_message_path_from_field()

def gennodejs.generate.get_message_path_from_field (   field,
  pkg 
)

Definition at line 349 of file generate.py.

◆ get_type_size()

def gennodejs.generate.get_type_size (   t)
Returns the size in bytes of a builtin type if available. Else None

Definition at line 97 of file generate.py.

◆ get_typed_array()

def gennodejs.generate.get_typed_array (   t)

Definition at line 73 of file generate.py.

◆ has_typed_array()

def gennodejs.generate.has_typed_array (   t)

Definition at line 94 of file generate.py.

◆ is_bool()

def gennodejs.generate.is_bool (   t)

Definition at line 55 of file generate.py.

◆ is_fixnum()

def gennodejs.generate.is_fixnum (   t)

Built in types.

Definition at line 43 of file generate.py.

◆ is_float()

def gennodejs.generate.is_float (   t)

Definition at line 61 of file generate.py.

◆ is_integer()

def gennodejs.generate.is_integer (   t)

Definition at line 46 of file generate.py.

◆ is_message_fixed_size()

def gennodejs.generate.is_message_fixed_size (   spec,
  search_path 
)
Check if a particular message specification has a constant size in bytes

Definition at line 137 of file generate.py.

◆ is_signed_int()

def gennodejs.generate.is_signed_int (   t)

Definition at line 49 of file generate.py.

◆ is_string()

def gennodejs.generate.is_string (   t)

Definition at line 58 of file generate.py.

◆ is_time()

def gennodejs.generate.is_time (   t)

Definition at line 64 of file generate.py.

◆ is_unsigned_int()

def gennodejs.generate.is_unsigned_int (   t)

Definition at line 52 of file generate.py.

◆ msg_list()

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

Definition at line 780 of file generate.py.

◆ parse_msg_type()

def gennodejs.generate.parse_msg_type (   f)

Definition at line 67 of file generate.py.

◆ write_begin()

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

Definition at line 271 of file generate.py.

◆ write_class()

def gennodejs.generate.write_class (   s,
  spec 
)

Definition at line 329 of file generate.py.

◆ write_constants()

def gennodejs.generate.write_constants (   s,
  spec 
)

Definition at line 715 of file generate.py.

◆ write_deserialize()

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

Definition at line 527 of file generate.py.

◆ write_deserialize_builtin()

def gennodejs.generate.write_deserialize_builtin (   s,
  f 
)

Definition at line 512 of file generate.py.

◆ write_deserialize_complex()

def gennodejs.generate.write_deserialize_complex (   s,
  f,
  thisPackage 
)

Definition at line 489 of file generate.py.

◆ write_deserialize_field()

def gennodejs.generate.write_deserialize_field (   s,
  f,
  package 
)

Definition at line 519 of file generate.py.

◆ write_deserialize_length()

def gennodejs.generate.write_deserialize_length (   s,
  name 
)

Definition at line 485 of file generate.py.

◆ write_end()

def gennodejs.generate.write_end (   s,
  spec 
)

Definition at line 410 of file generate.py.

◆ write_get_message_size()

def gennodejs.generate.write_get_message_size (   s,
  spec,
  search_path 
)
Write a static method to determine the buffer size of a complete message

Definition at line 544 of file generate.py.

◆ write_md5sum()

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

Definition at line 690 of file generate.py.

◆ write_message_definition()

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

Definition at line 701 of file generate.py.

◆ write_msg_constructor_field()

def gennodejs.generate.write_msg_constructor_field (   s,
  spec,
  field 
)

Definition at line 319 of file generate.py.

◆ write_msg_index()

def gennodejs.generate.write_msg_index (   s,
  msgs,
  pkg,
  context 
)

Definition at line 652 of file generate.py.

◆ write_package_index()

def gennodejs.generate.write_package_index (   s,
  package_dir 
)

Definition at line 638 of file generate.py.

◆ write_requires()

def gennodejs.generate.write_requires (   s,
  spec,
  previous_packages = None,
  prev_deps = None,
  isSrv = False 
)

Definition at line 278 of file generate.py.

◆ write_resolve()

def gennodejs.generate.write_resolve (   s,
  spec 
)

Definition at line 356 of file generate.py.

◆ write_ros_datatype()

def gennodejs.generate.write_ros_datatype (   s,
  spec 
)

Definition at line 681 of file generate.py.

◆ write_serialize()

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

Definition at line 470 of file generate.py.

◆ write_serialize_base()

def gennodejs.generate.write_serialize_base (   s,
  rest 
)

Definition at line 416 of file generate.py.

◆ write_serialize_builtin()

def gennodejs.generate.write_serialize_builtin (   s,
  f 
)

Definition at line 432 of file generate.py.

◆ write_serialize_complex()

def gennodejs.generate.write_serialize_complex (   s,
  f,
  thisPackage 
)

Definition at line 439 of file generate.py.

◆ write_serialize_field()

def gennodejs.generate.write_serialize_field (   s,
  f,
  package 
)

Definition at line 459 of file generate.py.

◆ write_serialize_length()

def gennodejs.generate.write_serialize_length (   s,
  name 
)

Definition at line 419 of file generate.py.

◆ write_serialize_length_check()

def gennodejs.generate.write_serialize_length_check (   s,
  field 
)

Definition at line 424 of file generate.py.

◆ write_srv_component()

def gennodejs.generate.write_srv_component (   s,
  spec,
  context,
  parent,
  search_path 
)

Definition at line 730 of file generate.py.

◆ write_srv_end()

def gennodejs.generate.write_srv_end (   s,
  context,
  spec 
)

Definition at line 744 of file generate.py.

◆ write_srv_index()

def gennodejs.generate.write_srv_index (   s,
  srvs,
  pkg 
)

Definition at line 667 of file generate.py.



gennodejs
Author(s):
autogenerated on Mon Feb 28 2022 22:23:18