Go to the documentation of this file.00001
00002 #ifndef ARM_NAVIGATION_MSGS_MESSAGE_COLLISIONMAP_H
00003 #define ARM_NAVIGATION_MSGS_MESSAGE_COLLISIONMAP_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 "arm_navigation_msgs/OrientedBoundingBox.h"
00019
00020 namespace arm_navigation_msgs
00021 {
00022 template <class ContainerAllocator>
00023 struct CollisionMap_ {
00024 typedef CollisionMap_<ContainerAllocator> Type;
00025
00026 CollisionMap_()
00027 : header()
00028 , boxes()
00029 {
00030 }
00031
00032 CollisionMap_(const ContainerAllocator& _alloc)
00033 : header(_alloc)
00034 , boxes(_alloc)
00035 {
00036 }
00037
00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00039 ::std_msgs::Header_<ContainerAllocator> header;
00040
00041 typedef std::vector< ::arm_navigation_msgs::OrientedBoundingBox_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::arm_navigation_msgs::OrientedBoundingBox_<ContainerAllocator> >::other > _boxes_type;
00042 std::vector< ::arm_navigation_msgs::OrientedBoundingBox_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::arm_navigation_msgs::OrientedBoundingBox_<ContainerAllocator> >::other > boxes;
00043
00044
00045 typedef boost::shared_ptr< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> > Ptr;
00046 typedef boost::shared_ptr< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> const> ConstPtr;
00047 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 };
00049 typedef ::arm_navigation_msgs::CollisionMap_<std::allocator<void> > CollisionMap;
00050
00051 typedef boost::shared_ptr< ::arm_navigation_msgs::CollisionMap> CollisionMapPtr;
00052 typedef boost::shared_ptr< ::arm_navigation_msgs::CollisionMap const> CollisionMapConstPtr;
00053
00054
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> & v)
00057 {
00058 ros::message_operations::Printer< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> >::stream(s, "", v);
00059 return s;}
00060
00061 }
00062
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> > {
00071 static const char* value()
00072 {
00073 return "18ca54db41ccebbe82f61f9801dede89";
00074 }
00075
00076 static const char* value(const ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> &) { return value(); }
00077 static const uint64_t static_value1 = 0x18ca54db41ccebbeULL;
00078 static const uint64_t static_value2 = 0x82f61f9801dede89ULL;
00079 };
00080
00081 template<class ContainerAllocator>
00082 struct DataType< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> > {
00083 static const char* value()
00084 {
00085 return "arm_navigation_msgs/CollisionMap";
00086 }
00087
00088 static const char* value(const ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> &) { return value(); }
00089 };
00090
00091 template<class ContainerAllocator>
00092 struct Definition< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> > {
00093 static const char* value()
00094 {
00095 return "#header for interpreting box positions\n\
00096 Header header\n\
00097 \n\
00098 #boxes for use in collision testing\n\
00099 OrientedBoundingBox[] boxes\n\
00100 \n\
00101 ================================================================================\n\
00102 MSG: std_msgs/Header\n\
00103 # Standard metadata for higher-level stamped data types.\n\
00104 # This is generally used to communicate timestamped data \n\
00105 # in a particular coordinate frame.\n\
00106 # \n\
00107 # sequence ID: consecutively increasing ID \n\
00108 uint32 seq\n\
00109 #Two-integer timestamp that is expressed as:\n\
00110 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00111 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00112 # time-handling sugar is provided by the client library\n\
00113 time stamp\n\
00114 #Frame this data is associated with\n\
00115 # 0: no frame\n\
00116 # 1: global frame\n\
00117 string frame_id\n\
00118 \n\
00119 ================================================================================\n\
00120 MSG: arm_navigation_msgs/OrientedBoundingBox\n\
00121 #the center of the box\n\
00122 geometry_msgs/Point32 center\n\
00123 \n\
00124 #the extents of the box, assuming the center is at the point\n\
00125 geometry_msgs/Point32 extents\n\
00126 \n\
00127 #the axis of the box\n\
00128 geometry_msgs/Point32 axis\n\
00129 \n\
00130 #the angle of rotation around the axis\n\
00131 float32 angle\n\
00132 \n\
00133 ================================================================================\n\
00134 MSG: geometry_msgs/Point32\n\
00135 # This contains the position of a point in free space(with 32 bits of precision).\n\
00136 # It is recommeded to use Point wherever possible instead of Point32. \n\
00137 # \n\
00138 # This recommendation is to promote interoperability. \n\
00139 #\n\
00140 # This message is designed to take up less space when sending\n\
00141 # lots of points at once, as in the case of a PointCloud. \n\
00142 \n\
00143 float32 x\n\
00144 float32 y\n\
00145 float32 z\n\
00146 ";
00147 }
00148
00149 static const char* value(const ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> &) { return value(); }
00150 };
00151
00152 template<class ContainerAllocator> struct HasHeader< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> > : public TrueType {};
00153 template<class ContainerAllocator> struct HasHeader< const ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> > : public TrueType {};
00154 }
00155 }
00156
00157 namespace ros
00158 {
00159 namespace serialization
00160 {
00161
00162 template<class ContainerAllocator> struct Serializer< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> >
00163 {
00164 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00165 {
00166 stream.next(m.header);
00167 stream.next(m.boxes);
00168 }
00169
00170 ROS_DECLARE_ALLINONE_SERIALIZER;
00171 };
00172 }
00173 }
00174
00175 namespace ros
00176 {
00177 namespace message_operations
00178 {
00179
00180 template<class ContainerAllocator>
00181 struct Printer< ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> >
00182 {
00183 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::arm_navigation_msgs::CollisionMap_<ContainerAllocator> & v)
00184 {
00185 s << indent << "header: ";
00186 s << std::endl;
00187 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00188 s << indent << "boxes[]" << std::endl;
00189 for (size_t i = 0; i < v.boxes.size(); ++i)
00190 {
00191 s << indent << " boxes[" << i << "]: ";
00192 s << std::endl;
00193 s << indent;
00194 Printer< ::arm_navigation_msgs::OrientedBoundingBox_<ContainerAllocator> >::stream(s, indent + " ", v.boxes[i]);
00195 }
00196 }
00197 };
00198
00199
00200 }
00201 }
00202
00203 #endif // ARM_NAVIGATION_MSGS_MESSAGE_COLLISIONMAP_H
00204