| Home | Trees | Indices | Help |
|
|---|
|
|
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.
| Classes | |
|
ROSPkgException Base class of package-related errors. |
|
|
InvalidROSPkgException Exception that indicates that a ROS package does not exist |
|
|
MultipleNodesException Exception that indicates that multiple ROS nodes by the same name are in the same package. |
|
| Functions | |||
| (str, str) |
|
||
| str |
|
||
| str |
|
||
| str |
|
||
| [str] |
|
||
|
|||
|
|||
| Variables | |
SRC_DIR =
|
|
ROS_PACKAGE_PATH =
|
|
ROS_ROOT =
|
|
MANIFEST_FILE =
|
|
PACKAGE_FILE =
|
|
__package__ =
|
|
| Function Details |
Get the package that the directory is contained within. This is determined by finding the nearest parent manifest.xml file. This isn't 100% reliable, but symlinks can fool any heuristic that relies on ROS_ROOT.
|
Locate directory package is stored in. This routine uses an internal cache. NOTE: cache does *not* rebuild if packages are relocated after this process is initiated.
|
|
|
List ROS packages within the specified path. Optionally, a cache dictionary can be provided, which will be updated with the package->path mappings. list_pkgs_by_path() does NOT returned cached results -- it only updates the cache.
|
Warning: unstable API due to catkin. Locate the executable that implements the node :param node_type: type of node, ``str`` :returns: path to node or None if node is not in the package ``str`` :raises: :exc:rospkg.ResourceNotFound` If package does not exist |
Warning: unstable API due to catkin.
Locate the file named resource_name in package, optionally
matching specified filter. find_resource() will return a list of
matches, but only for a given scope. If the resource is found in
the binary build directory, it will only return matches in that
directory; it will not return matches from the ROS_PACKAGE_PATH as
well in this case.
:param filter: function that takes in a path argument and
returns True if the it matches the desired resource, ``fn(str)``
:param rospack: `rospkg.RosPack` instance to use
:returns: lists of matching paths for resource within a given scope, ``[str]``
:raises: :exc:`rospkg.ResourceNotFound` If package does not exist
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Mar 1 07:28:11 2022 | http://epydoc.sourceforge.net |