module documentation
Undocumented
| Class | |
Container class for holding a Constant declaration |
| Class | |
Container class for storing information about a single field in a MsgSpec |
| Class | |
Container class for storing loaded msg description files. Field types and names are stored in separate lists with 1-to-1 correspondence. MsgSpec can also return an md5 of the source text. |
| Function | bare |
Compute the bare data type, e.g. for arrays, get the underlying array item type |
| Function | is |
No summary |
| Function | is |
No summary |
| Function | is |
No summary |
| Function | is |
No summary |
| Function | is |
No summary |
| Function | parse |
Parse ROS message field type :param msg_type: ROS field type, str :returns: base_type, is_array, array_length, (str, bool, int) :raises: ValueError If msg_type cannot be parsed |
| Function | resolve |
Resolve type name based on current package context. |
| Constant | BUILTIN |
Undocumented |
| Constant | DURATION |
Undocumented |
| Constant | DURATION |
Undocumented |
| Constant | HEADER |
Undocumented |
| Constant | HEADER |
Undocumented |
| Constant | PRIMITIVE |
Undocumented |
| Constant | TIME |
Undocumented |
| Constant | TIME |
Undocumented |
Compute the bare data type, e.g. for arrays, get the underlying array item type
| Parameters | |
| msg | ROS msg type (e.g. 'std_msgs/String'), str |
| Returns | |
| base type, str | |
| Parameters | |
| msg | name of message type, str |
| Returns | |
| True if msg_type_name is a builtin/primitive type, bool | |
Parse ROS message field type
:param msg_type: ROS field type, str
:returns: base_type, is_array, array_length, (str, bool, int)
:raises: ValueError If msg_type cannot be parsed
Resolve type name based on current package context.
NOTE: in ROS Diamondback, 'Header' resolves to 'std_msgs/Header'. In previous releases, it resolves to 'roslib/Header' (REP 100).
- e.g.::
- resolve_type('String', 'std_msgs') -> 'std_msgs/String' resolve_type('String[]', 'std_msgs') -> 'std_msgs/String[]' resolve_type('std_msgs/String', 'foo') -> 'std_msgs/String' resolve_type('uint16', 'std_msgs') -> 'uint16' resolve_type('uint16[]', 'std_msgs') -> 'uint16[]'