rosmsg-0.5.2.0: ROS message parser, render, TH

CopyrightAlexander Krupenkin 2016
LicenseBSD3
Maintainermail@akru.me
Stabilityexperimental
PortabilityPOSIX / WIN32
Safe HaskellNone
LanguageHaskell2010

Robotics.ROS.Msg.Class

Description

ROS message type class declaration.

Synopsis

Documentation

class Binary a => Message a where Source #

Haskell native type for ROS message language described data structure. Serialization guaranted by Binary super class. And no more is needed for transfer over socket.

Minimal complete definition

getType, getSource, getDigest

Methods

getType :: a -> Text Source #

Get message type string, e.g. std_msgs/Char

getSource :: a -> Text Source #

Get message source

getDigest :: a -> MD5Digest Source #

Get recurrent MD5 of message source

class Message a => Stamped a where Source #

Sometime ROS messages have a special Header field. It used for tracking package sequence, time stamping and frame tagging. Headers is frequently field. The Stamped type class lifts header fields on the top of message and abstracting of type.

Minimal complete definition

getSequence, setSequence, getStamp, getFrame

Methods

getSequence :: a -> Word32 Source #

Get sequence number

setSequence :: Word32 -> a -> a Source #

Set sequence number

getStamp :: a -> ROSTime Source #

Get timestamp of message

getFrame :: a -> ByteString Source #

Get frame of message