00001
00002 #ifndef TABLETOP_OBJECT_DETECTOR_MESSAGE_TABLE_H
00003 #define TABLETOP_OBJECT_DETECTOR_MESSAGE_TABLE_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 "geometry_msgs/PoseStamped.h"
00014
00015 namespace tabletop_object_detector
00016 {
00017 template <class ContainerAllocator>
00018 struct Table_ : public ros::Message
00019 {
00020 typedef Table_<ContainerAllocator> Type;
00021
00022 Table_()
00023 : pose()
00024 , x_min(0.0)
00025 , x_max(0.0)
00026 , y_min(0.0)
00027 , y_max(0.0)
00028 {
00029 }
00030
00031 Table_(const ContainerAllocator& _alloc)
00032 : pose(_alloc)
00033 , x_min(0.0)
00034 , x_max(0.0)
00035 , y_min(0.0)
00036 , y_max(0.0)
00037 {
00038 }
00039
00040 typedef ::geometry_msgs::PoseStamped_<ContainerAllocator> _pose_type;
00041 ::geometry_msgs::PoseStamped_<ContainerAllocator> pose;
00042
00043 typedef float _x_min_type;
00044 float x_min;
00045
00046 typedef float _x_max_type;
00047 float x_max;
00048
00049 typedef float _y_min_type;
00050 float y_min;
00051
00052 typedef float _y_max_type;
00053 float y_max;
00054
00055
00056 private:
00057 static const char* __s_getDataType_() { return "tabletop_object_detector/Table"; }
00058 public:
00059 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00060
00061 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00062
00063 private:
00064 static const char* __s_getMD5Sum_() { return "3fd2fdafb9bb4e6aa05a5a5dee8545d5"; }
00065 public:
00066 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00067
00068 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00069
00070 private:
00071 static const char* __s_getMessageDefinition_() { return "# Informs that a planar table has been detected at a given location\n\
00072 \n\
00073 # The pose gives you the transform that take you to the coordinate system\n\
00074 # of the table, with the origin somewhere in the table plane and the \n\
00075 # z axis normal to the plane\n\
00076 geometry_msgs/PoseStamped pose\n\
00077 \n\
00078 # These values give you the observed extents of the table, along x and y,\n\
00079 # in the table's own coordinate system (above)\n\
00080 # there is no guarantee that the origin of the table coordinate system is\n\
00081 # inside the boundary defined by these values. \n\
00082 float32 x_min\n\
00083 float32 x_max\n\
00084 float32 y_min\n\
00085 float32 y_max\n\
00086 \n\
00087 # There is no guarantee that the table doe NOT extend further than these \n\
00088 # values; this is just as far as we've observed it.\n\
00089 \n\
00090 ================================================================================\n\
00091 MSG: geometry_msgs/PoseStamped\n\
00092 # A Pose with reference coordinate frame and timestamp\n\
00093 Header header\n\
00094 Pose pose\n\
00095 \n\
00096 ================================================================================\n\
00097 MSG: std_msgs/Header\n\
00098 # Standard metadata for higher-level stamped data types.\n\
00099 # This is generally used to communicate timestamped data \n\
00100 # in a particular coordinate frame.\n\
00101 # \n\
00102 # sequence ID: consecutively increasing ID \n\
00103 uint32 seq\n\
00104 #Two-integer timestamp that is expressed as:\n\
00105 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00106 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00107 # time-handling sugar is provided by the client library\n\
00108 time stamp\n\
00109 #Frame this data is associated with\n\
00110 # 0: no frame\n\
00111 # 1: global frame\n\
00112 string frame_id\n\
00113 \n\
00114 ================================================================================\n\
00115 MSG: geometry_msgs/Pose\n\
00116 # A representation of pose in free space, composed of postion and orientation. \n\
00117 Point position\n\
00118 Quaternion orientation\n\
00119 \n\
00120 ================================================================================\n\
00121 MSG: geometry_msgs/Point\n\
00122 # This contains the position of a point in free space\n\
00123 float64 x\n\
00124 float64 y\n\
00125 float64 z\n\
00126 \n\
00127 ================================================================================\n\
00128 MSG: geometry_msgs/Quaternion\n\
00129 # This represents an orientation in free space in quaternion form.\n\
00130 \n\
00131 float64 x\n\
00132 float64 y\n\
00133 float64 z\n\
00134 float64 w\n\
00135 \n\
00136 "; }
00137 public:
00138 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00139
00140 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00141
00142 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00143 {
00144 ros::serialization::OStream stream(write_ptr, 1000000000);
00145 ros::serialization::serialize(stream, pose);
00146 ros::serialization::serialize(stream, x_min);
00147 ros::serialization::serialize(stream, x_max);
00148 ros::serialization::serialize(stream, y_min);
00149 ros::serialization::serialize(stream, y_max);
00150 return stream.getData();
00151 }
00152
00153 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00154 {
00155 ros::serialization::IStream stream(read_ptr, 1000000000);
00156 ros::serialization::deserialize(stream, pose);
00157 ros::serialization::deserialize(stream, x_min);
00158 ros::serialization::deserialize(stream, x_max);
00159 ros::serialization::deserialize(stream, y_min);
00160 ros::serialization::deserialize(stream, y_max);
00161 return stream.getData();
00162 }
00163
00164 ROS_DEPRECATED virtual uint32_t serializationLength() const
00165 {
00166 uint32_t size = 0;
00167 size += ros::serialization::serializationLength(pose);
00168 size += ros::serialization::serializationLength(x_min);
00169 size += ros::serialization::serializationLength(x_max);
00170 size += ros::serialization::serializationLength(y_min);
00171 size += ros::serialization::serializationLength(y_max);
00172 return size;
00173 }
00174
00175 typedef boost::shared_ptr< ::tabletop_object_detector::Table_<ContainerAllocator> > Ptr;
00176 typedef boost::shared_ptr< ::tabletop_object_detector::Table_<ContainerAllocator> const> ConstPtr;
00177 };
00178 typedef ::tabletop_object_detector::Table_<std::allocator<void> > Table;
00179
00180 typedef boost::shared_ptr< ::tabletop_object_detector::Table> TablePtr;
00181 typedef boost::shared_ptr< ::tabletop_object_detector::Table const> TableConstPtr;
00182
00183
00184 template<typename ContainerAllocator>
00185 std::ostream& operator<<(std::ostream& s, const ::tabletop_object_detector::Table_<ContainerAllocator> & v)
00186 {
00187 ros::message_operations::Printer< ::tabletop_object_detector::Table_<ContainerAllocator> >::stream(s, "", v);
00188 return s;}
00189
00190 }
00191
00192 namespace ros
00193 {
00194 namespace message_traits
00195 {
00196 template<class ContainerAllocator>
00197 struct MD5Sum< ::tabletop_object_detector::Table_<ContainerAllocator> > {
00198 static const char* value()
00199 {
00200 return "3fd2fdafb9bb4e6aa05a5a5dee8545d5";
00201 }
00202
00203 static const char* value(const ::tabletop_object_detector::Table_<ContainerAllocator> &) { return value(); }
00204 static const uint64_t static_value1 = 0x3fd2fdafb9bb4e6aULL;
00205 static const uint64_t static_value2 = 0xa05a5a5dee8545d5ULL;
00206 };
00207
00208 template<class ContainerAllocator>
00209 struct DataType< ::tabletop_object_detector::Table_<ContainerAllocator> > {
00210 static const char* value()
00211 {
00212 return "tabletop_object_detector/Table";
00213 }
00214
00215 static const char* value(const ::tabletop_object_detector::Table_<ContainerAllocator> &) { return value(); }
00216 };
00217
00218 template<class ContainerAllocator>
00219 struct Definition< ::tabletop_object_detector::Table_<ContainerAllocator> > {
00220 static const char* value()
00221 {
00222 return "# Informs that a planar table has been detected at a given location\n\
00223 \n\
00224 # The pose gives you the transform that take you to the coordinate system\n\
00225 # of the table, with the origin somewhere in the table plane and the \n\
00226 # z axis normal to the plane\n\
00227 geometry_msgs/PoseStamped pose\n\
00228 \n\
00229 # These values give you the observed extents of the table, along x and y,\n\
00230 # in the table's own coordinate system (above)\n\
00231 # there is no guarantee that the origin of the table coordinate system is\n\
00232 # inside the boundary defined by these values. \n\
00233 float32 x_min\n\
00234 float32 x_max\n\
00235 float32 y_min\n\
00236 float32 y_max\n\
00237 \n\
00238 # There is no guarantee that the table doe NOT extend further than these \n\
00239 # values; this is just as far as we've observed it.\n\
00240 \n\
00241 ================================================================================\n\
00242 MSG: geometry_msgs/PoseStamped\n\
00243 # A Pose with reference coordinate frame and timestamp\n\
00244 Header header\n\
00245 Pose pose\n\
00246 \n\
00247 ================================================================================\n\
00248 MSG: std_msgs/Header\n\
00249 # Standard metadata for higher-level stamped data types.\n\
00250 # This is generally used to communicate timestamped data \n\
00251 # in a particular coordinate frame.\n\
00252 # \n\
00253 # sequence ID: consecutively increasing ID \n\
00254 uint32 seq\n\
00255 #Two-integer timestamp that is expressed as:\n\
00256 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00257 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00258 # time-handling sugar is provided by the client library\n\
00259 time stamp\n\
00260 #Frame this data is associated with\n\
00261 # 0: no frame\n\
00262 # 1: global frame\n\
00263 string frame_id\n\
00264 \n\
00265 ================================================================================\n\
00266 MSG: geometry_msgs/Pose\n\
00267 # A representation of pose in free space, composed of postion and orientation. \n\
00268 Point position\n\
00269 Quaternion orientation\n\
00270 \n\
00271 ================================================================================\n\
00272 MSG: geometry_msgs/Point\n\
00273 # This contains the position of a point in free space\n\
00274 float64 x\n\
00275 float64 y\n\
00276 float64 z\n\
00277 \n\
00278 ================================================================================\n\
00279 MSG: geometry_msgs/Quaternion\n\
00280 # This represents an orientation in free space in quaternion form.\n\
00281 \n\
00282 float64 x\n\
00283 float64 y\n\
00284 float64 z\n\
00285 float64 w\n\
00286 \n\
00287 ";
00288 }
00289
00290 static const char* value(const ::tabletop_object_detector::Table_<ContainerAllocator> &) { return value(); }
00291 };
00292
00293 }
00294 }
00295
00296 namespace ros
00297 {
00298 namespace serialization
00299 {
00300
00301 template<class ContainerAllocator> struct Serializer< ::tabletop_object_detector::Table_<ContainerAllocator> >
00302 {
00303 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00304 {
00305 stream.next(m.pose);
00306 stream.next(m.x_min);
00307 stream.next(m.x_max);
00308 stream.next(m.y_min);
00309 stream.next(m.y_max);
00310 }
00311
00312 ROS_DECLARE_ALLINONE_SERIALIZER;
00313 };
00314 }
00315 }
00316
00317 namespace ros
00318 {
00319 namespace message_operations
00320 {
00321
00322 template<class ContainerAllocator>
00323 struct Printer< ::tabletop_object_detector::Table_<ContainerAllocator> >
00324 {
00325 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::tabletop_object_detector::Table_<ContainerAllocator> & v)
00326 {
00327 s << indent << "pose: ";
00328 s << std::endl;
00329 Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + " ", v.pose);
00330 s << indent << "x_min: ";
00331 Printer<float>::stream(s, indent + " ", v.x_min);
00332 s << indent << "x_max: ";
00333 Printer<float>::stream(s, indent + " ", v.x_max);
00334 s << indent << "y_min: ";
00335 Printer<float>::stream(s, indent + " ", v.y_min);
00336 s << indent << "y_max: ";
00337 Printer<float>::stream(s, indent + " ", v.y_max);
00338 }
00339 };
00340
00341
00342 }
00343 }
00344
00345 #endif // TABLETOP_OBJECT_DETECTOR_MESSAGE_TABLE_H
00346