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 std::allocator_traits< ContainerAllocator >::template rebind_alloc< char > > _name_type;
40 
41  typedef std::vector<float, typename std::allocator_traits< ContainerAllocator >::template rebind_alloc< float > > _values_type;
43 
44 
45 
46 
47  typedef std::shared_ptr< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> > Ptr;
48  typedef std::shared_ptr< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> const> ConstPtr;
49 
50 }; // struct ChannelFloat32_
51 
52 typedef ::sensor_msgs::ChannelFloat32_<std::allocator<void> > ChannelFloat32;
53 
54 typedef std::shared_ptr< ::sensor_msgs::ChannelFloat32 > ChannelFloat32Ptr;
55 typedef std::shared_ptr< ::sensor_msgs::ChannelFloat32 const> ChannelFloat32ConstPtr;
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  : std::false_type
88  { };
89 
90 template <class ContainerAllocator>
91 struct IsFixedSize< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> const>
92  : std::false_type
93  { };
94 
95 template <class ContainerAllocator>
96 struct IsMessage< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> >
97  : std::true_type
98  { };
99 
100 template <class ContainerAllocator>
101 struct IsMessage< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> const>
102  : std::true_type
103  { };
104 
105 template <class ContainerAllocator>
106 struct HasHeader< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> >
107  : std::false_type
108  { };
109 
110 template <class ContainerAllocator>
111 struct HasHeader< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> const>
112  : std::false_type
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 std::allocator_traits< ContainerAllocator >::template rebind_alloc< char > > >::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
rs2rosinternal::message_traits::MD5Sum< ::sensor_msgs::ChannelFloat32_< ContainerAllocator > >::value
static const char * value()
Definition: ChannelFloat32.h:119
sensor_msgs::ChannelFloat32_::ChannelFloat32_
ChannelFloat32_(const ContainerAllocator &_alloc)
Definition: ChannelFloat32.h:30
rs2rosinternal::serialization::Serializer< ::sensor_msgs::ChannelFloat32_< ContainerAllocator > >::allInOne
static void allInOne(Stream &stream, T m)
Definition: ChannelFloat32.h:185
sensor_msgs::ChannelFloat32
::sensor_msgs::ChannelFloat32_< std::allocator< void > > ChannelFloat32
Definition: ChannelFloat32.h:52
sensor_msgs::ChannelFloat32_::name
_name_type name
Definition: ChannelFloat32.h:39
rs2rosinternal::message_traits::DataType< ::sensor_msgs::ChannelFloat32_< ContainerAllocator > >::value
static const char * value()
Definition: ChannelFloat32.h:132
sensor_msgs::ChannelFloat32Ptr
std::shared_ptr< ::sensor_msgs::ChannelFloat32 > ChannelFloat32Ptr
Definition: ChannelFloat32.h:54
v
GLdouble v
Definition: glad/glad/glad.h:2144
string
GLsizei const GLchar *const * string
Definition: glad/glad/glad.h:2861
rs2rosinternal::message_operations::Printer< ::sensor_msgs::ChannelFloat32_< ContainerAllocator > >::stream
static void stream(Stream &s, const std::string &indent, const ::sensor_msgs::ChannelFloat32_< ContainerAllocator > &v)
Definition: ChannelFloat32.h:205
void
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
rs2rosinternal::message_traits::IsFixedSize
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
Definition: message_traits.h:81
rs2rosinternal::message_traits::DataType< ::sensor_msgs::ChannelFloat32_< ContainerAllocator > >::value
static const char * value(const ::sensor_msgs::ChannelFloat32_< ContainerAllocator > &)
Definition: ChannelFloat32.h:137
sensor_msgs::ChannelFloat32_::_values_type
std::vector< float, typename std::allocator_traits< ContainerAllocator >::template rebind_alloc< float > > _values_type
Definition: ChannelFloat32.h:41
rs2rosinternal
Definition: datatypes.h:39
sensor_msgs::ChannelFloat32_
Definition: ChannelFloat32.h:22
sensor_msgs::ChannelFloat32_::ConstPtr
std::shared_ptr< ::sensor_msgs::ChannelFloat32_< ContainerAllocator > const > ConstPtr
Definition: ChannelFloat32.h:48
serialization.h
rs2rosinternal::message_traits::IsMessage
Am I message or not.
Definition: message_traits.h:90
sensor_msgs::ChannelFloat32ConstPtr
std::shared_ptr< ::sensor_msgs::ChannelFloat32 const > ChannelFloat32ConstPtr
Definition: ChannelFloat32.h:55
m
std::mutex m
Definition: test-waiting-on.cpp:126
rs2rosinternal::message_traits::MD5Sum< ::sensor_msgs::ChannelFloat32_< ContainerAllocator > >::value
static const char * value(const ::sensor_msgs::ChannelFloat32_< ContainerAllocator > &)
Definition: ChannelFloat32.h:124
sensor_msgs::ChannelFloat32_::ChannelFloat32_
ChannelFloat32_()
Definition: ChannelFloat32.h:26
builtin_message_traits.h
sensor_msgs::operator<<
std::ostream & operator<<(std::ostream &s, const ::sensor_msgs::BatteryState_< ContainerAllocator > &v)
Definition: BatteryState.h:186
uint64_t
unsigned __int64 uint64_t
Definition: stdint.h:90
i
int i
Definition: rs-pcl-color.cpp:54
name
GLuint const GLchar * name
Definition: glad/glad/glad.h:2777
test-device-discovery.stream
stream
Definition: test-device-discovery.py:295
sensor_msgs::ChannelFloat32_::values
_values_type values
Definition: ChannelFloat32.h:42
rspy.log.indent
def indent(str, line_prefix=' ')
Definition: log.py:122
sensor_msgs::ChannelFloat32_::Ptr
std::shared_ptr< ::sensor_msgs::ChannelFloat32_< ContainerAllocator > > Ptr
Definition: ChannelFloat32.h:47
rs2rosinternal::message_traits::Definition
Specialize to provide the definition for a message.
Definition: message_traits.h:130
rs2rosinternal::message_traits::MD5Sum
Specialize to provide the md5sum for a message.
Definition: message_traits.h:96
sensor_msgs::ChannelFloat32_::_name_type
std::basic_string< char, std::char_traits< char >, typename std::allocator_traits< ContainerAllocator >::template rebind_alloc< char > > _name_type
Definition: ChannelFloat32.h:38
rs2rosinternal::message_traits::Definition< ::sensor_msgs::ChannelFloat32_< ContainerAllocator > >::value
static const char * value(const ::sensor_msgs::ChannelFloat32_< ContainerAllocator > &)
Definition: ChannelFloat32.h:172
rs2rosinternal::serialization::Serializer
Templated serialization class. Default implementation provides backwards compatibility with old messa...
Definition: third-party/realsense-file/rosbag/roscpp_serialization/include/ros/serialization.h:111
rs2rosinternal::message_traits::HasHeader
HasHeader informs whether or not there is a header that gets serialized as the first thing in the mes...
Definition: message_traits.h:85
ROS_DECLARE_ALLINONE_SERIALIZER
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
Definition: third-party/realsense-file/rosbag/roscpp_serialization/include/ros/serialization.h:66
rs2rosinternal::message_operations::Printer::stream
static void stream(Stream &s, const std::string &indent, const M &value)
Definition: message_operations.h:42
rs2rosinternal::message_operations::Printer
Definition: message_operations.h:39
rs2rosinternal::message_traits::DataType
Specialize to provide the datatype for a message.
Definition: message_traits.h:113
rs2rosinternal::message_traits::Definition< ::sensor_msgs::ChannelFloat32_< ContainerAllocator > >::value
static const char * value()
Definition: ChannelFloat32.h:143
rs2rosinternal::serialization::Stream
Stream base-class, provides common functionality for IStream and OStream.
Definition: third-party/realsense-file/rosbag/roscpp_serialization/include/ros/serialization.h:694
sensor_msgs
Tools for manipulating sensor_msgs.
Definition: image-msg.h:23
s
GLdouble s
Definition: glad/glad/glad.h:2441
sensor_msgs::ChannelFloat32_::Type
ChannelFloat32_< ContainerAllocator > Type
Definition: ChannelFloat32.h:24
values
GLsizei const GLfloat * values
Definition: glad/glad/glad.h:2180
types.h
message_operations.h


librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Fri Aug 2 2024 08:30:01