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

Ros.Core.Msg.HeaderSupport

Description

If a message type's first field is of type Header, its sequence number is automatically incremented by the ROS Topic machinery.

Synopsis

Documentation

class HasHeader a where

Methods

getSequence :: a -> Word32

getFrame :: a -> String

getStamp :: a -> ROSTime

setSequence :: Word32 -> a -> a

Instances

putStampedMsg :: (HasHeader a, RosBinary a) => Word32 -> a -> Put

Serialize a message after setting the sequence number in its header.