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