Safe Haskell | None |
---|---|
Language | Haskell2010 |
Binary serialization/deserialization utilities for types used in ROS messages. This module is used by generated code for .msg types. NOTE: The native byte ordering of the host is used to support the common scenario of same-machine transport.
- class RosBinary a where
- getAscii :: Get Char
- putAscii :: Char -> Put
- putUnit :: Put
- getUnit :: Get ()
- putList :: RosBinary a => [a] -> Put
- getList :: RosBinary a => Get [a]
- putFixedList :: RosBinary a => [a] -> Put
- getFixedList :: RosBinary a => Int -> Get [a]
- getInt32 :: Get Int
- putInt32 :: Int -> Put
- getFixed :: forall a. Storable a => Int -> Get (Vector a)
- putFixed :: (Storable a, RosBinary a) => Vector a -> Put
Documentation
class RosBinary a where Source
A type class for binary serialization of ROS messages. Very like the standard Data.Binary type class, but with different, more compact, instances for base types and an extra class method for dealing with message headers.
putFixedList :: RosBinary a => [a] -> Put Source
getFixedList :: RosBinary a => Int -> Get [a] Source