#include "sick_scan/sick_scan_base.h"#include "roscpp_serialization_macros.h"#include <ros/types.h>#include <ros/time.h>#include "serialized_message.h"#include "ros/message_traits.h"#include "ros/builtin_message_traits.h"#include "ros/exception.h"#include "ros/datatypes.h"#include <vector>#include <map>#include <cstring>
Go to the source code of this file.
Namespaces | |
| roswrap | |
| roswrap::serialization | |
| roswrap::serialization::stream_types | |
| Enum. | |
Macros | |
| #define | ROS_CREATE_SIMPLE_SERIALIZER(Type) |
| #define | ROS_CREATE_SIMPLE_SERIALIZER_ARM(Type) |
| #define | ROS_DECLARE_ALLINONE_SERIALIZER |
| Declare your serializer to use an allInOne member instead of requiring 3 different serialization functions. More... | |
| #define | ROS_NEW_SERIALIZATION_API 1 |
| #define | ROSCPP_SERIALIZATION_H |
Typedefs | |
| typedef stream_types::StreamType | roswrap::serialization::StreamType |
Functions | |
| template<typename T , size_t N, typename Stream > | |
| void | roswrap::serialization::deserialize (Stream &stream, std::array< T, N > &t) |
| deserialize version for std::array More... | |
| template<typename T , class ContainerAllocator , typename Stream > | |
| void | roswrap::serialization::deserialize (Stream &stream, std::vector< T, ContainerAllocator > &t) |
| deserialize version for std::vector More... | |
| template<typename T , typename Stream > | |
| void | roswrap::serialization::deserialize (Stream &stream, T &t) |
| Deserialize an object. Stream here should normally be a ros::serialization::IStream. More... | |
| template<typename M > | |
| void | roswrap::serialization::deserializeMessage (const SerializedMessage &m, M &message) |
| Deserialize a message. If includes_length is true, skips the first 4 bytes. More... | |
| template<typename T , size_t N> | |
| uint32_t | roswrap::serialization::serializationLength (const std::array< T, N > &t) |
| serializationLength version for std::array More... | |
| template<typename T , class ContainerAllocator > | |
| uint32_t | roswrap::serialization::serializationLength (const std::vector< T, ContainerAllocator > &t) |
| serializationLength version for std::vector More... | |
| template<typename T > | |
| uint32_t | roswrap::serialization::serializationLength (const T &t) |
| Determine the serialized length of an object. More... | |
| template<typename T , size_t N, typename Stream > | |
| void | roswrap::serialization::serialize (Stream &stream, const std::array< T, N > &t) |
| serialize version for std::array More... | |
| template<typename T , class ContainerAllocator , typename Stream > | |
| void | roswrap::serialization::serialize (Stream &stream, const std::vector< T, ContainerAllocator > &t) |
| serialize version for std::vector More... | |
| template<typename T , typename Stream > | |
| void | roswrap::serialization::serialize (Stream &stream, const T &t) |
| Serialize an object. Stream here should normally be a ros::serialization::OStream. More... | |
| template<typename M > | |
| SerializedMessage | roswrap::serialization::serializeMessage (const M &message) |
| Serialize a message. More... | |
| template<typename M > | |
| SerializedMessage | roswrap::serialization::serializeServiceResponse (bool ok, const M &message) |
| Serialize a service response. More... | |
| ROSCPP_SERIALIZATION_DECL void | roswrap::serialization::throwStreamOverrun () |
| #define ROS_CREATE_SIMPLE_SERIALIZER | ( | Type | ) |
Definition at line 176 of file serialization.h.
| #define ROS_CREATE_SIMPLE_SERIALIZER_ARM | ( | Type | ) |
Definition at line 195 of file serialization.h.
| #define ROS_DECLARE_ALLINONE_SERIALIZER |
Declare your serializer to use an allInOne member instead of requiring 3 different serialization functions.
The allinone method has the form:
template<typename Stream, typename T>
inline static void allInOne(Stream& stream, T t)
{
stream.next(t.a);
stream.next(t.b);
...
}
The only guarantee given is that Stream::next(T) is defined.
Definition at line 74 of file serialization.h.
| #define ROS_NEW_SERIALIZATION_API 1 |
Definition at line 55 of file serialization.h.
| #define ROSCPP_SERIALIZATION_H |
Definition at line 30 of file serialization.h.