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

def gennodejs.generate.find_path_for_package (   package)

Definition at line 251 of file generate.py.

def gennodejs.generate.find_path_from_cmake_path (   path)

Definition at line 242 of file generate.py.

def gennodejs.generate.find_requires (   spec)

Definition at line 254 of file generate.py.

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.

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.

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.

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

Definition at line 857 of file generate.py.

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.

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.

def gennodejs.generate.get_message_path_from_field (   field,
  pkg 
)

Definition at line 349 of file generate.py.

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.

def gennodejs.generate.get_typed_array (   t)

Definition at line 73 of file generate.py.

def gennodejs.generate.has_typed_array (   t)

Definition at line 94 of file generate.py.

def gennodejs.generate.is_bool (   t)

Definition at line 55 of file generate.py.

def gennodejs.generate.is_fixnum (   t)

Built in types.

Definition at line 43 of file generate.py.

def gennodejs.generate.is_float (   t)

Definition at line 61 of file generate.py.

def gennodejs.generate.is_integer (   t)

Definition at line 46 of file generate.py.

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.

def gennodejs.generate.is_signed_int (   t)

Definition at line 49 of file generate.py.

def gennodejs.generate.is_string (   t)

Definition at line 58 of file generate.py.

def gennodejs.generate.is_time (   t)

Definition at line 64 of file generate.py.

def gennodejs.generate.is_unsigned_int (   t)

Definition at line 52 of file generate.py.

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

Definition at line 780 of file generate.py.

def gennodejs.generate.parse_msg_type (   f)

Definition at line 67 of file generate.py.

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

Definition at line 271 of file generate.py.

def gennodejs.generate.write_class (   s,
  spec 
)

Definition at line 329 of file generate.py.

def gennodejs.generate.write_constants (   s,
  spec 
)

Definition at line 715 of file generate.py.

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

Definition at line 527 of file generate.py.

def gennodejs.generate.write_deserialize_builtin (   s,
  f 
)

Definition at line 512 of file generate.py.

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

Definition at line 489 of file generate.py.

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

Definition at line 519 of file generate.py.

def gennodejs.generate.write_deserialize_length (   s,
  name 
)

Definition at line 485 of file generate.py.

def gennodejs.generate.write_end (   s,
  spec 
)

Definition at line 410 of file generate.py.

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.

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

Definition at line 690 of file generate.py.

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

Definition at line 701 of file generate.py.

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

Definition at line 319 of file generate.py.

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

Definition at line 652 of file generate.py.

def gennodejs.generate.write_package_index (   s,
  package_dir 
)

Definition at line 638 of file generate.py.

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

Definition at line 278 of file generate.py.

def gennodejs.generate.write_resolve (   s,
  spec 
)

Definition at line 356 of file generate.py.

def gennodejs.generate.write_ros_datatype (   s,
  spec 
)

Definition at line 681 of file generate.py.

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

Definition at line 470 of file generate.py.

def gennodejs.generate.write_serialize_base (   s,
  rest 
)

Definition at line 416 of file generate.py.

def gennodejs.generate.write_serialize_builtin (   s,
  f 
)

Definition at line 432 of file generate.py.

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

Definition at line 439 of file generate.py.

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

Definition at line 459 of file generate.py.

def gennodejs.generate.write_serialize_length (   s,
  name 
)

Definition at line 419 of file generate.py.

def gennodejs.generate.write_serialize_length_check (   s,
  field 
)

Definition at line 424 of file generate.py.

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

Definition at line 730 of file generate.py.

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

Definition at line 744 of file generate.py.

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

Definition at line 667 of file generate.py.



gennodejs
Author(s):
autogenerated on Thu Jun 6 2019 19:40:34