Static Public Member Functions | Static Private Member Functions | List of all members
rqt_py_common.rqt_roscomm_util.RqtRoscommUtil Class Reference
Inheritance diagram for rqt_py_common.rqt_roscomm_util.RqtRoscommUtil:
Inheritance graph
[legend]

Static Public Member Functions

def is_roscore_running ()
 
def iterate_packages (subdir)
 
def list_files (package, subdir, file_extension='.launch')
 
def load_parameters (config, caller_id)
 

Static Private Member Functions

def _list_resources (path, rfilter=os.path.isfile)
 
def _list_types (path, ext)
 
def _msg_filter (ext)
 

Detailed Description

Definition at line 45 of file rqt_roscomm_util.py.

Member Function Documentation

def rqt_py_common.rqt_roscomm_util.RqtRoscommUtil._list_resources (   path,
  rfilter = os.path.isfile 
)
staticprivate
Taken from rosmsg._list_resources

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``

Definition at line 170 of file rqt_roscomm_util.py.

def rqt_py_common.rqt_roscomm_util.RqtRoscommUtil._list_types (   path,
  ext 
)
staticprivate
Taken from rosmsg

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

Definition at line 150 of file rqt_roscomm_util.py.

def rqt_py_common.rqt_roscomm_util.RqtRoscommUtil._msg_filter (   ext)
staticprivate
Taken from rosmsg._msg_filter

Definition at line 188 of file rqt_roscomm_util.py.

def rqt_py_common.rqt_roscomm_util.RqtRoscommUtil.is_roscore_running ( )
static
@rtype: bool

Definition at line 201 of file rqt_roscomm_util.py.

def rqt_py_common.rqt_roscomm_util.RqtRoscommUtil.iterate_packages (   subdir)
static
Iterator for packages that contain the given subdir.

This method is generalizing rosmsg.iterate_packages.

@param subdir: eg. 'launch', 'msg', 'srv', 'action'
@type subdir: str
@raise ValueError:

Definition at line 105 of file rqt_roscomm_util.py.

def rqt_py_common.rqt_roscomm_util.RqtRoscommUtil.list_files (   package,
  subdir,
  file_extension = '.launch' 
)
static
#TODO: Come up with better name of the method.

Taken from rosmsg.
Lists files contained in the specified package

@param package: package name, ``str``
@param file_extension: Defaults to '.launch', ``str``
:returns: list of msgs/srv in package, ``[str]``

Definition at line 129 of file rqt_roscomm_util.py.

def rqt_py_common.rqt_roscomm_util.RqtRoscommUtil.load_parameters (   config,
  caller_id 
)
static
Load parameters onto the parameter server.

Copied from ROSLaunchRunner.

@type config: roslaunch.config.ROSLaunchConfig
@raise RLException:

Definition at line 48 of file rqt_roscomm_util.py.


The documentation for this class was generated from the following file:


rqt_py_common
Author(s): Dorian Scholz, Isaac Saito
autogenerated on Sat Mar 16 2019 02:54:17