Implements rosmsg/rossrv command-line tools.
The code API of the rosmsg module is unstable.
|
construct_ordered_mapping(self,
node,
deep=False) |
source code
|
|
|
construct_yaml_map_with_ordered_dict(self,
node) |
source code
|
|
|
represent_ordered_mapping(self,
tag,
mapping,
flow_style=None) |
source code
|
|
|
get_array_type_instance(field_type,
default_package=None)
returns a single instance of field_type, where field_type can be a
message or ros primitive or an flexible size array. |
source code
|
|
|
get_yaml_for_msg(msg,
prefix='
' ,
time_offset=None,
current_time=None,
field_filter=None,
flow_style_=None,
fill_arrays_=False)
Builds a YAML string of message. |
source code
|
|
|
create_names_filter(names)
returns a function to use as filter that returns all objects slots
except those with names in list. |
source code
|
|
|
|
|
|
|
|
|
get_srv_text(type_,
raw=False,
rospack=None)
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`` |
source code
|
|
|
get_msg_text(type_,
raw=False,
rospack=None)
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
:exc:`ROSMsgException` If type_ is unknown |
source code
|
|
|
rosmsg_debug(rospack,
mode,
type_,
raw=False)
Prints contents of msg/srv file :param mode: MODE_MSG or MODE_SRV,
``str`` |
source code
|
|
|
list_srvs(package,
rospack=None)
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]`` |
source code
|
|
|
list_msgs(package,
rospack=None)
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]`` |
source code
|
|
|
list_types(package,
mode=' .msg ' ,
rospack=None)
Lists msg/srvs contained in package :param package: package name,
``str`` :param mode: MODE_MSG or MODE_SRV. |
source code
|
|
|
iterate_packages(rospack,
mode)
Iterator for packages that contain messages/services :param mode:
.msg or .srv, ``str`` |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fullusage(mode)
:param cmd: command name, ``str`` :returns: usage text for cmd,
``str`` |
source code
|
|
|
|