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 |
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 |
Compute the full type name of message/service 'pkg/type'. |
Function | compute |
Compute md5 hash for message/service |
Function | compute |
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 |
subroutine of compute_md5() |
Function | _unique |
Undocumented |
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 | MsgContext instance to load dependencies into/from. |
spec | MsgSpec to compute full text for. |
Returns | |
concatenated text for msg/srv file and embedded msg/srv types, str |
Compute the full type name of message/service 'pkg/type'.
Parameters | |
package | name of package file is in, str |
file | Undocumented |
Returns | |
typename in format 'pkg/type' | |
Raises | |
Unknown exception | MsgGenerationException if file_name ends with an unknown file extension |
Unknown Field: file_name | |
name of the msg or srv file, str |
Compute md5 hash for message/service
Parameters | |
msg | MsgContext instance to load dependencies into/from. |
spec | MsgSpec to compute md5 for. |
Returns | |
md5 hash, str |
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 |
subroutine of compute_md5()
Parameters | |
msg | MsgContext instance to load dependencies into/from. |
spec | MsgSpec to compute hash for. |
hash | hash instance |