Namespaces | |
namespace | 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. | |
template<typename T , class ContainerAllocator , typename Stream > | |
void | deserialize (Stream &stream, std::vector< T, ContainerAllocator > &t) |
deserialize version for std::vector | |
template<typename T , size_t N, typename Stream > | |
void | deserialize (Stream &stream, boost::array< T, N > &t) |
deserialize version for boost::array | |
template<typename M > | |
void | deserializeMessage (const SerializedMessage &m, M &message) |
Deserialize a message. If includes_length is true, skips the first 4 bytes. | |
ROS_CREATE_SIMPLE_SERIALIZER (uint8_t) | |
ROS_CREATE_SIMPLE_SERIALIZER (int8_t) | |
ROS_CREATE_SIMPLE_SERIALIZER (uint16_t) | |
ROS_CREATE_SIMPLE_SERIALIZER (int16_t) | |
ROS_CREATE_SIMPLE_SERIALIZER (uint32_t) | |
ROS_CREATE_SIMPLE_SERIALIZER (int32_t) | |
ROS_CREATE_SIMPLE_SERIALIZER (uint64_t) | |
ROS_CREATE_SIMPLE_SERIALIZER (int64_t) | |
ROS_CREATE_SIMPLE_SERIALIZER (float) | |
ROS_CREATE_SIMPLE_SERIALIZER (double) | |
template<typename T > | |
uint32_t | serializationLength (const T &t) |
Determine the serialized length of an object. | |
template<typename T , class ContainerAllocator > | |
uint32_t | serializationLength (const std::vector< T, ContainerAllocator > &t) |
serializationLength version for std::vector | |
template<typename T , size_t N> | |
uint32_t | serializationLength (const boost::array< T, N > &t) |
serializationLength version for boost::array | |
template<typename T , typename Stream > | |
void | serialize (Stream &stream, const T &t) |
Serialize an object. Stream here should normally be a ros::serialization::OStream. | |
template<typename T , class ContainerAllocator , typename Stream > | |
void | serialize (Stream &stream, const std::vector< T, ContainerAllocator > &t) |
serialize version for std::vector | |
template<typename T , size_t N, typename Stream > | |
void | serialize (Stream &stream, const boost::array< T, N > &t) |
serialize version for boost::array | |
template<typename M > | |
SerializedMessage | serializeMessage (const M &message) |
Serialize a message. | |
template<typename M > | |
SerializedMessage | serializeServiceResponse (bool ok, const M &message) |
Serialize a service response. | |
ROSCPP_SERIALIZATION_DECL void | throwStreamOverrun () |
Definition at line 697 of file serialization.h.
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.
void ros::serialization::deserialize | ( | Stream & | stream, |
std::vector< T, ContainerAllocator > & | t | ||
) | [inline] |
deserialize version for std::vector
Definition at line 523 of file serialization.h.
void ros::serialization::deserialize | ( | Stream & | stream, |
boost::array< T, N > & | t | ||
) | [inline] |
deserialize version for boost::array
Definition at line 671 of file serialization.h.
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 897 of file serialization.h.
ros::serialization::ROS_CREATE_SIMPLE_SERIALIZER | ( | uint8_t | ) |
ros::serialization::ROS_CREATE_SIMPLE_SERIALIZER | ( | uint16_t | ) |
ros::serialization::ROS_CREATE_SIMPLE_SERIALIZER | ( | int16_t | ) |
ros::serialization::ROS_CREATE_SIMPLE_SERIALIZER | ( | uint32_t | ) |
ros::serialization::ROS_CREATE_SIMPLE_SERIALIZER | ( | int32_t | ) |
ros::serialization::ROS_CREATE_SIMPLE_SERIALIZER | ( | uint64_t | ) |
ros::serialization::ROS_CREATE_SIMPLE_SERIALIZER | ( | int64_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.
uint32_t ros::serialization::serializationLength | ( | const std::vector< T, ContainerAllocator > & | t | ) | [inline] |
serializationLength version for std::vector
Definition at line 532 of file serialization.h.
uint32_t ros::serialization::serializationLength | ( | const boost::array< T, N > & | t | ) | [inline] |
serializationLength version for boost::array
Definition at line 680 of file serialization.h.
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.
void ros::serialization::serialize | ( | Stream & | stream, |
const std::vector< T, ContainerAllocator > & | t | ||
) | [inline] |
serialize version for std::vector
Definition at line 514 of file serialization.h.
void ros::serialization::serialize | ( | Stream & | stream, |
const boost::array< T, N > & | t | ||
) | [inline] |
serialize version for boost::array
Definition at line 662 of file serialization.h.
SerializedMessage ros::serialization::serializeMessage | ( | const M & | message | ) | [inline] |
Serialize a message.
Definition at line 845 of file serialization.h.
SerializedMessage ros::serialization::serializeServiceResponse | ( | bool | ok, |
const M & | message | ||
) | [inline] |
Serialize a service response.
Definition at line 864 of file serialization.h.
Definition at line 34 of file serialization.cpp.