module documentation

Undocumented

Class Indent Undocumented
Class IndentedWriter Undocumented
Function find_path_for_package Undocumented
Function find_path_from_cmake_path Undocumented
Function find_requires Undocumented
Function generate_msg Generate javascript code for all messages in a package
Function generate_msg_from_spec Generate a message
Function generate_srv Generate javascript code for all services in a package
Function generate_srv_from_spec Generate code from .srv file
Function get_default_value Return the default value for a message data field
Function get_message_fixed_size Return the size of a message. If the message does not have a fixed size, returns None
Function get_message_path_from_field Undocumented
Function get_type_size Returns the size in bytes of a builtin type if available. Else None
Function get_typed_array Undocumented
Function has_typed_array Undocumented
Function is_bool Undocumented
Function is_fixnum Undocumented
Function is_float Undocumented
Function is_integer Undocumented
Function is_message_fixed_size Check if a particular message specification has a constant size in bytes
Function is_signed_int Undocumented
Function is_string Undocumented
Function is_time Undocumented
Function is_unsigned_int Undocumented
Function msg_list Undocumented
Function parse_msg_type Undocumented
Function write_begin Writes the beginning of the file: a comment saying it's auto-generated and the in-package form
Function write_class Undocumented
Function write_constants Undocumented
Function write_deserialize Write the deserialize method
Function write_deserialize_builtin Undocumented
Function write_deserialize_complex Undocumented
Function write_deserialize_field Undocumented
Function write_deserialize_length Undocumented
Function write_end Undocumented
Function write_get_message_size Write a static method to determine the buffer size of a complete message
Function write_md5sum Undocumented
Function write_message_definition Undocumented
Function write_msg_constructor_field Undocumented
Function write_msg_index Writes an index for the messages
Function write_package_index Undocumented
Function write_requires Writes out the require fields
Function write_resolve Undocumented
Function write_ros_datatype Undocumented
Function write_serialize Write the serialize method
Function write_serialize_base Undocumented
Function write_serialize_builtin Undocumented
Function write_serialize_complex Undocumented
Function write_serialize_field Undocumented
Function write_serialize_length Undocumented
Function write_serialize_length_check Undocumented
Function write_srv_component Undocumented
Function write_srv_end Undocumented
Function write_srv_index Writes an index for the messages
def find_path_for_package(package):

Undocumented

def find_path_from_cmake_path(path):

Undocumented

def find_requires(spec):

Undocumented

def generate_msg(pkg, files, out_dir, search_path):

Generate javascript code for all messages in a package

def 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

def generate_srv(pkg, files, out_dir, search_path):

Generate javascript code for all services in a package

def generate_srv_from_spec(msg_context, spec, search_path, output_dir, package, path):

Generate code from .srv file

def get_default_value(field, current_message_package):

Return the default value for a message data field

def get_message_fixed_size(spec, search_path):

Return the size of a message. If the message does not have a fixed size, returns None

def get_message_path_from_field(field, pkg):

Undocumented

def get_type_size(t):

Returns the size in bytes of a builtin type if available. Else None

def get_typed_array(t):

Undocumented

def has_typed_array(t):

Undocumented

def is_bool(t):

Undocumented

def is_fixnum(t):

Undocumented

def is_float(t):

Undocumented

def is_integer(t):

Undocumented

def is_message_fixed_size(spec, search_path):

Check if a particular message specification has a constant size in bytes

def is_signed_int(t):

Undocumented

def is_string(t):

Undocumented

def is_time(t):

Undocumented

def is_unsigned_int(t):

Undocumented

def msg_list(pkg, search_path, ext):

Undocumented

def parse_msg_type(f):

Undocumented

def write_begin(s, spec, is_service=False):

Writes the beginning of the file: a comment saying it's auto-generated and the in-package form

def write_class(s, spec):

Undocumented

def write_constants(s, spec):

Undocumented

def write_deserialize(s, spec):

Write the deserialize method

def write_deserialize_builtin(s, f):

Undocumented

def write_deserialize_complex(s, f, thisPackage):

Undocumented

def write_deserialize_field(s, f, package):

Undocumented

def write_deserialize_length(s, name):

Undocumented

def write_end(s, spec):

Undocumented

def write_get_message_size(s, spec, search_path):

Write a static method to determine the buffer size of a complete message

def write_md5sum(s, msg_context, spec, parent=None):

Undocumented

def write_message_definition(s, msg_context, spec):

Undocumented

def write_msg_constructor_field(s, spec, field):

Undocumented

def write_msg_index(s, msgs, pkg, context):

Writes an index for the messages

def write_package_index(s, package_dir):

Undocumented

def write_requires(s, spec, previous_packages=None, prev_deps=None, isSrv=False):

Writes out the require fields

def write_resolve(s, spec):

Undocumented

def write_ros_datatype(s, spec):

Undocumented

def write_serialize(s, spec):

Write the serialize method

def write_serialize_base(s, rest):

Undocumented

def write_serialize_builtin(s, f):

Undocumented

def write_serialize_complex(s, f, thisPackage):

Undocumented

def write_serialize_field(s, f, package):

Undocumented

def write_serialize_length(s, name):

Undocumented

def write_serialize_length_check(s, field):

Undocumented

def write_srv_component(s, spec, context, parent, search_path):

Undocumented

def write_srv_end(s, context, spec):

Undocumented

def write_srv_index(s, srvs, pkg):

Writes an index for the messages