module documentation

Library for supporting message and service generation for all ROS client libraries. This is mainly responsible for calculating the md5sums and message definitions of classes.

Function compute_full_text Compute full text of message/service, including text of embedded types. The text of the main msg/srv is listed first. Embedded msg/srv files are denoted first by an 80-character '=' separator, followed by a type declaration line,'MSG: pkg/type', followed by the text of the embedded type.
Function compute_full_type_name Compute the full type name of message/service 'pkg/type'.
Function compute_md5 Compute md5 hash for message/service
Function compute_md5_text Compute the text used for md5 calculation. MD5 spec states that we removes comments and non-meaningful whitespace. We also strip packages names from type names. For convenience sake, constants are reordered ahead of other declarations, in the order that they were originally defined.
Function _compute_hash subroutine of compute_md5()
Function _unique_deps Undocumented
def compute_full_text(msg_context, spec):

Compute full text of message/service, including text of embedded types. The text of the main msg/srv is listed first. Embedded msg/srv files are denoted first by an 80-character '=' separator, followed by a type declaration line,'MSG: pkg/type', followed by the text of the embedded type.

Parameters
msg_contextMsgContext instance to load dependencies into/from.
specMsgSpec to compute full text for.
Returns
concatenated text for msg/srv file and embedded msg/srv types, str
def compute_full_type_name(package_name, file_name):

Compute the full type name of message/service 'pkg/type'.

Parameters
package_namename of package file is in, str
file_nameUndocumented
Returns
typename in format 'pkg/type'
Raises
Unknown exceptionMsgGenerationException if file_name ends with an unknown file extension
Unknown Field: file_name
name of the msg or srv file, str
def compute_md5(msg_context, spec):

Compute md5 hash for message/service

Parameters
msg_contextMsgContext instance to load dependencies into/from.
specMsgSpec to compute md5 for.
Returns
md5 hash, str
def compute_md5_text(msg_context, spec):

Compute the text used for md5 calculation. MD5 spec states that we removes comments and non-meaningful whitespace. We also strip packages names from type names. For convenience sake, constants are reordered ahead of other declarations, in the order that they were originally defined.

Returns
text for ROS MD5-processing, str
def _compute_hash(msg_context, spec, hash):

subroutine of compute_md5()

Parameters
msg_contextMsgContext instance to load dependencies into/from.
specMsgSpec to compute hash for.
hashhash instance
def _unique_deps(dep_list):

Undocumented