5 #ifndef STD_MSGS_MESSAGE_MULTIARRAYLAYOUT_H 6 #define STD_MSGS_MESSAGE_MULTIARRAYLAYOUT_H 22 template <
class ContainerAllocator>
39 typedef std::vector< ::std_msgs::MultiArrayDimension_<ContainerAllocator> ,
typename ContainerAllocator::template rebind< ::std_msgs::MultiArrayDimension_<ContainerAllocator> >::other >
_dim_type;
62 template<
typename ContainerAllocator>
63 std::ostream& operator<<(std::ostream& s, const ::std_msgs::MultiArrayLayout_<ContainerAllocator> &
v)
73 namespace message_traits
86 template <
class ContainerAllocator>
91 template <
class ContainerAllocator>
96 template <
class ContainerAllocator>
101 template <
class ContainerAllocator>
106 template <
class ContainerAllocator>
111 template <
class ContainerAllocator>
117 template<
class ContainerAllocator>
122 return "0fed2a11c13e11c5571b4e2a995a91a3";
125 static const char*
value(const ::std_msgs::MultiArrayLayout_<ContainerAllocator>&) {
return value(); }
126 static const uint64_t static_value1 = 0x0fed2a11c13e11c5ULL;
127 static const uint64_t static_value2 = 0x571b4e2a995a91a3ULL;
130 template<
class ContainerAllocator>
135 return "std_msgs/MultiArrayLayout";
138 static const char*
value(const ::std_msgs::MultiArrayLayout_<ContainerAllocator>&) {
return value(); }
141 template<
class ContainerAllocator>
146 return "# The multiarray declares a generic multi-dimensional array of a\n\ 147 # particular data type. Dimensions are ordered from outer most\n\ 150 MultiArrayDimension[] dim # Array of dimension properties\n\ 151 uint32 data_offset # padding elements at front of data\n\ 153 # Accessors should ALWAYS be written in terms of dimension stride\n\ 154 # and specified outer-most dimension first.\n\ 156 # multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k]\n\ 158 # A standard, 3-channel 640x480 image with interleaved color channels\n\ 159 # would be specified as:\n\ 161 # dim[0].label = \"height\"\n\ 162 # dim[0].size = 480\n\ 163 # dim[0].stride = 3*640*480 = 921600 (note dim[0] stride is just size of image)\n\ 164 # dim[1].label = \"width\"\n\ 165 # dim[1].size = 640\n\ 166 # dim[1].stride = 3*640 = 1920\n\ 167 # dim[2].label = \"channel\"\n\ 169 # dim[2].stride = 3\n\ 171 # multiarray(i,j,k) refers to the ith row, jth column, and kth channel.\n\ 173 ================================================================================\n\ 174 MSG: std_msgs/MultiArrayDimension\n\ 175 string label # label of given dimension\n\ 176 uint32 size # size of given dimension (in type units)\n\ 177 uint32 stride # stride of given dimension\n\ 181 static const char*
value(const ::std_msgs::MultiArrayLayout_<ContainerAllocator>&) {
return value(); }
189 namespace serialization
197 stream.next(m.data_offset);
208 namespace message_operations
211 template<
class ContainerAllocator>
214 template<
typename Stream>
static void stream(Stream&
s,
const std::string& indent, const ::std_msgs::MultiArrayLayout_<ContainerAllocator>&
v)
216 s << indent <<
"dim[]" << std::endl;
217 for (
size_t i = 0;
i < v.dim.size(); ++
i)
219 s << indent <<
" dim[" <<
i <<
"]: ";
224 s << indent <<
"data_offset: ";
232 #endif // STD_MSGS_MESSAGE_MULTIARRAYLAYOUT_H ::std_msgs::MultiArrayLayout_< std::allocator< void > > MultiArrayLayout
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
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 > &)
Specialize to provide the md5sum for a message.
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
GLsizei const GLchar *const * string
static const char * value()
Specialize to provide the datatype for a message.
std::vector< ::std_msgs::MultiArrayDimension_< ContainerAllocator >, typename ContainerAllocator::template rebind< ::std_msgs::MultiArrayDimension_< ContainerAllocator > >::other > _dim_type
MultiArrayLayout_< ContainerAllocator > Type
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
static void allInOne(Stream &stream, T m)
static const char * value()
Stream base-class, provides common functionality for IStream and OStream.
static void stream(Stream &s, const std::string &indent, const ::std_msgs::MultiArrayLayout_< ContainerAllocator > &v)
boost::shared_ptr< ::std_msgs::MultiArrayLayout_< ContainerAllocator > > Ptr
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
unsigned __int64 uint64_t
Specialize to provide the definition for a message.
boost::shared_ptr< ::std_msgs::MultiArrayLayout_< ContainerAllocator > const > ConstPtr
uint32_t _data_offset_type
MultiArrayLayout_(const ContainerAllocator &_alloc)
_data_offset_type data_offset
static const char * value(const ::std_msgs::MultiArrayLayout_< ContainerAllocator > &)
static const char * value(const ::std_msgs::MultiArrayLayout_< ContainerAllocator > &)
static const char * value()
Templated serialization class. Default implementation provides backwards compatibility with old messa...
boost::shared_ptr< ::std_msgs::MultiArrayLayout const > MultiArrayLayoutConstPtr
boost::shared_ptr< ::std_msgs::MultiArrayLayout > MultiArrayLayoutPtr