Package roslib :: Module resources
[frames] | no frames]

Module resources

source code

Warning: do not use this library. It is unstable and most of the routines here have been superceded by other libraries (e.g. rospkg). These routines will likely be *deleted* in future releases.

Functions
 
list_package_resources_by_dir(package_dir, include_depends, subdir, rfilter=<function isfile at 0x7fa512083f50>)
List resources in a package directory within a particular subdirectory.
source code
 
list_package_resources(package, include_depends, subdir, rfilter=<function isfile at 0x7fa512083f50>)
List resources in a package within a particular subdirectory.
source code
Variables
  __package__ = 'roslib'
Function Details

list_package_resources_by_dir(package_dir, include_depends, subdir, rfilter=<function isfile at 0x7fa512083f50>)

source code 

List resources in a package directory within a particular subdirectory. This is useful for listing messages, services, etc...

Parameters:
  • package_dir (str) - package directory location
  • subdir (str) - name of subdirectory
  • include_depends (bool) - if True, include resources in dependencies as well
  • rfilter (fn(filename)->bool) - resource filter function that returns true if filename is the desired resource type

list_package_resources(package, include_depends, subdir, rfilter=<function isfile at 0x7fa512083f50>)

source code 

List resources in a package within a particular subdirectory. This is useful for listing messages, services, etc...

Parameters:
  • package (str) - package name
  • subdir (str) - name of subdirectory
  • include_depends (bool) - if True, include resources in dependencies as well
  • rfilter (fn(filename)->bool) - resource filter function that returns true if filename is the desired resource type