00001
00002 #ifndef OBJECT_MANIPULATION_MSGS_MESSAGE_CLUSTERBOUNDINGBOX_H
00003 #define OBJECT_MANIPULATION_MSGS_MESSAGE_CLUSTERBOUNDINGBOX_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 #include "geometry_msgs/Vector3.h"
00015
00016 namespace object_manipulation_msgs
00017 {
00018 template <class ContainerAllocator>
00019 struct ClusterBoundingBox_ : public ros::Message
00020 {
00021 typedef ClusterBoundingBox_<ContainerAllocator> Type;
00022
00023 ClusterBoundingBox_()
00024 : pose_stamped()
00025 , dimensions()
00026 {
00027 }
00028
00029 ClusterBoundingBox_(const ContainerAllocator& _alloc)
00030 : pose_stamped(_alloc)
00031 , dimensions(_alloc)
00032 {
00033 }
00034
00035 typedef ::geometry_msgs::PoseStamped_<ContainerAllocator> _pose_stamped_type;
00036 ::geometry_msgs::PoseStamped_<ContainerAllocator> pose_stamped;
00037
00038 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _dimensions_type;
00039 ::geometry_msgs::Vector3_<ContainerAllocator> dimensions;
00040
00041
00042 private:
00043 static const char* __s_getDataType_() { return "object_manipulation_msgs/ClusterBoundingBox"; }
00044 public:
00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00046
00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00048
00049 private:
00050 static const char* __s_getMD5Sum_() { return "9bf2b7a44ad666dc3a6a2bbc21782dad"; }
00051 public:
00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00053
00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00055
00056 private:
00057 static const char* __s_getMessageDefinition_() { return "# contains a bounding box, which is essentially a box somewhere in space\n\
00058 # used here ususally for the outlier-invariant bounding box of a cluster of points\n\
00059 \n\
00060 #the pose of the box frame\n\
00061 geometry_msgs/PoseStamped pose_stamped\n\
00062 \n\
00063 #the dimensions of the box\n\
00064 geometry_msgs/Vector3 dimensions\n\
00065 \n\
00066 ================================================================================\n\
00067 MSG: geometry_msgs/PoseStamped\n\
00068 # A Pose with reference coordinate frame and timestamp\n\
00069 Header header\n\
00070 Pose pose\n\
00071 \n\
00072 ================================================================================\n\
00073 MSG: std_msgs/Header\n\
00074 # Standard metadata for higher-level stamped data types.\n\
00075 # This is generally used to communicate timestamped data \n\
00076 # in a particular coordinate frame.\n\
00077 # \n\
00078 # sequence ID: consecutively increasing ID \n\
00079 uint32 seq\n\
00080 #Two-integer timestamp that is expressed as:\n\
00081 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00082 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00083 # time-handling sugar is provided by the client library\n\
00084 time stamp\n\
00085 #Frame this data is associated with\n\
00086 # 0: no frame\n\
00087 # 1: global frame\n\
00088 string frame_id\n\
00089 \n\
00090 ================================================================================\n\
00091 MSG: geometry_msgs/Pose\n\
00092 # A representation of pose in free space, composed of postion and orientation. \n\
00093 Point position\n\
00094 Quaternion orientation\n\
00095 \n\
00096 ================================================================================\n\
00097 MSG: geometry_msgs/Point\n\
00098 # This contains the position of a point in free space\n\
00099 float64 x\n\
00100 float64 y\n\
00101 float64 z\n\
00102 \n\
00103 ================================================================================\n\
00104 MSG: geometry_msgs/Quaternion\n\
00105 # This represents an orientation in free space in quaternion form.\n\
00106 \n\
00107 float64 x\n\
00108 float64 y\n\
00109 float64 z\n\
00110 float64 w\n\
00111 \n\
00112 ================================================================================\n\
00113 MSG: geometry_msgs/Vector3\n\
00114 # This represents a vector in free space. \n\
00115 \n\
00116 float64 x\n\
00117 float64 y\n\
00118 float64 z\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, pose_stamped);
00129 ros::serialization::serialize(stream, dimensions);
00130 return stream.getData();
00131 }
00132
00133 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00134 {
00135 ros::serialization::IStream stream(read_ptr, 1000000000);
00136 ros::serialization::deserialize(stream, pose_stamped);
00137 ros::serialization::deserialize(stream, dimensions);
00138 return stream.getData();
00139 }
00140
00141 ROS_DEPRECATED virtual uint32_t serializationLength() const
00142 {
00143 uint32_t size = 0;
00144 size += ros::serialization::serializationLength(pose_stamped);
00145 size += ros::serialization::serializationLength(dimensions);
00146 return size;
00147 }
00148
00149 typedef boost::shared_ptr< ::object_manipulation_msgs::ClusterBoundingBox_<ContainerAllocator> > Ptr;
00150 typedef boost::shared_ptr< ::object_manipulation_msgs::ClusterBoundingBox_<ContainerAllocator> const> ConstPtr;
00151 };
00152 typedef ::object_manipulation_msgs::ClusterBoundingBox_<std::allocator<void> > ClusterBoundingBox;
00153
00154 typedef boost::shared_ptr< ::object_manipulation_msgs::ClusterBoundingBox> ClusterBoundingBoxPtr;
00155 typedef boost::shared_ptr< ::object_manipulation_msgs::ClusterBoundingBox const> ClusterBoundingBoxConstPtr;
00156
00157
00158 template<typename ContainerAllocator>
00159 std::ostream& operator<<(std::ostream& s, const ::object_manipulation_msgs::ClusterBoundingBox_<ContainerAllocator> & v)
00160 {
00161 ros::message_operations::Printer< ::object_manipulation_msgs::ClusterBoundingBox_<ContainerAllocator> >::stream(s, "", v);
00162 return s;}
00163
00164 }
00165
00166 namespace ros
00167 {
00168 namespace message_traits
00169 {
00170 template<class ContainerAllocator>
00171 struct MD5Sum< ::object_manipulation_msgs::ClusterBoundingBox_<ContainerAllocator> > {
00172 static const char* value()
00173 {
00174 return "9bf2b7a44ad666dc3a6a2bbc21782dad";
00175 }
00176
00177 static const char* value(const ::object_manipulation_msgs::ClusterBoundingBox_<ContainerAllocator> &) { return value(); }
00178 static const uint64_t static_value1 = 0x9bf2b7a44ad666dcULL;
00179 static const uint64_t static_value2 = 0x3a6a2bbc21782dadULL;
00180 };
00181
00182 template<class ContainerAllocator>
00183 struct DataType< ::object_manipulation_msgs::ClusterBoundingBox_<ContainerAllocator> > {
00184 static const char* value()
00185 {
00186 return "object_manipulation_msgs/ClusterBoundingBox";
00187 }
00188
00189 static const char* value(const ::object_manipulation_msgs::ClusterBoundingBox_<ContainerAllocator> &) { return value(); }
00190 };
00191
00192 template<class ContainerAllocator>
00193 struct Definition< ::object_manipulation_msgs::ClusterBoundingBox_<ContainerAllocator> > {
00194 static const char* value()
00195 {
00196 return "# contains a bounding box, which is essentially a box somewhere in space\n\
00197 # used here ususally for the outlier-invariant bounding box of a cluster of points\n\
00198 \n\
00199 #the pose of the box frame\n\
00200 geometry_msgs/PoseStamped pose_stamped\n\
00201 \n\
00202 #the dimensions of the box\n\
00203 geometry_msgs/Vector3 dimensions\n\
00204 \n\
00205 ================================================================================\n\
00206 MSG: geometry_msgs/PoseStamped\n\
00207 # A Pose with reference coordinate frame and timestamp\n\
00208 Header header\n\
00209 Pose pose\n\
00210 \n\
00211 ================================================================================\n\
00212 MSG: std_msgs/Header\n\
00213 # Standard metadata for higher-level stamped data types.\n\
00214 # This is generally used to communicate timestamped data \n\
00215 # in a particular coordinate frame.\n\
00216 # \n\
00217 # sequence ID: consecutively increasing ID \n\
00218 uint32 seq\n\
00219 #Two-integer timestamp that is expressed as:\n\
00220 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00221 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00222 # time-handling sugar is provided by the client library\n\
00223 time stamp\n\
00224 #Frame this data is associated with\n\
00225 # 0: no frame\n\
00226 # 1: global frame\n\
00227 string frame_id\n\
00228 \n\
00229 ================================================================================\n\
00230 MSG: geometry_msgs/Pose\n\
00231 # A representation of pose in free space, composed of postion and orientation. \n\
00232 Point position\n\
00233 Quaternion orientation\n\
00234 \n\
00235 ================================================================================\n\
00236 MSG: geometry_msgs/Point\n\
00237 # This contains the position of a point in free space\n\
00238 float64 x\n\
00239 float64 y\n\
00240 float64 z\n\
00241 \n\
00242 ================================================================================\n\
00243 MSG: geometry_msgs/Quaternion\n\
00244 # This represents an orientation in free space in quaternion form.\n\
00245 \n\
00246 float64 x\n\
00247 float64 y\n\
00248 float64 z\n\
00249 float64 w\n\
00250 \n\
00251 ================================================================================\n\
00252 MSG: geometry_msgs/Vector3\n\
00253 # This represents a vector in free space. \n\
00254 \n\
00255 float64 x\n\
00256 float64 y\n\
00257 float64 z\n\
00258 ";
00259 }
00260
00261 static const char* value(const ::object_manipulation_msgs::ClusterBoundingBox_<ContainerAllocator> &) { return value(); }
00262 };
00263
00264 }
00265 }
00266
00267 namespace ros
00268 {
00269 namespace serialization
00270 {
00271
00272 template<class ContainerAllocator> struct Serializer< ::object_manipulation_msgs::ClusterBoundingBox_<ContainerAllocator> >
00273 {
00274 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00275 {
00276 stream.next(m.pose_stamped);
00277 stream.next(m.dimensions);
00278 }
00279
00280 ROS_DECLARE_ALLINONE_SERIALIZER;
00281 };
00282 }
00283 }
00284
00285 namespace ros
00286 {
00287 namespace message_operations
00288 {
00289
00290 template<class ContainerAllocator>
00291 struct Printer< ::object_manipulation_msgs::ClusterBoundingBox_<ContainerAllocator> >
00292 {
00293 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::object_manipulation_msgs::ClusterBoundingBox_<ContainerAllocator> & v)
00294 {
00295 s << indent << "pose_stamped: ";
00296 s << std::endl;
00297 Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + " ", v.pose_stamped);
00298 s << indent << "dimensions: ";
00299 s << std::endl;
00300 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.dimensions);
00301 }
00302 };
00303
00304
00305 }
00306 }
00307
00308 #endif // OBJECT_MANIPULATION_MSGS_MESSAGE_CLUSTERBOUNDINGBOX_H
00309