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