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