00001
00002 #ifndef MAPPING_MSGS_MESSAGE_ORIENTEDBOUNDINGBOX_H
00003 #define MAPPING_MSGS_MESSAGE_ORIENTEDBOUNDINGBOX_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/Point32.h"
00014 #include "geometry_msgs/Point32.h"
00015 #include "geometry_msgs/Point32.h"
00016
00017 namespace mapping_msgs
00018 {
00019 template <class ContainerAllocator>
00020 struct OrientedBoundingBox_ : public ros::Message
00021 {
00022 typedef OrientedBoundingBox_<ContainerAllocator> Type;
00023
00024 OrientedBoundingBox_()
00025 : center()
00026 , extents()
00027 , axis()
00028 , angle(0.0)
00029 {
00030 }
00031
00032 OrientedBoundingBox_(const ContainerAllocator& _alloc)
00033 : center(_alloc)
00034 , extents(_alloc)
00035 , axis(_alloc)
00036 , angle(0.0)
00037 {
00038 }
00039
00040 typedef ::geometry_msgs::Point32_<ContainerAllocator> _center_type;
00041 ::geometry_msgs::Point32_<ContainerAllocator> center;
00042
00043 typedef ::geometry_msgs::Point32_<ContainerAllocator> _extents_type;
00044 ::geometry_msgs::Point32_<ContainerAllocator> extents;
00045
00046 typedef ::geometry_msgs::Point32_<ContainerAllocator> _axis_type;
00047 ::geometry_msgs::Point32_<ContainerAllocator> axis;
00048
00049 typedef float _angle_type;
00050 float angle;
00051
00052
00053 private:
00054 static const char* __s_getDataType_() { return "mapping_msgs/OrientedBoundingBox"; }
00055 public:
00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00057
00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00059
00060 private:
00061 static const char* __s_getMD5Sum_() { return "a9b13162620bd04a7cb84cf207e7a8ac"; }
00062 public:
00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00064
00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00066
00067 private:
00068 static const char* __s_getMessageDefinition_() { return "#the center of the box\n\
00069 geometry_msgs/Point32 center\n\
00070 \n\
00071 #the extents of the box, assuming the center is at the point\n\
00072 geometry_msgs/Point32 extents\n\
00073 \n\
00074 #the axis of the box\n\
00075 geometry_msgs/Point32 axis\n\
00076 \n\
00077 #the angle of rotation around the axis\n\
00078 float32 angle\n\
00079 \n\
00080 ================================================================================\n\
00081 MSG: geometry_msgs/Point32\n\
00082 # This contains the position of a point in free space(with 32 bits of precision).\n\
00083 # It is recommeded to use Point wherever possible instead of Point32. \n\
00084 # \n\
00085 # This recommendation is to promote interoperability. \n\
00086 #\n\
00087 # This message is designed to take up less space when sending\n\
00088 # lots of points at once, as in the case of a PointCloud. \n\
00089 \n\
00090 float32 x\n\
00091 float32 y\n\
00092 float32 z\n\
00093 "; }
00094 public:
00095 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00096
00097 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00098
00099 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00100 {
00101 ros::serialization::OStream stream(write_ptr, 1000000000);
00102 ros::serialization::serialize(stream, center);
00103 ros::serialization::serialize(stream, extents);
00104 ros::serialization::serialize(stream, axis);
00105 ros::serialization::serialize(stream, angle);
00106 return stream.getData();
00107 }
00108
00109 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00110 {
00111 ros::serialization::IStream stream(read_ptr, 1000000000);
00112 ros::serialization::deserialize(stream, center);
00113 ros::serialization::deserialize(stream, extents);
00114 ros::serialization::deserialize(stream, axis);
00115 ros::serialization::deserialize(stream, angle);
00116 return stream.getData();
00117 }
00118
00119 ROS_DEPRECATED virtual uint32_t serializationLength() const
00120 {
00121 uint32_t size = 0;
00122 size += ros::serialization::serializationLength(center);
00123 size += ros::serialization::serializationLength(extents);
00124 size += ros::serialization::serializationLength(axis);
00125 size += ros::serialization::serializationLength(angle);
00126 return size;
00127 }
00128
00129 typedef boost::shared_ptr< ::mapping_msgs::OrientedBoundingBox_<ContainerAllocator> > Ptr;
00130 typedef boost::shared_ptr< ::mapping_msgs::OrientedBoundingBox_<ContainerAllocator> const> ConstPtr;
00131 };
00132 typedef ::mapping_msgs::OrientedBoundingBox_<std::allocator<void> > OrientedBoundingBox;
00133
00134 typedef boost::shared_ptr< ::mapping_msgs::OrientedBoundingBox> OrientedBoundingBoxPtr;
00135 typedef boost::shared_ptr< ::mapping_msgs::OrientedBoundingBox const> OrientedBoundingBoxConstPtr;
00136
00137
00138 template<typename ContainerAllocator>
00139 std::ostream& operator<<(std::ostream& s, const ::mapping_msgs::OrientedBoundingBox_<ContainerAllocator> & v)
00140 {
00141 ros::message_operations::Printer< ::mapping_msgs::OrientedBoundingBox_<ContainerAllocator> >::stream(s, "", v);
00142 return s;}
00143
00144 }
00145
00146 namespace ros
00147 {
00148 namespace message_traits
00149 {
00150 template<class ContainerAllocator>
00151 struct MD5Sum< ::mapping_msgs::OrientedBoundingBox_<ContainerAllocator> > {
00152 static const char* value()
00153 {
00154 return "a9b13162620bd04a7cb84cf207e7a8ac";
00155 }
00156
00157 static const char* value(const ::mapping_msgs::OrientedBoundingBox_<ContainerAllocator> &) { return value(); }
00158 static const uint64_t static_value1 = 0xa9b13162620bd04aULL;
00159 static const uint64_t static_value2 = 0x7cb84cf207e7a8acULL;
00160 };
00161
00162 template<class ContainerAllocator>
00163 struct DataType< ::mapping_msgs::OrientedBoundingBox_<ContainerAllocator> > {
00164 static const char* value()
00165 {
00166 return "mapping_msgs/OrientedBoundingBox";
00167 }
00168
00169 static const char* value(const ::mapping_msgs::OrientedBoundingBox_<ContainerAllocator> &) { return value(); }
00170 };
00171
00172 template<class ContainerAllocator>
00173 struct Definition< ::mapping_msgs::OrientedBoundingBox_<ContainerAllocator> > {
00174 static const char* value()
00175 {
00176 return "#the center of the box\n\
00177 geometry_msgs/Point32 center\n\
00178 \n\
00179 #the extents of the box, assuming the center is at the point\n\
00180 geometry_msgs/Point32 extents\n\
00181 \n\
00182 #the axis of the box\n\
00183 geometry_msgs/Point32 axis\n\
00184 \n\
00185 #the angle of rotation around the axis\n\
00186 float32 angle\n\
00187 \n\
00188 ================================================================================\n\
00189 MSG: geometry_msgs/Point32\n\
00190 # This contains the position of a point in free space(with 32 bits of precision).\n\
00191 # It is recommeded to use Point wherever possible instead of Point32. \n\
00192 # \n\
00193 # This recommendation is to promote interoperability. \n\
00194 #\n\
00195 # This message is designed to take up less space when sending\n\
00196 # lots of points at once, as in the case of a PointCloud. \n\
00197 \n\
00198 float32 x\n\
00199 float32 y\n\
00200 float32 z\n\
00201 ";
00202 }
00203
00204 static const char* value(const ::mapping_msgs::OrientedBoundingBox_<ContainerAllocator> &) { return value(); }
00205 };
00206
00207 template<class ContainerAllocator> struct IsFixedSize< ::mapping_msgs::OrientedBoundingBox_<ContainerAllocator> > : public TrueType {};
00208 }
00209 }
00210
00211 namespace ros
00212 {
00213 namespace serialization
00214 {
00215
00216 template<class ContainerAllocator> struct Serializer< ::mapping_msgs::OrientedBoundingBox_<ContainerAllocator> >
00217 {
00218 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00219 {
00220 stream.next(m.center);
00221 stream.next(m.extents);
00222 stream.next(m.axis);
00223 stream.next(m.angle);
00224 }
00225
00226 ROS_DECLARE_ALLINONE_SERIALIZER;
00227 };
00228 }
00229 }
00230
00231 namespace ros
00232 {
00233 namespace message_operations
00234 {
00235
00236 template<class ContainerAllocator>
00237 struct Printer< ::mapping_msgs::OrientedBoundingBox_<ContainerAllocator> >
00238 {
00239 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::mapping_msgs::OrientedBoundingBox_<ContainerAllocator> & v)
00240 {
00241 s << indent << "center: ";
00242 s << std::endl;
00243 Printer< ::geometry_msgs::Point32_<ContainerAllocator> >::stream(s, indent + " ", v.center);
00244 s << indent << "extents: ";
00245 s << std::endl;
00246 Printer< ::geometry_msgs::Point32_<ContainerAllocator> >::stream(s, indent + " ", v.extents);
00247 s << indent << "axis: ";
00248 s << std::endl;
00249 Printer< ::geometry_msgs::Point32_<ContainerAllocator> >::stream(s, indent + " ", v.axis);
00250 s << indent << "angle: ";
00251 Printer<float>::stream(s, indent + " ", v.angle);
00252 }
00253 };
00254
00255
00256 }
00257 }
00258
00259 #endif // MAPPING_MSGS_MESSAGE_ORIENTEDBOUNDINGBOX_H
00260