30 #ifndef STD_MSGS_VECTOR_MULTI_ARRAY_ADAPTER_H 31 #define STD_MSGS_VECTOR_MULTI_ARRAY_ADAPTER_H 33 #include <std_msgs/Float32MultiArray.h> 34 #include <std_msgs/Float64MultiArray.h> 35 #include <std_msgs/Int16MultiArray.h> 36 #include <std_msgs/Int32MultiArray.h> 37 #include <std_msgs/Int64MultiArray.h> 38 #include <std_msgs/Int8MultiArray.h> 39 #include <std_msgs/UInt16MultiArray.h> 40 #include <std_msgs/UInt32MultiArray.h> 41 #include <std_msgs/UInt64MultiArray.h> 42 #include <std_msgs/UInt8MultiArray.h> 51 template <
typename T,
class ContainerAllocator = std::allocator<T> >
62 :
vector_(const_cast<VectorType*>(&v)) {}
77 #define STD_MSGS_DEFINE_MULTIARRAY_TRAITS(value_type, msg, static_md5sum1, static_md5sum2) \ 80 namespace message_traits \ 83 template <class ContainerAllocator> struct MD5Sum<std_msgs::VectorMultiArrayAdapter<value_type, ContainerAllocator> > \ 85 static const char* value() \ 87 ROS_STATIC_ASSERT(MD5Sum<std_msgs::msg>::static_value1 == static_md5sum1); \ 88 ROS_STATIC_ASSERT(MD5Sum<std_msgs::msg>::static_value2 == static_md5sum2); \ 89 return MD5Sum<std_msgs::msg>::value(); \ 92 static const char* value(const std_msgs::VectorMultiArrayAdapter<value_type, ContainerAllocator> &) \ 98 template <class ContainerAllocator> struct DataType<std_msgs::VectorMultiArrayAdapter<value_type, ContainerAllocator> > \ 100 static const char* value() \ 102 return DataType<std_msgs::msg>::value(); \ 105 static const char* value(const std_msgs::VectorMultiArrayAdapter<value_type, ContainerAllocator> &) \ 111 template <class ContainerAllocator> struct Definition<std_msgs::VectorMultiArrayAdapter<value_type, ContainerAllocator> > \ 113 static const char* value() \ 115 return Definition<std_msgs::msg>::value(); \ 118 static const char* value(const std_msgs::VectorMultiArrayAdapter<value_type, ContainerAllocator> &) \ 139 namespace serialization {
141 template <
typename T,
class ContainerAllocator>
146 template<
typename Stream>
151 stream.next((uint32_t)1);
152 stream.next(std::string());
153 stream.next((uint32_t)v->size());
154 stream.next((uint32_t)1);
155 stream.next((uint32_t)0);
159 template<
typename Stream>
162 std_msgs::MultiArrayLayout_<ContainerAllocator> layout;
176 #endif // STD_MSGS_VECTOR_MULTI_ARRAY_ADAPTER_H const VectorType & operator*() const
static void write(Stream &stream, const AdaptedType &v)
std::vector< T, ContainerAllocator > VectorType
VectorMultiArrayAdapter()
static uint32_t serializedLength(const AdaptedType &v)
std_msgs::VectorMultiArrayAdapter< T, ContainerAllocator > AdaptedType
#define STD_MSGS_DEFINE_MULTIARRAY_TRAITS(value_type, msg, static_md5sum1, static_md5sum2)
VectorMultiArrayAdapter(VectorType &v)
const VectorType * operator->() const
uint32_t serializationLength(const T &t)
VectorType * operator->()
static void read(Stream &stream, AdaptedType &v)
VectorMultiArrayAdapter(const VectorType &v)