roshask-0.2.1: Haskell support for the ROS robotics framework.

Safe HaskellNone
LanguageHaskell2010

Ros.Internal.DepFinder

Synopsis

Documentation

findPackageDeps :: FilePath -> IO [FilePath] Source

Find the paths to the packages this package depends on as indicated by the manifest.xml file in this package's root directory.

findPackageDepNames :: FilePath -> IO [String] Source

Find the names of the ROS packages this package depends on as indicated by the manifest.xml or package.xml file in this package's root directory.

findPackageDepsTrans :: FilePath -> IO [FilePath] Source

Transitive closure of findPackageDeps. Find the paths to the packages this package depends on as indicated by the manifest.xml file in this package's root directories and the manifests in the root directories of the dependencies, and so on.

findMessages :: FilePath -> IO [FilePath] Source

Return the full path to every .msg file in the given package directory.

findMessage :: String -> String -> IO (Maybe FilePath) Source

Find the path to the message definition (.msg) file for a message type with the given name. The first argument is a home package used to resolve unqualified message names. The second argument is the name of the message type either in the form "pkgName/typeName" or "typeName". The specified package will be searched for using the search paths indicated in the current environment (ROS_PACKAGE_PATH and ROS_ROOT).

findMessagesInPkg :: String -> IO (FilePath, [FilePath]) Source

Find all message definition files in a ROS package. Returns the FilePath to the package, and the FilePath to each message definition in the package.

findDepsWithMessages :: FilePath -> IO [String] Source

Find the names of the ROS packages the package at the given FilePath depends on as indicated by its manifest.xml file. Only those packages that define messages or services are returned.

hasMsgsOrSrvs :: FilePath -> IO Bool Source

Returns True if the ROS package at the given FilePath defines any messages or services