Namespaces | Classes | Typedefs | Functions
ros::serialization Namespace Reference

Namespaces

 stream_types
 Enum.
 

Classes

struct  ArraySerializer
 Array serializer, default implementation does nothing. More...
 
struct  ArraySerializer< T, N, typename boost::disable_if< mt::IsFixedSize< T > >::type >
 Array serializer, specialized for non-fixed-size, non-simple types. More...
 
struct  ArraySerializer< T, N, typename boost::enable_if< mpl::and_< mt::IsFixedSize< T >, mpl::not_< mt::IsSimple< T > > > >::type >
 Array serializer, specialized for fixed-size, non-simple types. More...
 
struct  ArraySerializer< T, N, typename boost::enable_if< mt::IsSimple< T > >::type >
 Array serializer, specialized for fixed-size, simple types. More...
 
struct  IStream
 Input stream. More...
 
struct  LStream
 Length stream. More...
 
struct  OStream
 Output stream. More...
 
struct  PreDeserialize
 called by the SubscriptionCallbackHelper after a message is instantiated but before that message is deserialized More...
 
struct  PreDeserializeParams
 
struct  Serializer
 Templated serialization class. Default implementation provides backwards compatibility with old message types. More...
 
struct  Serializer< bool >
 Serializer specialized for bool (serialized as uint8) More...
 
struct  Serializer< ros::Duration >
 Serializer specialized for ros::Duration. More...
 
struct  Serializer< ros::Time >
 Serializer specialized for ros::Time. More...
 
struct  Serializer< std::basic_string< char, std::char_traits< char >, ContainerAllocator > >
 Serializer specialized for std::string. More...
 
struct  Stream
 Stream base-class, provides common functionality for IStream and OStream. More...
 
class  StreamOverrunException
 
struct  VectorSerializer
 Vector serializer. Default implementation does nothing. More...
 
struct  VectorSerializer< T, ContainerAllocator, typename boost::disable_if< mt::IsFixedSize< T > >::type >
 Vector serializer, specialized for non-fixed-size, non-simple types. More...
 
struct  VectorSerializer< T, ContainerAllocator, typename boost::enable_if< mpl::and_< mt::IsFixedSize< T >, mpl::not_< mt::IsSimple< T > > > >::type >
 Vector serializer, specialized for fixed-size non-simple types. More...
 
struct  VectorSerializer< T, ContainerAllocator, typename boost::enable_if< mt::IsSimple< T > >::type >
 Vector serializer, specialized for fixed-size simple types. More...
 

Typedefs

typedef stream_types::StreamType StreamType
 

Functions

template<typename T , typename Stream >
void deserialize (Stream &stream, T &t)
 Deserialize an object. Stream here should normally be a ros::serialization::IStream. More...
 
template<typename T , class ContainerAllocator , typename Stream >
void deserialize (Stream &stream, std::vector< T, ContainerAllocator > &t)
 deserialize version for std::vector More...
 
template<typename T , size_t N, typename Stream >
void deserialize (Stream &stream, boost::array< T, N > &t)
 deserialize version for boost::array More...
 
template<typename M >
void deserializeMessage (const SerializedMessage &m, M &message)
 Deserialize a message. If includes_length is true, skips the first 4 bytes. More...
 
template<typename T >
uint32_t serializationLength (const T &t)
 Determine the serialized length of an object. More...
 
template<typename T , class ContainerAllocator >
uint32_t serializationLength (const std::vector< T, ContainerAllocator > &t)
 serializationLength version for std::vector More...
 
template<typename T , size_t N>
uint32_t serializationLength (const boost::array< T, N > &t)
 serializationLength version for boost::array More...
 
template<typename T , typename Stream >
void serialize (Stream &stream, const T &t)
 Serialize an object. Stream here should normally be a ros::serialization::OStream. More...
 
