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

Ros.Core.PathUtil

Synopsis

Documentation

cap :: String -> String

Ensure that the first character in a String is capitalized.

isPkg :: FilePath -> IO Bool

Determine if a path is a directory containing a ROS package.

isStack :: FilePath -> IO Bool

Determine if a path is a directory containing a ROS stack.

pathToPkgName :: FilePath -> String

Identify the name of the package defining a msg.

stackName :: FilePath -> IO (Maybe String)

Identify the name of the stack in which a msg is defined. If the package definining the message does not live in a stack, the result is Nothing.

codeGenDir :: FilePath -> IO FilePath

Given a path to a msg definition file, compute a destination directory for generated Haskell code. A typical path will be under, ~.cabalshareroshask.