Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BufferedSerial motor_sn7544
Serializer< T > Struct Template Reference
Templated serialization class. More...
#include <serialization.h>
Static Public Member Functions | |
template<typename Stream > | |
static void | write (Stream &stream, typename boost::call_traits< T >::param_type t) |
Write an object to the stream. | |
template<typename Stream > | |
static void | read (Stream &stream, typename boost::call_traits< T >::reference t) |
Read an object from the stream. | |
static uint32_t | serializedLength (typename boost::call_traits< T >::param_type t) |
Determine the serialized length of an object. |
Detailed Description
template<typename T>
struct ros::serialization::Serializer< T >
Templated serialization class.
Default implementation provides backwards compatibility with old message types.
Specializing the Serializer class is the only thing you need to do to get the ROS serialization system to work with a type.
Definition at line 119 of file serialization.h.
Member Function Documentation
static void read | ( | Stream & | stream, |
typename boost::call_traits< T >::reference | t | ||
) | [static] |
Read an object from the stream.
Normally the stream passed in here will be a ros::serialization::IStream
Definition at line 134 of file serialization.h.
static uint32_t serializedLength | ( | typename boost::call_traits< T >::param_type | t ) | [static] |
Determine the serialized length of an object.
Definition at line 142 of file serialization.h.
static void write | ( | Stream & | stream, |
typename boost::call_traits< T >::param_type | t | ||
) | [static] |
Write an object to the stream.
Normally the stream passed in here will be a ros::serialization::OStream
Definition at line 125 of file serialization.h.
Generated on Wed Jul 13 2022 07:13:54 by
