00001
00002 #ifndef CALIBRATION_MSGS_MESSAGE_DENSELASEROBJECTFEATURES_H
00003 #define CALIBRATION_MSGS_MESSAGE_DENSELASEROBJECTFEATURES_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 #include "calibration_msgs/DenseLaserPoint.h"
00015 #include "geometry_msgs/Point.h"
00016
00017 namespace calibration_msgs
00018 {
00019 template <class ContainerAllocator>
00020 struct DenseLaserObjectFeatures_ : public ros::Message
00021 {
00022 typedef DenseLaserObjectFeatures_<ContainerAllocator> Type;
00023
00024 DenseLaserObjectFeatures_()
00025 : header()
00026 , dense_laser_points()
00027 , object_points()
00028 , success(0)
00029 {
00030 }
00031
00032 DenseLaserObjectFeatures_(const ContainerAllocator& _alloc)
00033 : header(_alloc)
00034 , dense_laser_points(_alloc)
00035 , object_points(_alloc)
00036 , success(0)
00037 {
00038 }
00039
00040 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00041 ::std_msgs::Header_<ContainerAllocator> header;
00042
00043 typedef std::vector< ::calibration_msgs::DenseLaserPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::calibration_msgs::DenseLaserPoint_<ContainerAllocator> >::other > _dense_laser_points_type;
00044 std::vector< ::calibration_msgs::DenseLaserPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::calibration_msgs::DenseLaserPoint_<ContainerAllocator> >::other > dense_laser_points;
00045
00046 typedef std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > _object_points_type;
00047 std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > object_points;
00048
00049 typedef uint8_t _success_type;
00050 uint8_t success;
00051
00052
00053 ROS_DEPRECATED uint32_t get_dense_laser_points_size() const { return (uint32_t)dense_laser_points.size(); }
00054 ROS_DEPRECATED void set_dense_laser_points_size(uint32_t size) { dense_laser_points.resize((size_t)size); }
00055 ROS_DEPRECATED void get_dense_laser_points_vec(std::vector< ::calibration_msgs::DenseLaserPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::calibration_msgs::DenseLaserPoint_<ContainerAllocator> >::other > & vec) const { vec = this->dense_laser_points; }
00056 ROS_DEPRECATED void set_dense_laser_points_vec(const std::vector< ::calibration_msgs::DenseLaserPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::calibration_msgs::DenseLaserPoint_<ContainerAllocator> >::other > & vec) { this->dense_laser_points = vec; }
00057 ROS_DEPRECATED uint32_t get_object_points_size() const { return (uint32_t)object_points.size(); }
00058 ROS_DEPRECATED void set_object_points_size(uint32_t size) { object_points.resize((size_t)size); }
00059 ROS_DEPRECATED void get_object_points_vec(std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > & vec) const { vec = this->object_points; }
00060 ROS_DEPRECATED void set_object_points_vec(const std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > & vec) { this->object_points = vec; }
00061 private:
00062 static const char* __s_getDataType_() { return "calibration_msgs/DenseLaserObjectFeatures"; }
00063 public:
00064 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00065
00066 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00067
00068 private:
00069 static const char* __s_getMD5Sum_() { return "b642d46e47d54e00f98a3d98b02b5cc6"; }
00070 public:
00071 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00072
00073 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00074
00075 private:
00076 static const char* __s_getMessageDefinition_() { return "# Synchronized with sensor output\n\
00077 Header header\n\
00078 \n\
00079 # Pixel locations of detected features\n\
00080 DenseLaserPoint[] dense_laser_points\n\
00081 \n\
00082 # Defines geometry of detected features in some \"object\" coordinate frame\n\
00083 geometry_msgs/Point[] object_points\n\
00084 \n\
00085 # False on detection failure or partial detection\n\
00086 uint8 success\n\
00087 \n\
00088 ================================================================================\n\
00089 MSG: std_msgs/Header\n\
00090 # Standard metadata for higher-level stamped data types.\n\
00091 # This is generally used to communicate timestamped data \n\
00092 # in a particular coordinate frame.\n\
00093 # \n\
00094 # sequence ID: consecutively increasing ID \n\
00095 uint32 seq\n\
00096 #Two-integer timestamp that is expressed as:\n\
00097 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00098 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00099 # time-handling sugar is provided by the client library\n\
00100 time stamp\n\
00101 #Frame this data is associated with\n\
00102 # 0: no frame\n\
00103 # 1: global frame\n\
00104 string frame_id\n\
00105 \n\
00106 ================================================================================\n\
00107 MSG: calibration_msgs/DenseLaserPoint\n\
00108 # Stores the xy subpixel location of a point in a DenseLaserSnapshot\n\
00109 float64 scan # Which scan line we detected the feature\n\
00110 float64 ray # Which ray in the specified scan we detected the feature\n\
00111 \n\
00112 ================================================================================\n\
00113 MSG: geometry_msgs/Point\n\
00114 # This contains the position of a point in free space\n\
00115 float64 x\n\
00116 float64 y\n\
00117 float64 z\n\
00118 \n\
00119 "; }
00120 public:
00121 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00122
00123 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00124
00125 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00126 {
00127 ros::serialization::OStream stream(write_ptr, 1000000000);
00128 ros::serialization::serialize(stream, header);
00129 ros::serialization::serialize(stream, dense_laser_points);
00130 ros::serialization::serialize(stream, object_points);
00131 ros::serialization::serialize(stream, success);
00132 return stream.getData();
00133 }
00134
00135 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00136 {
00137 ros::serialization::IStream stream(read_ptr, 1000000000);
00138 ros::serialization::deserialize(stream, header);
00139 ros::serialization::deserialize(stream, dense_laser_points);
00140 ros::serialization::deserialize(stream, object_points);
00141 ros::serialization::deserialize(stream, success);
00142 return stream.getData();
00143 }
00144
00145 ROS_DEPRECATED virtual uint32_t serializationLength() const
00146 {
00147 uint32_t size = 0;
00148 size += ros::serialization::serializationLength(header);
00149 size += ros::serialization::serializationLength(dense_laser_points);
00150 size += ros::serialization::serializationLength(object_points);
00151 size += ros::serialization::serializationLength(success);
00152 return size;
00153 }
00154
00155 typedef boost::shared_ptr< ::calibration_msgs::DenseLaserObjectFeatures_<ContainerAllocator> > Ptr;
00156 typedef boost::shared_ptr< ::calibration_msgs::DenseLaserObjectFeatures_<ContainerAllocator> const> ConstPtr;
00157 };
00158 typedef ::calibration_msgs::DenseLaserObjectFeatures_<std::allocator<void> > DenseLaserObjectFeatures;
00159
00160 typedef boost::shared_ptr< ::calibration_msgs::DenseLaserObjectFeatures> DenseLaserObjectFeaturesPtr;
00161 typedef boost::shared_ptr< ::calibration_msgs::DenseLaserObjectFeatures const> DenseLaserObjectFeaturesConstPtr;
00162
00163
00164 template<typename ContainerAllocator>
00165 std::ostream& operator<<(std::ostream& s, const ::calibration_msgs::DenseLaserObjectFeatures_<ContainerAllocator> & v)
00166 {
00167 ros::message_operations::Printer< ::calibration_msgs::DenseLaserObjectFeatures_<ContainerAllocator> >::stream(s, "", v);
00168 return s;}
00169
00170 }
00171
00172 namespace ros
00173 {
00174 namespace message_traits
00175 {
00176 template<class ContainerAllocator>
00177 struct MD5Sum< ::calibration_msgs::DenseLaserObjectFeatures_<ContainerAllocator> > {
00178 static const char* value()
00179 {
00180 return "b642d46e47d54e00f98a3d98b02b5cc6";
00181 }
00182
00183 static const char* value(const ::calibration_msgs::DenseLaserObjectFeatures_<ContainerAllocator> &) { return value(); }
00184 static const uint64_t static_value1 = 0xb642d46e47d54e00ULL;
00185 static const uint64_t static_value2 = 0xf98a3d98b02b5cc6ULL;
00186 };
00187
00188 template<class ContainerAllocator>
00189 struct DataType< ::calibration_msgs::DenseLaserObjectFeatures_<ContainerAllocator> > {
00190 static const char* value()
00191 {
00192 return "calibration_msgs/DenseLaserObjectFeatures";
00193 }
00194
00195 static const char* value(const ::calibration_msgs::DenseLaserObjectFeatures_<ContainerAllocator> &) { return value(); }
00196 };
00197
00198 template<class ContainerAllocator>
00199 struct Definition< ::calibration_msgs::DenseLaserObjectFeatures_<ContainerAllocator> > {
00200 static const char* value()
00201 {
00202 return "# Synchronized with sensor output\n\
00203 Header header\n\
00204 \n\
00205 # Pixel locations of detected features\n\
00206 DenseLaserPoint[] dense_laser_points\n\
00207 \n\
00208 # Defines geometry of detected features in some \"object\" coordinate frame\n\
00209 geometry_msgs/Point[] object_points\n\
00210 \n\
00211 # False on detection failure or partial detection\n\
00212 uint8 success\n\
00213 \n\
00214 ================================================================================\n\
00215 MSG: std_msgs/Header\n\
00216 # Standard metadata for higher-level stamped data types.\n\
00217 # This is generally used to communicate timestamped data \n\
00218 # in a particular coordinate frame.\n\
00219 # \n\
00220 # sequence ID: consecutively increasing ID \n\
00221 uint32 seq\n\
00222 #Two-integer timestamp that is expressed as:\n\
00223 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00224 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00225 # time-handling sugar is provided by the client library\n\
00226 time stamp\n\
00227 #Frame this data is associated with\n\
00228 # 0: no frame\n\
00229 # 1: global frame\n\
00230 string frame_id\n\
00231 \n\
00232 ================================================================================\n\
00233 MSG: calibration_msgs/DenseLaserPoint\n\
00234 # Stores the xy subpixel location of a point in a DenseLaserSnapshot\n\
00235 float64 scan # Which scan line we detected the feature\n\
00236 float64 ray # Which ray in the specified scan we detected the feature\n\
00237 \n\
00238 ================================================================================\n\
00239 MSG: geometry_msgs/Point\n\
00240 # This contains the position of a point in free space\n\
00241 float64 x\n\
00242 float64 y\n\
00243 float64 z\n\
00244 \n\
00245 ";
00246 }
00247
00248 static const char* value(const ::calibration_msgs::DenseLaserObjectFeatures_<ContainerAllocator> &) { return value(); }
00249 };
00250
00251 template<class ContainerAllocator> struct HasHeader< ::calibration_msgs::DenseLaserObjectFeatures_<ContainerAllocator> > : public TrueType {};
00252 template<class ContainerAllocator> struct HasHeader< const ::calibration_msgs::DenseLaserObjectFeatures_<ContainerAllocator> > : public TrueType {};
00253 }
00254 }
00255
00256 namespace ros
00257 {
00258 namespace serialization
00259 {
00260
00261 template<class ContainerAllocator> struct Serializer< ::calibration_msgs::DenseLaserObjectFeatures_<ContainerAllocator> >
00262 {
00263 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00264 {
00265 stream.next(m.header);
00266 stream.next(m.dense_laser_points);
00267 stream.next(m.object_points);
00268 stream.next(m.success);
00269 }
00270
00271 ROS_DECLARE_ALLINONE_SERIALIZER;
00272 };
00273 }
00274 }
00275
00276 namespace ros
00277 {
00278 namespace message_operations
00279 {
00280
00281 template<class ContainerAllocator>
00282 struct Printer< ::calibration_msgs::DenseLaserObjectFeatures_<ContainerAllocator> >
00283 {
00284 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::calibration_msgs::DenseLaserObjectFeatures_<ContainerAllocator> & v)
00285 {
00286 s << indent << "header: ";
00287 s << std::endl;
00288 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00289 s << indent << "dense_laser_points[]" << std::endl;
00290 for (size_t i = 0; i < v.dense_laser_points.size(); ++i)
00291 {
00292 s << indent << " dense_laser_points[" << i << "]: ";
00293 s << std::endl;
00294 s << indent;
00295 Printer< ::calibration_msgs::DenseLaserPoint_<ContainerAllocator> >::stream(s, indent + " ", v.dense_laser_points[i]);
00296 }
00297 s << indent << "object_points[]" << std::endl;
00298 for (size_t i = 0; i < v.object_points.size(); ++i)
00299 {
00300 s << indent << " object_points[" << i << "]: ";
00301 s << std::endl;
00302 s << indent;
00303 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.object_points[i]);
00304 }
00305 s << indent << "success: ";
00306 Printer<uint8_t>::stream(s, indent + " ", v.success);
00307 }
00308 };
00309
00310
00311 }
00312 }
00313
00314 #endif // CALIBRATION_MSGS_MESSAGE_DENSELASEROBJECTFEATURES_H
00315