Warning: while most of this API is stable, some parts are still fairly
experimental and incomplete. In particular, the ROSPackages class in very experimental.
bool
|
|
|
|
(str, str)
|
|
str
|
get_pkg_dir(package,
required=True,
ros_root=None,
ros_package_path=None)
Locate directory package is stored in. |
source code
|
|
str
|
get_pkg_subdir(package,
subdir,
required=True,
env=None)
Returns:
Package subdirectory if package exist, otherwise None. |
source code
|
|
str
|
resource_file(package,
subdir,
resource_name)
Returns:
path to resource in the specified subdirectory of the package, or
None if the package does not exists |
source code
|
|
[str]
|
|
[str]
|
|
str
|
find_node(pkg,
node_type,
ros_root=None,
ros_package_path=None)
Locate the executable that implements the node |
source code
|
|
[str]
|
find_resource(pkg,
resource_name,
filter_fn=None,
ros_root=None,
ros_package_path=None)
Locate the file named resource_name in package, optionally matching
specified filter |
source code
|
|
{str: [str]}
|
|
|
platform_supported(pkg,
os,
version)
Return whether the platform defined by os and version is marked as
supported in the package @param pkg The package to test for support
@param os The os name to test for support @param version The os
version to test for support |
source code
|
|
|
current_platform_supported(pkg)
Return whether the current running platform is marked as supported in
the package @param pkg The package to test for support |
source code
|
|