MultiArrayLayout.h
Go to the documentation of this file.
1 // Generated by gencpp from file std_msgs/MultiArrayLayout.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef STD_MSGS_MESSAGE_MULTIARRAYLAYOUT_H
6 #define STD_MSGS_MESSAGE_MULTIARRAYLAYOUT_H
7 
8 
9 #include <string>
10 #include <vector>
11 #include <map>
12 
13 #include <ros/types.h>
14 #include <ros/serialization.h>
16 #include <ros/message_operations.h>
17 
19 
20 namespace std_msgs
21 {
22 template <class ContainerAllocator>
24 {
26 
28  : dim()
29  , data_offset(0) {
30  }
31  MultiArrayLayout_(const ContainerAllocator& _alloc)
32  : dim(_alloc)
33  , data_offset(0) {
34  (void)_alloc;
35  }
36 
37 
38 
39  typedef std::vector< ::std_msgs::MultiArrayDimension_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::MultiArrayDimension_<ContainerAllocator> >::other > _dim_type;
40  _dim_type dim;
41 
43  _data_offset_type data_offset;
44 
45 
46 
47 
50 
51 }; // struct MultiArrayLayout_
52 
53 typedef ::std_msgs::MultiArrayLayout_<std::allocator<void> > MultiArrayLayout;
54 
57 
58 // constants requiring out of line definition
59 
60 
61 
62 template<typename ContainerAllocator>
63 std::ostream& operator<<(std::ostream& s, const ::std_msgs::MultiArrayLayout_<ContainerAllocator> & v)
64 {
66 return s;
67 }
68 
69 } // namespace std_msgs
70 
71 namespace rs2rosinternal
72 {
73 namespace message_traits
74 {
75 
76 
77 
78 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': False}
79 // {'std_msgs': ['/tmp/binarydeb/ros-kinetic-std-msgs-0.5.10/msg']}
80 
81 // !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types']
82 
83 
84 
85 
86 template <class ContainerAllocator>
87 struct IsFixedSize< ::std_msgs::MultiArrayLayout_<ContainerAllocator> >
88  : FalseType
89  { };
90 
91 template <class ContainerAllocator>
92 struct IsFixedSize< ::std_msgs::MultiArrayLayout_<ContainerAllocator> const>
93  : FalseType
94  { };
95 
96 template <class ContainerAllocator>
97 struct IsMessage< ::std_msgs::MultiArrayLayout_<ContainerAllocator> >
98  : TrueType
99  { };
100 
101 template <class ContainerAllocator>
102 struct IsMessage< ::std_msgs::MultiArrayLayout_<ContainerAllocator> const>
103  : TrueType
104  { };
105 
106 template <class ContainerAllocator>
107 struct HasHeader< ::std_msgs::MultiArrayLayout_<ContainerAllocator> >
108  : FalseType
109  { };
110 
111 template <class ContainerAllocator>
112 struct HasHeader< ::std_msgs::MultiArrayLayout_<ContainerAllocator> const>
113  : FalseType
114  { };
115 
116 
117 template<class ContainerAllocator>
118 struct MD5Sum< ::std_msgs::MultiArrayLayout_<ContainerAllocator> >
119 {
120  static const char* value()
121  {
122  return "0fed2a11c13e11c5571b4e2a995a91a3";
123  }
124 
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;
128 };
129 
130 template<class ContainerAllocator>
131 struct DataType< ::std_msgs::MultiArrayLayout_<ContainerAllocator> >
132 {
133  static const char* value()
134  {
135  return "std_msgs/MultiArrayLayout";
136  }
137 
138  static const char* value(const ::std_msgs::MultiArrayLayout_<ContainerAllocator>&) { return value(); }
139 };
140 
141 template<class ContainerAllocator>
142 struct Definition< ::std_msgs::MultiArrayLayout_<ContainerAllocator> >
143 {
144  static const char* value()
145  {
146  return "# The multiarray declares a generic multi-dimensional array of a\n\
147 # particular data type. Dimensions are ordered from outer most\n\
148 # to inner most.\n\
149 \n\
150 MultiArrayDimension[] dim # Array of dimension properties\n\
151 uint32 data_offset # padding elements at front of data\n\
152 \n\
153 # Accessors should ALWAYS be written in terms of dimension stride\n\
154 # and specified outer-most dimension first.\n\
155 # \n\
156 # multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k]\n\
157 #\n\
158 # A standard, 3-channel 640x480 image with interleaved color channels\n\
159 # would be specified as:\n\
160 #\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\
168 # dim[2].size = 3\n\
169 # dim[2].stride = 3\n\
170 #\n\
171 # multiarray(i,j,k) refers to the ith row, jth column, and kth channel.\n\
172 \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\
178 ";
179  }
180 
181  static const char* value(const ::std_msgs::MultiArrayLayout_<ContainerAllocator>&) { return value(); }
182 };
183 
184 } // namespace message_traits
185 } // namespace rs2rosinternal
186 
187 namespace rs2rosinternal
188 {
189 namespace serialization
190 {
191 
192  template<class ContainerAllocator> struct Serializer< ::std_msgs::MultiArrayLayout_<ContainerAllocator> >
193  {
194  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
195  {
196  stream.next(m.dim);
197  stream.next(m.data_offset);
198  }
199 
201  }; // struct MultiArrayLayout_
202 
203 } // namespace serialization
204 } // namespace rs2rosinternal
205 
206 namespace rs2rosinternal
207 {
208 namespace message_operations
209 {
210 
211 template<class ContainerAllocator>
212 struct Printer< ::std_msgs::MultiArrayLayout_<ContainerAllocator> >
213 {
214  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::std_msgs::MultiArrayLayout_<ContainerAllocator>& v)
215  {
216  s << indent << "dim[]" << std::endl;
217  for (size_t i = 0; i < v.dim.size(); ++i)
218  {
219  s << indent << " dim[" << i << "]: ";
220  s << std::endl;
221  s << indent;
223  }
224  s << indent << "data_offset: ";
225  Printer<uint32_t>::stream(s, indent + " ", v.data_offset);
226  }
227 };
228 
229 } // namespace message_operations
230 } // namespace rs2rosinternal
231 
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 ...
GLdouble s
const GLfloat * m
Definition: glext.h:6814
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
Specialize to provide the datatype for a message.
HasHeader informs whether or not there is a header that gets serialized as the first thing in the mes...
GLuint GLuint stream
Definition: glext.h:1790
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...
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)
unsigned int uint32_t
Definition: stdint.h:80
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...
Definition: Bool.h:19
unsigned __int64 uint64_t
Definition: stdint.h:90
Specialize to provide the definition for a message.
boost::shared_ptr< ::std_msgs::MultiArrayLayout_< ContainerAllocator > const > ConstPtr
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 > &)
int i
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
GLdouble v


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:22