Implements rosmsg/rossrv command-line tools.
The code API of the rosmsg module is unstable.
From __init__.py
:
Exception |
|
Undocumented |
Exception |
|
Undocumented |
Exception |
|
Undocumented |
Function | construct |
Undocumented |
Function | construct |
Undocumented |
Function | create |
returns a function to use as filter that returns all objects slots except those with names in list. |
Function | fullusage |
No summary |
Function | get |
returns a single instance of field_type, where field_type can be a message or ros primitive or an flexible size array. |
Function | get |
Get .msg file for type_ as text :param type_: message type, str :param raw: if True, include comments and whitespace (default False), bool :returns: text of .msg file, str :raises ROSMsgException If type_... |
Function | get |
Get .srv file for type_ as text :param type_: service type, str :param raw: if True, include comments and whitespace (default False), bool :returns: text of .srv file, str @raise ROSMsgException: if type_... |
Function | get |
Builds a YAML string of message. @param msg: A object, dict or array @param flow_style_: if True, produces one line with brackets, if false uses multiple lines with indentation, if None uses both using heuristics @param prefix: prefixes all lines with this string @param ... |
Function | init |
Undocumented |
Function | iterate |
Iterator for packages that contain messages/services :param mode: .msg or .srv, str |
Function | list |
List msgs contained in package :param package: package name, str :param rospack: an optional rospack instance to be reused, rospkg.RosPack :returns: list of msgs in package, [str] |
Function | list |
List srvs contained in package :param package: package name, str :param rospack: an optional rospack instance to be reused, rospkg.RosPack :returns: list of srvs in package, [str] |
Function | list |
Lists msg/srvs contained in package :param package: package name, str :param mode: MODE_MSG or MODE_SRV. Defaults to msgs, str :param rospack: an optional rospack instance to be reused, rospkg.RosPack :returns: list of msgs/srv in package, ... |
Function | represent |
Undocumented |
Function | rosmsg |
Undocumented |
Function | rosmsg |
Undocumented |
Function | rosmsg |
Undocumented |
Function | rosmsg |
Undocumented |
Function | rosmsg |
Undocumented |
Function | rosmsg |
Undocumented |
Function | rosmsg |
Prints contents of msg/srv file :param mode: MODE_MSG or MODE_SRV, str |
Function | rosmsg |
Undocumented |
Function | rosmsg |
Iterator for all packages that contain a message matching base_type |
Function | rosmsgmain |
Main entry point for command-line tools (rosmsg/rossrv). |
Function | spec |
Convert spec into a string representation. Helper routine for MsgSpec. :param indent: internal use only, str :param buff: internal use only, StringIO :returns: string representation of spec, str |
Constant | MAX |
Undocumented |
Constant | MODE |
Undocumented |
Constant | MODE |
Undocumented |
Function | _get |
Undocumented |
Function | _list |
List resources in a package directory within a particular subdirectory. This is useful for listing messages, services, etc... :param rfilter: resource filter function that returns true if filename is the desired resource type, ... |
Function | _list |
List all messages in the specified package :param package str: name of package to search :param include_depends bool: if True, will also list messages in package dependencies :returns [str]: message type names... |
Function | _msg |
Undocumented |
Function | _stdin |
Undocumented |
Variable | _catkin |
Undocumented |
Variable | _catkin |
Undocumented |
returns a single instance of field_type, where field_type can be a message or ros primitive or an flexible size array.
Builds a YAML string of message. @param msg: A object, dict or array @param flow_style_: if True, produces one line with brackets, if false uses multiple lines with indentation, if None uses both using heuristics @param prefix: prefixes all lines with this string @param fill_arrays_: if True, for all flexible size arrays an element will be generated @param current_time: currently not used. Only provided for API compatibility. current_time passes in the current time with respect to the message. @type current_time: Time @param field_filter: filter the fields that are strified for Messages. @type field_filter: fn(Message)->iter(str) @type flow_style_: bool @return: a string
Convert spec into a string representation. Helper routine for MsgSpec. :param indent: internal use only, str :param buff: internal use only, StringIO :returns: string representation of spec, str
Get .srv file for type_ as text :param type_: service type, str :param raw: if True, include comments and whitespace (default False), bool :returns: text of .srv file, str @raise ROSMsgException: if type_ is unknown
Get .msg file for type_ as text
:param type_: message type, str
:param raw: if True, include comments and whitespace (default False), bool
:returns: text of .msg file, str
:raises ROSMsgException
If type_ is unknown
List srvs contained in package :param package: package name, str :param rospack: an optional rospack instance to be reused, rospkg.RosPack :returns: list of srvs in package, [str]
List msgs contained in package :param package: package name, str :param rospack: an optional rospack instance to be reused, rospkg.RosPack :returns: list of msgs in package, [str]
Lists msg/srvs contained in package :param package: package name, str :param mode: MODE_MSG or MODE_SRV. Defaults to msgs, str :param rospack: an optional rospack instance to be reused, rospkg.RosPack :returns: list of msgs/srv in package, [str]
List all messages in the specified package :param package str: name of package to search :param include_depends bool: if True, will also list messages in package dependencies :returns [str]: message type names
List resources in a package directory within a particular subdirectory. This is useful for listing messages, services, etc... :param rfilter: resource filter function that returns true if filename is the desired resource type, fn(filename)->bool