Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 970 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 970 Bytes

ROS message parser / render / .hs generator

Build Status Build status Hackage Hackage Dependencies Haskell Programming Language BSD3 License

Install

$ git clone https://github.com/RoboticsHS/rosmsg
$ cd rosmsg
$ stack ghci

Fun

Parse / render

> let Done _ msg = parse Robotics.ROS.Msg.Parser.rosmsg "uint8 data"
> render msg
"uint8 data"

QuasiQuotes

> [Robotics.ROS.Msg.TH.rosmsgFrom|/opt/ros/indigo/share/std_msgs/msg/Byte.msg|]
"[Variable (\"data\",Simple RByte)]"