00001
00002 #ifndef CALIBRATION_MSGS_MESSAGE_DENSELASERSNAPSHOT_H
00003 #define CALIBRATION_MSGS_MESSAGE_DENSELASERSNAPSHOT_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "std_msgs/Header.h"
00014
00015 namespace calibration_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct DenseLaserSnapshot_ : public ros::Message
00019 {
00020 typedef DenseLaserSnapshot_<ContainerAllocator> Type;
00021
00022 DenseLaserSnapshot_()
00023 : header()
00024 , angle_min(0.0)
00025 , angle_max(0.0)
00026 , angle_increment(0.0)
00027 , time_increment(0.0)
00028 , range_min(0.0)
00029 , range_max(0.0)
00030 , readings_per_scan(0)
00031 , num_scans(0)
00032 , ranges()
00033 , intensities()
00034 , scan_start()
00035 {
00036 }
00037
00038 DenseLaserSnapshot_(const ContainerAllocator& _alloc)
00039 : header(_alloc)
00040 , angle_min(0.0)
00041 , angle_max(0.0)
00042 , angle_increment(0.0)
00043 , time_increment(0.0)
00044 , range_min(0.0)
00045 , range_max(0.0)
00046 , readings_per_scan(0)
00047 , num_scans(0)
00048 , ranges(_alloc)
00049 , intensities(_alloc)
00050 , scan_start(_alloc)
00051 {
00052 }
00053
00054 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00055 ::std_msgs::Header_<ContainerAllocator> header;
00056
00057 typedef float _angle_min_type;
00058 float angle_min;
00059
00060 typedef float _angle_max_type;
00061 float angle_max;
00062
00063 typedef float _angle_increment_type;
00064 float angle_increment;
00065
00066 typedef float _time_increment_type;
00067 float time_increment;
00068
00069 typedef float _range_min_type;
00070 float range_min;
00071
00072 typedef float _range_max_type;
00073 float range_max;
00074
00075 typedef uint32_t _readings_per_scan_type;
00076 uint32_t readings_per_scan;
00077
00078 typedef uint32_t _num_scans_type;
00079 uint32_t num_scans;
00080
00081 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _ranges_type;
00082 std::vector<float, typename ContainerAllocator::template rebind<float>::other > ranges;
00083
00084 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _intensities_type;
00085 std::vector<float, typename ContainerAllocator::template rebind<float>::other > intensities;
00086
00087 typedef std::vector<ros::Time, typename ContainerAllocator::template rebind<ros::Time>::other > _scan_start_type;
00088 std::vector<ros::Time, typename ContainerAllocator::template rebind<ros::Time>::other > scan_start;
00089
00090
00091 ROS_DEPRECATED uint32_t get_ranges_size() const { return (uint32_t)ranges.size(); }
00092 ROS_DEPRECATED void set_ranges_size(uint32_t size) { ranges.resize((size_t)size); }
00093 ROS_DEPRECATED void get_ranges_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->ranges; }
00094 ROS_DEPRECATED void set_ranges_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->ranges = vec; }
00095 ROS_DEPRECATED uint32_t get_intensities_size() const { return (uint32_t)intensities.size(); }
00096 ROS_DEPRECATED void set_intensities_size(uint32_t size) { intensities.resize((size_t)size); }
00097 ROS_DEPRECATED void get_intensities_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->intensities; }
00098 ROS_DEPRECATED void set_intensities_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->intensities = vec; }
00099 ROS_DEPRECATED uint32_t get_scan_start_size() const { return (uint32_t)scan_start.size(); }
00100 ROS_DEPRECATED void set_scan_start_size(uint32_t size) { scan_start.resize((size_t)size); }
00101 ROS_DEPRECATED void get_scan_start_vec(std::vector<ros::Time, typename ContainerAllocator::template rebind<ros::Time>::other > & vec) const { vec = this->scan_start; }
00102 ROS_DEPRECATED void set_scan_start_vec(const std::vector<ros::Time, typename ContainerAllocator::template rebind<ros::Time>::other > & vec) { this->scan_start = vec; }
00103 private:
00104 static const char* __s_getDataType_() { return "calibration_msgs/DenseLaserSnapshot"; }
00105 public:
00106 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00107
00108 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00109
00110 private:
00111 static const char* __s_getMD5Sum_() { return "deb2810d3530db3484f886a81243195d"; }
00112 public:
00113 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00114
00115 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00116
00117 private:
00118 static const char* __s_getMessageDefinition_() { return "# Provides all the state & sensor information for\n\
00119 # a single sweep of laser attached to some mechanism.\n\
00120 # Most likely, this will be used with PR2's tilting laser mechanism\n\
00121 Header header\n\
00122 \n\
00123 # Store the laser intrinsics. This is very similar to the\n\
00124 # intrinsics commonly stored in \n\
00125 float32 angle_min # start angle of the scan [rad]\n\
00126 float32 angle_max # end angle of the scan [rad]\n\
00127 float32 angle_increment # angular distance between measurements [rad]\n\
00128 float32 time_increment # time between measurements [seconds]\n\
00129 float32 range_min # minimum range value [m]\n\
00130 float32 range_max # maximum range value [m]\n\
00131 \n\
00132 # Define the size of the binary data\n\
00133 uint32 readings_per_scan # (Width)\n\
00134 uint32 num_scans # (Height)\n\
00135 \n\
00136 # 2D Arrays storing laser data.\n\
00137 # We can think of each type data as being a single channel image.\n\
00138 # Each row of the image has data from a single scan, and scans are\n\
00139 # concatenated to form the entire 'image'.\n\
00140 float32[] ranges # (Image data)\n\
00141 float32[] intensities # (Image data)\n\
00142 \n\
00143 # Store the start time of each scan\n\
00144 time[] scan_start\n\
00145 \n\
00146 ================================================================================\n\
00147 MSG: std_msgs/Header\n\
00148 # Standard metadata for higher-level stamped data types.\n\
00149 # This is generally used to communicate timestamped data \n\
00150 # in a particular coordinate frame.\n\
00151 # \n\
00152 # sequence ID: consecutively increasing ID \n\
00153 uint32 seq\n\
00154 #Two-integer timestamp that is expressed as:\n\
00155 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00156 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00157 # time-handling sugar is provided by the client library\n\
00158 time stamp\n\
00159 #Frame this data is associated with\n\
00160 # 0: no frame\n\
00161 # 1: global frame\n\
00162 string frame_id\n\
00163 \n\
00164 "; }
00165 public:
00166 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00167
00168 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00169
00170 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00171 {
00172 ros::serialization::OStream stream(write_ptr, 1000000000);
00173 ros::serialization::serialize(stream, header);
00174 ros::serialization::serialize(stream, angle_min);
00175 ros::serialization::serialize(stream, angle_max);
00176 ros::serialization::serialize(stream, angle_increment);
00177 ros::serialization::serialize(stream, time_increment);
00178 ros::serialization::serialize(stream, range_min);
00179 ros::serialization::serialize(stream, range_max);
00180 ros::serialization::serialize(stream, readings_per_scan);
00181 ros::serialization::serialize(stream, num_scans);
00182 ros::serialization::serialize(stream, ranges);
00183 ros::serialization::serialize(stream, intensities);
00184 ros::serialization::serialize(stream, scan_start);
00185 return stream.getData();
00186 }
00187
00188 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00189 {
00190 ros::serialization::IStream stream(read_ptr, 1000000000);
00191 ros::serialization::deserialize(stream, header);
00192 ros::serialization::deserialize(stream, angle_min);
00193 ros::serialization::deserialize(stream, angle_max);
00194 ros::serialization::deserialize(stream, angle_increment);
00195 ros::serialization::deserialize(stream, time_increment);
00196 ros::serialization::deserialize(stream, range_min);
00197 ros::serialization::deserialize(stream, range_max);
00198 ros::serialization::deserialize(stream, readings_per_scan);
00199 ros::serialization::deserialize(stream, num_scans);
00200 ros::serialization::deserialize(stream, ranges);
00201 ros::serialization::deserialize(stream, intensities);
00202 ros::serialization::deserialize(stream, scan_start);
00203 return stream.getData();
00204 }
00205
00206 ROS_DEPRECATED virtual uint32_t serializationLength() const
00207 {
00208 uint32_t size = 0;
00209 size += ros::serialization::serializationLength(header);
00210 size += ros::serialization::serializationLength(angle_min);
00211 size += ros::serialization::serializationLength(angle_max);
00212 size += ros::serialization::serializationLength(angle_increment);
00213 size += ros::serialization::serializationLength(time_increment);
00214 size += ros::serialization::serializationLength(range_min);
00215 size += ros::serialization::serializationLength(range_max);
00216 size += ros::serialization::serializationLength(readings_per_scan);
00217 size += ros::serialization::serializationLength(num_scans);
00218 size += ros::serialization::serializationLength(ranges);
00219 size += ros::serialization::serializationLength(intensities);
00220 size += ros::serialization::serializationLength(scan_start);
00221 return size;
00222 }
00223
00224 typedef boost::shared_ptr< ::calibration_msgs::DenseLaserSnapshot_<ContainerAllocator> > Ptr;
00225 typedef boost::shared_ptr< ::calibration_msgs::DenseLaserSnapshot_<ContainerAllocator> const> ConstPtr;
00226 };
00227 typedef ::calibration_msgs::DenseLaserSnapshot_<std::allocator<void> > DenseLaserSnapshot;
00228
00229 typedef boost::shared_ptr< ::calibration_msgs::DenseLaserSnapshot> DenseLaserSnapshotPtr;
00230 typedef boost::shared_ptr< ::calibration_msgs::DenseLaserSnapshot const> DenseLaserSnapshotConstPtr;
00231
00232
00233 template<typename ContainerAllocator>
00234 std::ostream& operator<<(std::ostream& s, const ::calibration_msgs::DenseLaserSnapshot_<ContainerAllocator> & v)
00235 {
00236 ros::message_operations::Printer< ::calibration_msgs::DenseLaserSnapshot_<ContainerAllocator> >::stream(s, "", v);
00237 return s;}
00238
00239 }
00240
00241 namespace ros
00242 {
00243 namespace message_traits
00244 {
00245 template<class ContainerAllocator>
00246 struct MD5Sum< ::calibration_msgs::DenseLaserSnapshot_<ContainerAllocator> > {
00247 static const char* value()
00248 {
00249 return "deb2810d3530db3484f886a81243195d";
00250 }
00251
00252 static const char* value(const ::calibration_msgs::DenseLaserSnapshot_<ContainerAllocator> &) { return value(); }
00253 static const uint64_t static_value1 = 0xdeb2810d3530db34ULL;
00254 static const uint64_t static_value2 = 0x84f886a81243195dULL;
00255 };
00256
00257 template<class ContainerAllocator>
00258 struct DataType< ::calibration_msgs::DenseLaserSnapshot_<ContainerAllocator> > {
00259 static const char* value()
00260 {
00261 return "calibration_msgs/DenseLaserSnapshot";
00262 }
00263
00264 static const char* value(const ::calibration_msgs::DenseLaserSnapshot_<ContainerAllocator> &) { return value(); }
00265 };
00266
00267 template<class ContainerAllocator>
00268 struct Definition< ::calibration_msgs::DenseLaserSnapshot_<ContainerAllocator> > {
00269 static const char* value()
00270 {
00271 return "# Provides all the state & sensor information for\n\
00272 # a single sweep of laser attached to some mechanism.\n\
00273 # Most likely, this will be used with PR2's tilting laser mechanism\n\
00274 Header header\n\
00275 \n\
00276 # Store the laser intrinsics. This is very similar to the\n\
00277 # intrinsics commonly stored in \n\
00278 float32 angle_min # start angle of the scan [rad]\n\
00279 float32 angle_max # end angle of the scan [rad]\n\
00280 float32 angle_increment # angular distance between measurements [rad]\n\
00281 float32 time_increment # time between measurements [seconds]\n\
00282 float32 range_min # minimum range value [m]\n\
00283 float32 range_max # maximum range value [m]\n\
00284 \n\
00285 # Define the size of the binary data\n\
00286 uint32 readings_per_scan # (Width)\n\
00287 uint32 num_scans # (Height)\n\
00288 \n\
00289 # 2D Arrays storing laser data.\n\
00290 # We can think of each type data as being a single channel image.\n\
00291 # Each row of the image has data from a single scan, and scans are\n\
00292 # concatenated to form the entire 'image'.\n\
00293 float32[] ranges # (Image data)\n\
00294 float32[] intensities # (Image data)\n\
00295 \n\
00296 # Store the start time of each scan\n\
00297 time[] scan_start\n\
00298 \n\
00299 ================================================================================\n\
00300 MSG: std_msgs/Header\n\
00301 # Standard metadata for higher-level stamped data types.\n\
00302 # This is generally used to communicate timestamped data \n\
00303 # in a particular coordinate frame.\n\
00304 # \n\
00305 # sequence ID: consecutively increasing ID \n\
00306 uint32 seq\n\
00307 #Two-integer timestamp that is expressed as:\n\
00308 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00309 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00310 # time-handling sugar is provided by the client library\n\
00311 time stamp\n\
00312 #Frame this data is associated with\n\
00313 # 0: no frame\n\
00314 # 1: global frame\n\
00315 string frame_id\n\
00316 \n\
00317 ";
00318 }
00319
00320 static const char* value(const ::calibration_msgs::DenseLaserSnapshot_<ContainerAllocator> &) { return value(); }
00321 };
00322
00323 template<class ContainerAllocator> struct HasHeader< ::calibration_msgs::DenseLaserSnapshot_<ContainerAllocator> > : public TrueType {};
00324 template<class ContainerAllocator> struct HasHeader< const ::calibration_msgs::DenseLaserSnapshot_<ContainerAllocator> > : public TrueType {};
00325 }
00326 }
00327
00328 namespace ros
00329 {
00330 namespace serialization
00331 {
00332
00333 template<class ContainerAllocator> struct Serializer< ::calibration_msgs::DenseLaserSnapshot_<ContainerAllocator> >
00334 {
00335 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00336 {
00337 stream.next(m.header);
00338 stream.next(m.angle_min);
00339 stream.next(m.angle_max);
00340 stream.next(m.angle_increment);
00341 stream.next(m.time_increment);
00342 stream.next(m.range_min);
00343 stream.next(m.range_max);
00344 stream.next(m.readings_per_scan);
00345 stream.next(m.num_scans);
00346 stream.next(m.ranges);
00347 stream.next(m.intensities);
00348 stream.next(m.scan_start);
00349 }
00350
00351 ROS_DECLARE_ALLINONE_SERIALIZER;
00352 };
00353 }
00354 }
00355
00356 namespace ros
00357 {
00358 namespace message_operations
00359 {
00360
00361 template<class ContainerAllocator>
00362 struct Printer< ::calibration_msgs::DenseLaserSnapshot_<ContainerAllocator> >
00363 {
00364 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::calibration_msgs::DenseLaserSnapshot_<ContainerAllocator> & v)
00365 {
00366 s << indent << "header: ";
00367 s << std::endl;
00368 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00369 s << indent << "angle_min: ";
00370 Printer<float>::stream(s, indent + " ", v.angle_min);
00371 s << indent << "angle_max: ";
00372 Printer<float>::stream(s, indent + " ", v.angle_max);
00373 s << indent << "angle_increment: ";
00374 Printer<float>::stream(s, indent + " ", v.angle_increment);
00375 s << indent << "time_increment: ";
00376 Printer<float>::stream(s, indent + " ", v.time_increment);
00377 s << indent << "range_min: ";
00378 Printer<float>::stream(s, indent + " ", v.range_min);
00379 s << indent << "range_max: ";
00380 Printer<float>::stream(s, indent + " ", v.range_max);
00381 s << indent << "readings_per_scan: ";
00382 Printer<uint32_t>::stream(s, indent + " ", v.readings_per_scan);
00383 s << indent << "num_scans: ";
00384 Printer<uint32_t>::stream(s, indent + " ", v.num_scans);
00385 s << indent << "ranges[]" << std::endl;
00386 for (size_t i = 0; i < v.ranges.size(); ++i)
00387 {
00388 s << indent << " ranges[" << i << "]: ";
00389 Printer<float>::stream(s, indent + " ", v.ranges[i]);
00390 }
00391 s << indent << "intensities[]" << std::endl;
00392 for (size_t i = 0; i < v.intensities.size(); ++i)
00393 {
00394 s << indent << " intensities[" << i << "]: ";
00395 Printer<float>::stream(s, indent + " ", v.intensities[i]);
00396 }
00397 s << indent << "scan_start[]" << std::endl;
00398 for (size_t i = 0; i < v.scan_start.size(); ++i)
00399 {
00400 s << indent << " scan_start[" << i << "]: ";
00401 Printer<ros::Time>::stream(s, indent + " ", v.scan_start[i]);
00402 }
00403 }
00404 };
00405
00406
00407 }
00408 }
00409
00410 #endif // CALIBRATION_MSGS_MESSAGE_DENSELASERSNAPSHOT_H
00411