PointCloud.h
Go to the documentation of this file.
1 #include "sick_scan/sick_scan_base.h" /* Base definitions included in all header files, added by add_sick_scan_base_header.py. Do not edit this line. */
2 // Generated by gencpp from file sensor_msgs/PointCloud.msg
3 // DO NOT EDIT!
4 
5 
6 #ifndef SENSOR_MSGS_MESSAGE_POINTCLOUD_H
7 #define SENSOR_MSGS_MESSAGE_POINTCLOUD_H
8 
9 
10 #include <string>
11 #include <vector>
12 #include <map>
13 
14 #include <ros/types.h>
15 #include <ros/serialization.h>
16 #include <ros/builtin_message_traits.h>
17 #include <ros/message_operations.h>
18 
19 #include <std_msgs/Header.h>
20 #include <geometry_msgs/Point32.h>
22 
23 namespace sensor_msgs
24 {
25 template <class ContainerAllocator>
27 {
29 
31  : header()
32  , points()
33  , channels() {
34  }
35  PointCloud_(const ContainerAllocator& _alloc)
36  : header(_alloc)
37  , points(_alloc)
38  , channels(_alloc) {
39  (void)_alloc;
40  }
41 
42 
43 
44  typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
46 
47  typedef std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > _points_type;
49 
50  typedef std::vector< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> >::other > _channels_type;
52 
53 
54 
55 
56  typedef std::shared_ptr< ::sensor_msgs::PointCloud_<ContainerAllocator> > Ptr;
57  typedef std::shared_ptr< ::sensor_msgs::PointCloud_<ContainerAllocator> const> ConstPtr;
58 
59 }; // struct PointCloud_
60 
61 typedef ::sensor_msgs::PointCloud_<std::allocator<void> > PointCloud;
62 
63 typedef std::shared_ptr< ::sensor_msgs::PointCloud > PointCloudPtr;
64 typedef std::shared_ptr< ::sensor_msgs::PointCloud const> PointCloudConstPtr;
65 
66 // constants requiring out of line definition
67 
68 
69 
70 template<typename ContainerAllocator>
71 std::ostream& operator<<(std::ostream& s, const ::sensor_msgs::PointCloud_<ContainerAllocator> & v)
72 {
74 return s;
75 }
76 
77 } // namespace sensor_msgs
78 
79 namespace roswrap
80 {
81 namespace message_traits
82 {
83 
84 
85 
86 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True}
87 // {'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']}
88 
89 // !!!!!!!!!!! ['__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']
90 
91 
92 
93 
94 template <class ContainerAllocator>
95 struct IsFixedSize< ::sensor_msgs::PointCloud_<ContainerAllocator> >
96  : FalseType
97  { };
98 
99 template <class ContainerAllocator>
100 struct IsFixedSize< ::sensor_msgs::PointCloud_<ContainerAllocator> const>
101  : FalseType
102  { };
103 
104 template <class ContainerAllocator>
105 struct IsMessage< ::sensor_msgs::PointCloud_<ContainerAllocator> >
106  : TrueType
107  { };
108 
109 template <class ContainerAllocator>
110 struct IsMessage< ::sensor_msgs::PointCloud_<ContainerAllocator> const>
111  : TrueType
112  { };
113 
114 template <class ContainerAllocator>
115 struct HasHeader< ::sensor_msgs::PointCloud_<ContainerAllocator> >
116  : TrueType
117  { };
118 
119 template <class ContainerAllocator>
120 struct HasHeader< ::sensor_msgs::PointCloud_<ContainerAllocator> const>
121  : TrueType
122  { };
123 
124 
125 template<class ContainerAllocator>
126 struct MD5Sum< ::sensor_msgs::PointCloud_<ContainerAllocator> >
127 {
128  static const char* value()
129  {
130  return "d8e9c3f5afbdd8a130fd1d2763945fca";
131  }
132 
133  static const char* value(const ::sensor_msgs::PointCloud_<ContainerAllocator>&) { return value(); }
134  static const uint64_t static_value1 = 0xd8e9c3f5afbdd8a1ULL;
135  static const uint64_t static_value2 = 0x30fd1d2763945fcaULL;
136 };
137 
138 template<class ContainerAllocator>
139 struct DataType< ::sensor_msgs::PointCloud_<ContainerAllocator> >
140 {
141  static const char* value()
142  {
143  return "sensor_msgs/PointCloud";
144  }
145 
146  static const char* value(const ::sensor_msgs::PointCloud_<ContainerAllocator>&) { return value(); }
147 };
148 
149 template<class ContainerAllocator>
150 struct Definition< ::sensor_msgs::PointCloud_<ContainerAllocator> >
151 {
152  static const char* value()
153  {
154  return "# This message holds a collection of 3d points, plus optional additional\n\
155 # information about each point.\n\
156 \n\
157 # Time of sensor data acquisition, coordinate frame ID.\n\
158 Header header\n\
159 \n\
160 # Array of 3d points. Each Point32 should be interpreted as a 3d point\n\
161 # in the frame given in the header.\n\
162 geometry_msgs/Point32[] points\n\
163 \n\
164 # Each channel should have the same number of elements as points array,\n\
165 # and the data in each channel should correspond 1:1 with each point.\n\
166 # Channel names in common practice are listed in ChannelFloat32.msg.\n\
167 ChannelFloat32[] channels\n\
168 \n\
169 ================================================================================\n\
170 MSG: std_msgs/Header\n\
171 # Standard metadata for higher-level stamped data types.\n\
172 # This is generally used to communicate timestamped data \n\
173 # in a particular coordinate frame.\n\
174 # \n\
175 # sequence ID: consecutively increasing ID \n\
176 uint32 seq\n\
177 #Two-integer timestamp that is expressed as:\n\
178 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
179 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
180 # time-handling sugar is provided by the client library\n\
181 time stamp\n\
182 #Frame this data is associated with\n\
183 # 0: no frame\n\
184 # 1: global frame\n\
185 string frame_id\n\
186 \n\
187 ================================================================================\n\
188 MSG: geometry_msgs/Point32\n\
189 # This contains the position of a point in free space(with 32 bits of precision).\n\
190 # It is recommeded to use Point wherever possible instead of Point32. \n\
191 # \n\
192 # This recommendation is to promote interoperability. \n\
193 #\n\
194 # This message is designed to take up less space when sending\n\
195 # lots of points at once, as in the case of a PointCloud. \n\
196 \n\
197 float32 x\n\
198 float32 y\n\
199 float32 z\n\
200 ================================================================================\n\
201 MSG: sensor_msgs/ChannelFloat32\n\
202 # This message is used by the PointCloud message to hold optional data\n\
203 # associated with each point in the cloud. The length of the values\n\
204 # array should be the same as the length of the points array in the\n\
205 # PointCloud, and each value should be associated with the corresponding\n\
206 # point.\n\
207 \n\
208 # Channel names in existing practice include:\n\
209 # \"u\", \"v\" - row and column (respectively) in the left stereo image.\n\
210 # This is opposite to usual conventions but remains for\n\
211 # historical reasons. The newer PointCloud2 message has no\n\
212 # such problem.\n\
213 # \"rgb\" - For point clouds produced by color stereo cameras. uint8\n\
214 # (R,G,B) values packed into the least significant 24 bits,\n\
215 # in order.\n\
216 # \"intensity\" - laser or pixel intensity.\n\
217 # \"distance\"\n\
218 \n\
219 # The channel name should give semantics of the channel (e.g.\n\
220 # \"intensity\" instead of \"value\").\n\
221 string name\n\
222 \n\
223 # The values array should be 1-1 with the elements of the associated\n\
224 # PointCloud.\n\
225 float32[] values\n\
226 ";
227  }
228 
229  static const char* value(const ::sensor_msgs::PointCloud_<ContainerAllocator>&) { return value(); }
230 };
231 
232 } // namespace message_traits
233 } // namespace roswrap
234 
235 namespace roswrap
236 {
237 namespace serialization
238 {
239 
240  template<class ContainerAllocator> struct Serializer< ::sensor_msgs::PointCloud_<ContainerAllocator> >
241  {
242  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
243  {
244  stream.next(m.header);
245  stream.next(m.points);
246  stream.next(m.channels);
247  }
248 
250  }; // struct PointCloud_
251 
252 } // namespace serialization
253 } // namespace roswrap
254 
255 namespace roswrap
256 {
257 namespace message_operations
258 {
259 
260 template<class ContainerAllocator>
261 struct Printer< ::sensor_msgs::PointCloud_<ContainerAllocator> >
262 {
263  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sensor_msgs::PointCloud_<ContainerAllocator>& v)
264  {
265  s << indent << "header: ";
266  s << std::endl;
268  s << indent << "points[]" << std::endl;
269  for (size_t i = 0; i < v.points.size(); ++i)
270  {
271  s << indent << " points[" << i << "]: ";
272  s << std::endl;
273  s << indent;
275  }
276  s << indent << "channels[]" << std::endl;
277  for (size_t i = 0; i < v.channels.size(); ++i)
278  {
279  s << indent << " channels[" << i << "]: ";
280  s << std::endl;
281  s << indent;
283  }
284  }
285 };
286 
287 } // namespace message_operations
288 } // namespace roswrap
289 
290 #endif // SENSOR_MSGS_MESSAGE_POINTCLOUD_H
roswrap::message_traits::FalseType
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
Definition: message_traits.h:89
multiscan_pcap_player.indent
indent
Definition: multiscan_pcap_player.py:252
sensor_msgs::PointCloud_
Definition: PointCloud.h:26
roswrap::serialization::Serializer
Templated serialization class. Default implementation provides backwards compatibility with old messa...
Definition: serialization.h:120
roswrap::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:107
const
#define const
Definition: getopt.c:38
s
XmlRpcServer s
sensor_msgs::PointCloud_::PointCloud_
PointCloud_(const ContainerAllocator &_alloc)
Definition: PointCloud.h:35
sensor_msgs::PointCloud_::Type
PointCloud_< ContainerAllocator > Type
Definition: PointCloud.h:28
sensor_msgs::PointCloud_::_header_type
::std_msgs::Header_< ContainerAllocator > _header_type
Definition: PointCloud.h:44
roswrap::message_traits::Definition< ::sensor_msgs::PointCloud_< ContainerAllocator > >::value
static const char * value(const ::sensor_msgs::PointCloud_< ContainerAllocator > &)
Definition: PointCloud.h:229
roswrap::message_operations::Printer::stream
static void stream(Stream &s, const std::string &indent, const M &value)
Definition: message_operations.h:43
roswrap::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:103
sensor_msgs::PointCloud_::points
_points_type points
Definition: PointCloud.h:48
ros::message_operations::Printer
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: serialization.h:74
roswrap::message_traits::DataType
Specialize to provide the datatype for a message.
Definition: message_traits.h:135
roswrap::serialization::Serializer< ::sensor_msgs::PointCloud_< ContainerAllocator > >::allInOne
static void allInOne(Stream &stream, T m)
Definition: PointCloud.h:242
roswrap::message_traits::Definition
Specialize to provide the definition for a message.
Definition: message_traits.h:152
Point32.h
sensor_msgs::PointCloud_::Ptr
std::shared_ptr< ::sensor_msgs::PointCloud_< ContainerAllocator > > Ptr
Definition: PointCloud.h:56
sensor_msgs::PointCloud
::sensor_msgs::PointCloud_< std::allocator< void > > PointCloud
Definition: PointCloud.h:61
sensor_msgs::PointCloud_::ConstPtr
std::shared_ptr< ::sensor_msgs::PointCloud_< ContainerAllocator > const > ConstPtr
Definition: PointCloud.h:57
sensor_msgs::operator<<
std::ostream & operator<<(std::ostream &s, const ::sensor_msgs::BatteryState_< ContainerAllocator > &v)
Definition: BatteryState.h:187
roswrap::message_traits::MD5Sum< ::sensor_msgs::PointCloud_< ContainerAllocator > >::value
static const char * value()
Definition: PointCloud.h:128
sensor_msgs::PointCloud_::_channels_type
std::vector< ::sensor_msgs::ChannelFloat32_< ContainerAllocator >, typename ContainerAllocator::template rebind< ::sensor_msgs::ChannelFloat32_< ContainerAllocator > >::other > _channels_type
Definition: PointCloud.h:50
sensor_msgs::PointCloudPtr
std::shared_ptr< ::sensor_msgs::PointCloud > PointCloudPtr
Definition: PointCloud.h:63
ChannelFloat32.h
roswrap::message_traits::DataType< ::sensor_msgs::PointCloud_< ContainerAllocator > >::value
static const char * value(const ::sensor_msgs::PointCloud_< ContainerAllocator > &)
Definition: PointCloud.h:146
roswrap
Definition: param_modi.cpp:41
sensor_msgs::PointCloud_::header
_header_type header
Definition: PointCloud.h:45
sensor_msgs::PointCloud_::_points_type
std::vector< ::geometry_msgs::Point32_< ContainerAllocator >, typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_< ContainerAllocator > >::other > _points_type
Definition: PointCloud.h:47
roswrap::message_operations::Printer
Definition: message_operations.h:40
std_msgs::Header_
Definition: Header.h:23
sensor_msgs::PointCloudConstPtr
std::shared_ptr< ::sensor_msgs::PointCloud const > PointCloudConstPtr
Definition: PointCloud.h:64
roswrap::message_traits::TrueType
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
Definition: message_traits.h:79
roswrap::message_traits::MD5Sum
Specialize to provide the md5sum for a message.
Definition: message_traits.h:118
roswrap::message_operations::Printer< ::sensor_msgs::PointCloud_< ContainerAllocator > >::stream
static void stream(Stream &s, const std::string &indent, const ::sensor_msgs::PointCloud_< ContainerAllocator > &v)
Definition: PointCloud.h:263
roswrap::message_traits::MD5Sum< ::sensor_msgs::PointCloud_< ContainerAllocator > >::value
static const char * value(const ::sensor_msgs::PointCloud_< ContainerAllocator > &)
Definition: PointCloud.h:133
roswrap::message_traits::DataType< ::sensor_msgs::PointCloud_< ContainerAllocator > >::value
static const char * value()
Definition: PointCloud.h:141
roswrap::message_traits::IsMessage
Am I message or not.
Definition: message_traits.h:112
sick_scan_base.h
roswrap::serialization::Stream
Stream base-class, provides common functionality for IStream and OStream.
Definition: serialization.h:705
sensor_msgs::PointCloud_::PointCloud_
PointCloud_()
Definition: PointCloud.h:30
sensor_msgs::PointCloud_::channels
_channels_type channels
Definition: PointCloud.h:51
sensor_msgs
Tools for manipulating sensor_msgs.
Header.h
roswrap::message_traits::Definition< ::sensor_msgs::PointCloud_< ContainerAllocator > >::value
static const char * value()
Definition: PointCloud.h:152


sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:09