template<typename T , class ContainerAllocator , typename Stream >
void serialize (Stream &stream, const std::vector< T, ContainerAllocator > &t)
 serialize version for std::vector More...
 
template<typename T , size_t N, typename Stream >
void serialize (Stream &stream, const boost::array< T, N > &t)
 serialize version for boost::array More...
 
template<typename M >
SerializedMessage serializeMessage (const M &message)
 Serialize a message. More...
 
template<typename M >
SerializedMessage serializeServiceResponse (bool ok, const M &message)
 Serialize a service response. More...
 
ROSCPP_SERIALIZATION_DECL void throwStreamOverrun ()
 

Typedef Documentation

◆ StreamType

Definition at line 657 of file serialization.h.

Function Documentation

◆ deserialize() [1/3]

template<typename T , typename Stream >
void ros::serialization::deserialize ( Stream stream,
T &  t 
)
inline

Deserialize an object. Stream here should normally be a ros::serialization::IStream.

Definition at line 161 of file serialization.h.

◆ deserialize() [2/3]

template<typename T , class ContainerAllocator , typename Stream >
void ros::serialization::deserialize ( Stream stream,
std::vector< T, ContainerAllocator > &  t 
)
inline

deserialize version for std::vector

Definition at line 483 of file serialization.h.

◆ deserialize() [3/3]

template<typename T , size_t N, typename Stream >
void ros::serialization::deserialize ( Stream stream,
boost::array< T, N > &  t 
)
inline

deserialize version for boost::array

Definition at line 631 of file serialization.h.

◆ deserializeMessage()

template<typename M >
void ros::serialization::deserializeMessage ( const SerializedMessage m,
M &  message 
)
inline

Deserialize a message. If includes_length is true, skips the first 4 bytes.

Definition at line 856 of file serialization.h.

◆ serializationLength() [1/3]

template<typename T >
uint32_t ros::serialization::serializationLength ( const T &  t)
inline

Determine the serialized length of an object.

Definition at line 170 of file serialization.h.

◆ serializationLength() [2/3]

template<typename T , class ContainerAllocator >
uint32_t ros::serialization::serializationLength ( const std::vector< T, ContainerAllocator > &  t)
inline

serializationLength version for std::vector

Definition at line 492 of file serialization.h.

◆ serializationLength() [3/3]

template<typename T , size_t N>
uint32_t ros::serialization::serializationLength ( const boost::array< T, N > &  t)
inline

serializationLength version for boost::array

Definition at line 640 of file serialization.h.

◆ serialize() [1/3]

template<typename T , typename Stream >
void ros::serialization::serialize ( Stream stream,
const T &  t 
)
inline

Serialize an object. Stream here should normally be a ros::serialization::OStream.

Definition at line 152 of file serialization.h.

◆ serialize() [2/3]

template<typename T , class ContainerAllocator , typename Stream >
void ros::serialization::serialize ( Stream stream,
const std::vector< T, ContainerAllocator > &  t 
)
inline

serialize version for std::vector

Definition at line 474 of file serialization.h.

◆ serialize() [3/3]

template<typename T , size_t N, typename Stream >
void ros::serialization::serialize ( Stream stream,
const boost::array< T, N > &  t 
)
inline

serialize version for boost::array

Definition at line 622 of file serialization.h.

◆ serializeMessage()

template<typename M >
SerializedMessage ros::serialization::serializeMessage ( const M &  message)
inline

Serialize a message.

Definition at line 804 of file serialization.h.

◆ serializeServiceResponse()

template<typename M >
SerializedMessage ros::serialization::serializeServiceResponse ( bool  ok,
const M &  message 
)
inline

Serialize a service response.

Definition at line 823 of file serialization.h.

◆ throwStreamOverrun()

void ros::serialization::throwStreamOverrun ( )

Definition at line 34 of file serialization.cpp.



roscpp_serialization
Author(s): Josh Faust
autogenerated on Mon Feb 28 2022 23:31:39