ChannelFloat32.h
Go to the documentation of this file.
1 // Generated by gencpp from file sensor_msgs/ChannelFloat32.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef SENSOR_MSGS_MESSAGE_CHANNELFLOAT32_H
6 #define SENSOR_MSGS_MESSAGE_CHANNELFLOAT32_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 
18 
19 namespace sensor_msgs
20 {
21 template <class ContainerAllocator>
23 {
25 
27  : name()
28  , values() {
29  }
30  ChannelFloat32_(const ContainerAllocator& _alloc)
31  : name(_alloc)
32  , values(_alloc) {
33  (void)_alloc;
34  }
35 
36 
37 
38  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
39  _name_type name;
40 
41  typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _values_type;
42  _values_type values;
43 
44 
45 
46 
49 
50 }; // struct ChannelFloat32_
51 
52 typedef ::sensor_msgs::ChannelFloat32_<std::allocator<void> > ChannelFloat32;
53 
56 
57 // constants requiring out of line definition
58 
59 
60 
61 template<typename ContainerAllocator>
62 std::ostream& operator<<(std::ostream& s, const ::sensor_msgs::ChannelFloat32_<ContainerAllocator> & v)
63 {
65 return s;
66 }
67 
68 } // namespace sensor_msgs
69 
70 namespace rs2rosinternal
71 {
72 namespace message_traits
73 {
74 
75 
76 
77 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': False}
78 // {'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'geometry_msgs': ['/opt/ros/kinetic/share/geometry_msgs/cmake/../msg'], 'sensor_msgs': ['/tmp/binarydeb/ros-kinetic-sensor-msgs-1.12.5/msg']}
79 
80 // !!!!!!!!!!! ['__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']
81 
82 
83 
84 
85 template <class ContainerAllocator>
86 struct IsFixedSize< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> >
87  : FalseType
88  { };
89 
90 template <class ContainerAllocator>
91 struct IsFixedSize< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> const>
92  : FalseType
93  { };
94 
95 template <class ContainerAllocator>
96 struct IsMessage< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> >
97  : TrueType
98  { };
99 
100 template <class ContainerAllocator>
101 struct IsMessage< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> const>
102  : TrueType
103  { };
104 
105 template <class ContainerAllocator>
106 struct HasHeader< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> >
107  : FalseType
108  { };
109 
110 template <class ContainerAllocator>
111 struct HasHeader< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> const>
112  : FalseType
113  { };
114 
115 
116 template<class ContainerAllocator>
117 struct MD5Sum< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> >
118 {
119  static const char* value()
120  {
121  return "3d40139cdd33dfedcb71ffeeeb42ae7f";
122  }
123 
124  static const char* value(const ::sensor_msgs::ChannelFloat32_<ContainerAllocator>&) { return value(); }
125  static const uint64_t static_value1 = 0x3d40139cdd33dfedULL;
126  static const uint64_t static_value2 = 0xcb71ffeeeb42ae7fULL;
127 };
128 
129 template<class ContainerAllocator>
130 struct DataType< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> >
131 {
132  static const char* value()
133  {
134  return "sensor_msgs/ChannelFloat32";
135  }
136 
137  static const char* value(const ::sensor_msgs::ChannelFloat32_<ContainerAllocator>&) { return value(); }
138 };
139 
140 template<class ContainerAllocator>
141 struct Definition< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> >
142 {
143  static const char* value()
144  {
145  return "# This message is used by the PointCloud message to hold optional data\n\
146 # associated with each point in the cloud. The length of the values\n\
147 # array should be the same as the length of the points array in the\n\
148 # PointCloud, and each value should be associated with the corresponding\n\
149 # point.\n\
150 \n\
151 # Channel names in existing practice include:\n\
152 # \"u\", \"v\" - row and column (respectively) in the left stereo image.\n\
153 # This is opposite to usual conventions but remains for\n\
154 # historical reasons. The newer PointCloud2 message has no\n\
155 # such problem.\n\
156 # \"rgb\" - For point clouds produced by color stereo cameras. uint8\n\
157 # (R,G,B) values packed into the least significant 24 bits,\n\
158 # in order.\n\
159 # \"intensity\" - laser or pixel intensity.\n\
160 # \"distance\"\n\
161 \n\
162 # The channel name should give semantics of the channel (e.g.\n\
163 # \"intensity\" instead of \"value\").\n\
164 string name\n\
165 \n\
166 # The values array should be 1-1 with the elements of the associated\n\
167 # PointCloud.\n\
168 float32[] values\n\
169 ";
170  }
171 
172  static const char* value(const ::sensor_msgs::ChannelFloat32_<ContainerAllocator>&) { return value(); }
173 };
174 
175 } // namespace message_traits
176 } // namespace rs2rosinternal
177 
178 namespace rs2rosinternal
179 {
180 namespace serialization
181 {
182 
183  template<class ContainerAllocator> struct Serializer< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> >
184  {
185  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
186  {
187  stream.next(m.name);
188  stream.next(m.values);
189  }
190 
192  }; // struct ChannelFloat32_
193 
194 } // namespace serialization
195 } // namespace rs2rosinternal
196 
197 namespace rs2rosinternal
198 {
199 namespace message_operations
200 {
201 
202 template<class ContainerAllocator>
203 struct Printer< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> >
204 {
205  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sensor_msgs::ChannelFloat32_<ContainerAllocator>& v)
206  {
207  s << indent << "name: ";
208  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
209  s << indent << "values[]" << std::endl;
210  for (size_t i = 0; i < v.values.size(); ++i)
211  {
212  s << indent << " values[" << i << "]: ";
213  Printer<float>::stream(s, indent + " ", v.values[i]);
214  }
215  }
216 };
217 
218 } // namespace message_operations
219 } // namespace rs2rosinternal
220 
221 #endif // SENSOR_MSGS_MESSAGE_CHANNELFLOAT32_H
::sensor_msgs::ChannelFloat32_< std::allocator< void > > ChannelFloat32
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
GLuint const GLchar * name
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
static const char * value(const ::sensor_msgs::ChannelFloat32_< ContainerAllocator > &)
GLdouble s
const GLfloat * m
Definition: glext.h:6814
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
boost::shared_ptr< ::sensor_msgs::ChannelFloat32 const > ChannelFloat32ConstPtr
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > _name_type
Stream base-class, provides common functionality for IStream and OStream.
boost::shared_ptr< ::sensor_msgs::ChannelFloat32_< ContainerAllocator > > Ptr
boost::shared_ptr< ::sensor_msgs::ChannelFloat32 > ChannelFloat32Ptr
Tools for manipulating sensor_msgs.
Definition: BatteryState.h:20
static const char * value(const ::sensor_msgs::ChannelFloat32_< ContainerAllocator > &)
static void stream(Stream &s, const std::string &indent, const ::sensor_msgs::ChannelFloat32_< ContainerAllocator > &v)
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
unsigned __int64 uint64_t
Definition: stdint.h:90
Specialize to provide the definition for a message.
std::vector< float, typename ContainerAllocator::template rebind< float >::other > _values_type
GLsizei const GLfloat * values
static const char * value(const ::sensor_msgs::ChannelFloat32_< ContainerAllocator > &)
ChannelFloat32_< ContainerAllocator > Type
int i
ChannelFloat32_(const ContainerAllocator &_alloc)
Templated serialization class. Default implementation provides backwards compatibility with old messa...
boost::shared_ptr< ::sensor_msgs::ChannelFloat32_< ContainerAllocator > const > ConstPtr
GLdouble v


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