fkie_mas_pylib.ros_pkg module
- fkie_mas_pylib.ros_pkg.get_cwd(cwd: str, binary: str = '') str
- fkie_mas_pylib.ros_pkg.get_name(path: str) Tuple[str, str]
The results are cached!
- Returns:
Returns for given directory a tuple of package name and package path.
- Return type:
tuple(str, str), empty strings if no package was found
- fkie_mas_pylib.ros_pkg.get_packages(path: str | None) Dict[str, str]
- fkie_mas_pylib.ros_pkg.get_path(package_name: str) str
- Noindex:
- fkie_mas_pylib.ros_pkg.get_ros_resource_from_package(path: str, path_suffix: str) List[str]
Return the full path to a file in the share directory of a package. For ROS2 functionality.
- Raises:
PackageNotFoundError if package is not found
- Raises:
FileNotFoundError if the file is not found in the package
- Raises:
MultipleLaunchFilesError if the file is found in multiple places
- fkie_mas_pylib.ros_pkg.is_package(file_list: List[str]) bool
- fkie_mas_pylib.ros_pkg.reset_cache() None