00001
00002 #ifndef WORLDMODEL_MSGS_MESSAGE_OBJECTSTATE_H
00003 #define WORLDMODEL_MSGS_MESSAGE_OBJECTSTATE_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
00018 namespace worldmodel_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct ObjectState_ {
00022 typedef ObjectState_<ContainerAllocator> Type;
00023
00024 ObjectState_()
00025 : state(0)
00026 {
00027 }
00028
00029 ObjectState_(const ContainerAllocator& _alloc)
00030 : state(0)
00031 {
00032 }
00033
00034 typedef int8_t _state_type;
00035 int8_t state;
00036
00037 enum { UNKNOWN = 0 };
00038 enum { PENDING = 1 };
00039 enum { ACTIVE = 2 };
00040 enum { CONFIRMED = -1 };
00041 enum { DISCARDED = -2 };
00042 enum { APPROACHING = -3 };
00043
00044 private:
00045 static const char* __s_getDataType_() { return "worldmodel_msgs/ObjectState"; }
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 "df53bf1a788b2816bf176c016550e177"; }
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 "# The state of an object estimate used to track\n\
00060 # states smaller than 0 disable all updates\n\
00061 \n\
00062 int8 UNKNOWN = 0\n\
00063 int8 PENDING = 1\n\
00064 int8 ACTIVE = 2\n\
00065 int8 CONFIRMED = -1\n\
00066 int8 DISCARDED = -2\n\
00067 int8 APPROACHING = -3\n\
00068 \n\
00069 int8 state\n\
00070 \n\
00071 "; }
00072 public:
00073 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00074
00075 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00076
00077 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00078 {
00079 ros::serialization::OStream stream(write_ptr, 1000000000);
00080 ros::serialization::serialize(stream, state);
00081 return stream.getData();
00082 }
00083
00084 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00085 {
00086 ros::serialization::IStream stream(read_ptr, 1000000000);
00087 ros::serialization::deserialize(stream, state);
00088 return stream.getData();
00089 }
00090
00091 ROS_DEPRECATED virtual uint32_t serializationLength() const
00092 {
00093 uint32_t size = 0;
00094 size += ros::serialization::serializationLength(state);
00095 return size;
00096 }
00097
00098 typedef boost::shared_ptr< ::worldmodel_msgs::ObjectState_<ContainerAllocator> > Ptr;
00099 typedef boost::shared_ptr< ::worldmodel_msgs::ObjectState_<ContainerAllocator> const> ConstPtr;
00100 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00101 };
00102 typedef ::worldmodel_msgs::ObjectState_<std::allocator<void> > ObjectState;
00103
00104 typedef boost::shared_ptr< ::worldmodel_msgs::ObjectState> ObjectStatePtr;
00105 typedef boost::shared_ptr< ::worldmodel_msgs::ObjectState const> ObjectStateConstPtr;
00106
00107
00108 template<typename ContainerAllocator>
00109 std::ostream& operator<<(std::ostream& s, const ::worldmodel_msgs::ObjectState_<ContainerAllocator> & v)
00110 {
00111 ros::message_operations::Printer< ::worldmodel_msgs::ObjectState_<ContainerAllocator> >::stream(s, "", v);
00112 return s;}
00113
00114 }
00115
00116 namespace ros
00117 {
00118 namespace message_traits
00119 {
00120 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::ObjectState_<ContainerAllocator> > : public TrueType {};
00121 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::ObjectState_<ContainerAllocator> const> : public TrueType {};
00122 template<class ContainerAllocator>
00123 struct MD5Sum< ::worldmodel_msgs::ObjectState_<ContainerAllocator> > {
00124 static const char* value()
00125 {
00126 return "df53bf1a788b2816bf176c016550e177";
00127 }
00128
00129 static const char* value(const ::worldmodel_msgs::ObjectState_<ContainerAllocator> &) { return value(); }
00130 static const uint64_t static_value1 = 0xdf53bf1a788b2816ULL;
00131 static const uint64_t static_value2 = 0xbf176c016550e177ULL;
00132 };
00133
00134 template<class ContainerAllocator>
00135 struct DataType< ::worldmodel_msgs::ObjectState_<ContainerAllocator> > {
00136 static const char* value()
00137 {
00138 return "worldmodel_msgs/ObjectState";
00139 }
00140
00141 static const char* value(const ::worldmodel_msgs::ObjectState_<ContainerAllocator> &) { return value(); }
00142 };
00143
00144 template<class ContainerAllocator>
00145 struct Definition< ::worldmodel_msgs::ObjectState_<ContainerAllocator> > {
00146 static const char* value()
00147 {
00148 return "# The state of an object estimate used to track\n\
00149 # states smaller than 0 disable all updates\n\
00150 \n\
00151 int8 UNKNOWN = 0\n\
00152 int8 PENDING = 1\n\
00153 int8 ACTIVE = 2\n\
00154 int8 CONFIRMED = -1\n\
00155 int8 DISCARDED = -2\n\
00156 int8 APPROACHING = -3\n\
00157 \n\
00158 int8 state\n\
00159 \n\
00160 ";
00161 }
00162
00163 static const char* value(const ::worldmodel_msgs::ObjectState_<ContainerAllocator> &) { return value(); }
00164 };
00165
00166 template<class ContainerAllocator> struct IsFixedSize< ::worldmodel_msgs::ObjectState_<ContainerAllocator> > : public TrueType {};
00167 }
00168 }
00169
00170 namespace ros
00171 {
00172 namespace serialization
00173 {
00174
00175 template<class ContainerAllocator> struct Serializer< ::worldmodel_msgs::ObjectState_<ContainerAllocator> >
00176 {
00177 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00178 {
00179 stream.next(m.state);
00180 }
00181
00182 ROS_DECLARE_ALLINONE_SERIALIZER;
00183 };
00184 }
00185 }
00186
00187 namespace ros
00188 {
00189 namespace message_operations
00190 {
00191
00192 template<class ContainerAllocator>
00193 struct Printer< ::worldmodel_msgs::ObjectState_<ContainerAllocator> >
00194 {
00195 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::worldmodel_msgs::ObjectState_<ContainerAllocator> & v)
00196 {
00197 s << indent << "state: ";
00198 Printer<int8_t>::stream(s, indent + " ", v.state);
00199 }
00200 };
00201
00202
00203 }
00204 }
00205
00206 #endif // WORLDMODEL_MSGS_MESSAGE_OBJECTSTATE_H
00207