00001 
00002 #ifndef VISION_MSGS_MESSAGE_COP_STATUS_H
00003 #define VISION_MSGS_MESSAGE_COP_STATUS_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 "vision_msgs/pp_status.h"
00014 
00015 namespace vision_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct cop_status_ : public ros::Message
00019 {
00020   typedef cop_status_<ContainerAllocator> Type;
00021 
00022   cop_status_()
00023   : cop_status()
00024   {
00025   }
00026 
00027   cop_status_(const ContainerAllocator& _alloc)
00028   : cop_status(_alloc)
00029   {
00030   }
00031 
00032   typedef std::vector< ::vision_msgs::pp_status_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::pp_status_<ContainerAllocator> >::other >  _cop_status_type;
00033   std::vector< ::vision_msgs::pp_status_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::pp_status_<ContainerAllocator> >::other >  cop_status;
00034 
00035 
00036   ROS_DEPRECATED uint32_t get_cop_status_size() const { return (uint32_t)cop_status.size(); }
00037   ROS_DEPRECATED void set_cop_status_size(uint32_t size) { cop_status.resize((size_t)size); }
00038   ROS_DEPRECATED void get_cop_status_vec(std::vector< ::vision_msgs::pp_status_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::pp_status_<ContainerAllocator> >::other > & vec) const { vec = this->cop_status; }
00039   ROS_DEPRECATED void set_cop_status_vec(const std::vector< ::vision_msgs::pp_status_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::pp_status_<ContainerAllocator> >::other > & vec) { this->cop_status = vec; }
00040 private:
00041   static const char* __s_getDataType_() { return "vision_msgs/cop_status"; }
00042 public:
00043   ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00044 
00045   ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00046 
00047 private:
00048   static const char* __s_getMD5Sum_() { return "e504873492775b055bbaa660522ec9d4"; }
00049 public:
00050   ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00051 
00052   ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00053 
00054 private:
00055   static const char* __s_getMessageDefinition_() { return "pp_status[] cop_status\n\
00056 ================================================================================\n\
00057 MSG: vision_msgs/pp_status\n\
00058 uint64  STARTED = 0\n\
00059 uint64  TERMINATED = 1\n\
00060 uint64  EVALUATED = 2\n\
00061 uint64  DELETABLE = 3\n\
00062 \n\
00063 uint64  perception_primitive\n\
00064 uint64  status\n\
00065 "; }
00066 public:
00067   ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00068 
00069   ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00070 
00071   ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00072   {
00073     ros::serialization::OStream stream(write_ptr, 1000000000);
00074     ros::serialization::serialize(stream, cop_status);
00075     return stream.getData();
00076   }
00077 
00078   ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00079   {
00080     ros::serialization::IStream stream(read_ptr, 1000000000);
00081     ros::serialization::deserialize(stream, cop_status);
00082     return stream.getData();
00083   }
00084 
00085   ROS_DEPRECATED virtual uint32_t serializationLength() const
00086   {
00087     uint32_t size = 0;
00088     size += ros::serialization::serializationLength(cop_status);
00089     return size;
00090   }
00091 
00092   typedef boost::shared_ptr< ::vision_msgs::cop_status_<ContainerAllocator> > Ptr;
00093   typedef boost::shared_ptr< ::vision_msgs::cop_status_<ContainerAllocator>  const> ConstPtr;
00094 }; 
00095 typedef  ::vision_msgs::cop_status_<std::allocator<void> > cop_status;
00096 
00097 typedef boost::shared_ptr< ::vision_msgs::cop_status> cop_statusPtr;
00098 typedef boost::shared_ptr< ::vision_msgs::cop_status const> cop_statusConstPtr;
00099 
00100 
00101 template<typename ContainerAllocator>
00102 std::ostream& operator<<(std::ostream& s, const  ::vision_msgs::cop_status_<ContainerAllocator> & v)
00103 {
00104   ros::message_operations::Printer< ::vision_msgs::cop_status_<ContainerAllocator> >::stream(s, "", v);
00105   return s;}
00106 
00107 } 
00108 
00109 namespace ros
00110 {
00111 namespace message_traits
00112 {
00113 template<class ContainerAllocator>
00114 struct MD5Sum< ::vision_msgs::cop_status_<ContainerAllocator> > {
00115   static const char* value() 
00116   {
00117     return "e504873492775b055bbaa660522ec9d4";
00118   }
00119 
00120   static const char* value(const  ::vision_msgs::cop_status_<ContainerAllocator> &) { return value(); } 
00121   static const uint64_t static_value1 = 0xe504873492775b05ULL;
00122   static const uint64_t static_value2 = 0x5bbaa660522ec9d4ULL;
00123 };
00124 
00125 template<class ContainerAllocator>
00126 struct DataType< ::vision_msgs::cop_status_<ContainerAllocator> > {
00127   static const char* value() 
00128   {
00129     return "vision_msgs/cop_status";
00130   }
00131 
00132   static const char* value(const  ::vision_msgs::cop_status_<ContainerAllocator> &) { return value(); } 
00133 };
00134 
00135 template<class ContainerAllocator>
00136 struct Definition< ::vision_msgs::cop_status_<ContainerAllocator> > {
00137   static const char* value() 
00138   {
00139     return "pp_status[] cop_status\n\
00140 ================================================================================\n\
00141 MSG: vision_msgs/pp_status\n\
00142 uint64  STARTED = 0\n\
00143 uint64  TERMINATED = 1\n\
00144 uint64  EVALUATED = 2\n\
00145 uint64  DELETABLE = 3\n\
00146 \n\
00147 uint64  perception_primitive\n\
00148 uint64  status\n\
00149 ";
00150   }
00151 
00152   static const char* value(const  ::vision_msgs::cop_status_<ContainerAllocator> &) { return value(); } 
00153 };
00154 
00155 } 
00156 } 
00157 
00158 namespace ros
00159 {
00160 namespace serialization
00161 {
00162 
00163 template<class ContainerAllocator> struct Serializer< ::vision_msgs::cop_status_<ContainerAllocator> >
00164 {
00165   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00166   {
00167     stream.next(m.cop_status);
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< ::vision_msgs::cop_status_<ContainerAllocator> >
00182 {
00183   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::vision_msgs::cop_status_<ContainerAllocator> & v) 
00184   {
00185     s << indent << "cop_status[]" << std::endl;
00186     for (size_t i = 0; i < v.cop_status.size(); ++i)
00187     {
00188       s << indent << "  cop_status[" << i << "]: ";
00189       s << std::endl;
00190       s << indent;
00191       Printer< ::vision_msgs::pp_status_<ContainerAllocator> >::stream(s, indent + "    ", v.cop_status[i]);
00192     }
00193   }
00194 };
00195 
00196 
00197 } 
00198 } 
00199 
00200 #endif // VISION_MSGS_MESSAGE_COP_STATUS_H
00201