Go to the documentation of this file.
6 #ifndef STD_MSGS_MESSAGE_MULTIARRAYLAYOUT_H
7 #define STD_MSGS_MESSAGE_MULTIARRAYLAYOUT_H
14 #include <ros/types.h>
15 #include <ros/serialization.h>
16 #include <ros/builtin_message_traits.h>
17 #include <ros/message_operations.h>
23 template <
class ContainerAllocator>
40 typedef std::vector< ::std_msgs::MultiArrayDimension_<ContainerAllocator> ,
typename ContainerAllocator::template rebind< ::std_msgs::MultiArrayDimension_<ContainerAllocator> >::other >
_dim_type;
49 typedef std::shared_ptr< ::std_msgs::MultiArrayLayout_<ContainerAllocator> >
Ptr;
50 typedef std::shared_ptr< ::std_msgs::MultiArrayLayout_<ContainerAllocator>
const>
ConstPtr;
63 template<
typename ContainerAllocator>
64 std::ostream&
operator<<(std::ostream& s, const ::std_msgs::MultiArrayLayout_<ContainerAllocator> & v)
74 namespace message_traits
87 template <
class ContainerAllocator>
92 template <
class ContainerAllocator>
97 template <
class ContainerAllocator>
102 template <
class ContainerAllocator>
107 template <
class ContainerAllocator>
112 template <
class ContainerAllocator>
118 template<
class ContainerAllocator>
123 return "0fed2a11c13e11c5571b4e2a995a91a3";
126 static const char*
value(const ::std_msgs::MultiArrayLayout_<ContainerAllocator>&) {
return value(); }
127 static const uint64_t static_value1 = 0x0fed2a11c13e11c5ULL;
128 static const uint64_t static_value2 = 0x571b4e2a995a91a3ULL;
131 template<
class ContainerAllocator>
136 return "std_msgs/MultiArrayLayout";
139 static const char*
value(const ::std_msgs::MultiArrayLayout_<ContainerAllocator>&) {
return value(); }
142 template<
class ContainerAllocator>
147 return "# The multiarray declares a generic multi-dimensional array of a\n\
148 # particular data type. Dimensions are ordered from outer most\n\
151 MultiArrayDimension[] dim # Array of dimension properties\n\
152 uint32 data_offset # padding elements at front of data\n\
154 # Accessors should ALWAYS be written in terms of dimension stride\n\
155 # and specified outer-most dimension first.\n\
157 # multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k]\n\
159 # A standard, 3-channel 640x480 image with interleaved color channels\n\
160 # would be specified as:\n\
162 # dim[0].label = \"height\"\n\
163 # dim[0].size = 480\n\
164 # dim[0].stride = 3*640*480 = 921600 (note dim[0] stride is just size of image)\n\
165 # dim[1].label = \"width\"\n\
166 # dim[1].size = 640\n\
167 # dim[1].stride = 3*640 = 1920\n\
168 # dim[2].label = \"channel\"\n\
170 # dim[2].stride = 3\n\
172 # multiarray(i,j,k) refers to the ith row, jth column, and kth channel.\n\
174 ================================================================================\n\
175 MSG: std_msgs/MultiArrayDimension\n\
176 string label # label of given dimension\n\
177 uint32 size # size of given dimension (in type units)\n\
178 uint32 stride # stride of given dimension\n\
182 static const char*
value(const ::std_msgs::MultiArrayLayout_<ContainerAllocator>&) {
return value(); }
190 namespace serialization
195 template<
typename Stream,
typename T>
inline static void allInOne(
Stream& stream, T m)
198 stream.next(m.data_offset);
209 namespace message_operations
212 template<
class ContainerAllocator>
215 template<
typename Stream>
static void stream(Stream& s,
const std::string&
indent, const ::std_msgs::MultiArrayLayout_<ContainerAllocator>& v)
217 s <<
indent <<
"dim[]" << std::endl;
218 for (
size_t i = 0; i < v.dim.size(); ++i)
220 s <<
indent <<
" dim[" << i <<
"]: ";
225 s <<
indent <<
"data_offset: ";
233 #endif // STD_MSGS_MESSAGE_MULTIARRAYLAYOUT_H
static const char * value()
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
static const char * value(const ::std_msgs::MultiArrayLayout_< ContainerAllocator > &)
Templated serialization class. Default implementation provides backwards compatibility with old messa...
uint32_t _data_offset_type
static void stream(Stream &s, const std::string &indent, const M &value)
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
static const char * value(const ::std_msgs::MultiArrayLayout_< ContainerAllocator > &)
static const char * value(const ::std_msgs::MultiArrayLayout_< ContainerAllocator > &)
Specialize to provide the datatype for a message.
std::shared_ptr< ::std_msgs::MultiArrayLayout_< ContainerAllocator > const > ConstPtr
std::vector< ::std_msgs::MultiArrayDimension_< ContainerAllocator >, typename ContainerAllocator::template rebind< ::std_msgs::MultiArrayDimension_< ContainerAllocator > >::other > _dim_type
static const char * value()
Specialize to provide the definition for a message.
std::shared_ptr< ::std_msgs::MultiArrayLayout_< ContainerAllocator > > Ptr
std::shared_ptr< ::std_msgs::MultiArrayLayout const > MultiArrayLayoutConstPtr
MultiArrayLayout_< ContainerAllocator > Type
static void stream(Stream &s, const std::string &indent, const ::std_msgs::MultiArrayLayout_< ContainerAllocator > &v)
static void allInOne(Stream &stream, T m)
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
Specialize to provide the md5sum for a message.
::std_msgs::MultiArrayLayout_< std::allocator< void > > MultiArrayLayout
MultiArrayLayout_(const ContainerAllocator &_alloc)
_data_offset_type data_offset
Stream base-class, provides common functionality for IStream and OStream.
std::ostream & operator<<(std::ostream &s, const ::std_msgs::Bool_< ContainerAllocator > &v)
std::shared_ptr< ::std_msgs::MultiArrayLayout > MultiArrayLayoutPtr
static const char * value()
sick_scan_xd
Author(s): Michael Lehning
, Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:09