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

Safe HaskellSafe
LanguageHaskell2010

Ros.Internal.PathUtil

Synopsis

Documentation

cap :: String -> String Source

Ensure that the first character in a String is capitalized.

isPkg :: FilePath -> IO Bool Source

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

isStack :: FilePath -> IO Bool Source

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

pathToPkgName :: FilePath -> String Source

Identify the name of the package defining a msg.

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

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 Source

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