$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_env_model/msg/Context.msg */ 00002 #ifndef SRS_ENV_MODEL_MESSAGE_CONTEXT_H 00003 #define SRS_ENV_MODEL_MESSAGE_CONTEXT_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 srs_env_model 00019 { 00020 template <class ContainerAllocator> 00021 struct Context_ { 00022 typedef Context_<ContainerAllocator> Type; 00023 00024 Context_() 00025 : status_tag(0) 00026 , action_tag(0) 00027 , connection_tag(0) 00028 , collision_hazard_tag(0) 00029 { 00030 } 00031 00032 Context_(const ContainerAllocator& _alloc) 00033 : status_tag(0) 00034 , action_tag(0) 00035 , connection_tag(0) 00036 , collision_hazard_tag(0) 00037 { 00038 } 00039 00040 typedef uint8_t _status_tag_type; 00041 uint8_t status_tag; 00042 00043 typedef uint8_t _action_tag_type; 00044 uint8_t action_tag; 00045 00046 typedef uint8_t _connection_tag_type; 00047 uint8_t connection_tag; 00048 00049 typedef uint8_t _collision_hazard_tag_type; 00050 uint8_t collision_hazard_tag; 00051 00052 enum { OK = 0 }; 00053 enum { EMERGENCY = 1 }; 00054 enum { DEFAULT = 0 }; 00055 enum { GRASPING = 1 }; 00056 enum { MOVING = 2 }; 00057 enum { UNKNOWN = 0 }; 00058 enum { LAN = 1 }; 00059 enum { WIFI = 2 }; 00060 enum { NONE = 0 }; 00061 enum { LOW = 1 }; 00062 enum { MEDIUM = 2 }; 00063 enum { HIGH = 3 }; 00064 enum { COLLISION = 4 }; 00065 00066 private: 00067 static const char* __s_getDataType_() { return "srs_env_model/Context"; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00070 00071 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00072 00073 private: 00074 static const char* __s_getMD5Sum_() { return "058d1e098e4e9fc3ee4d7f607fc58f3c"; } 00075 public: 00076 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00077 00078 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00079 00080 private: 00081 static const char* __s_getMessageDefinition_() { return "# context tags\n\ 00082 uint8 status_tag\n\ 00083 uint8 action_tag\n\ 00084 uint8 connection_tag\n\ 00085 uint8 collision_hazard_tag\n\ 00086 \n\ 00087 # status tags\n\ 00088 uint8 OK=0\n\ 00089 uint8 EMERGENCY=1\n\ 00090 \n\ 00091 # action tags\n\ 00092 uint8 DEFAULT=0\n\ 00093 uint8 GRASPING=1\n\ 00094 uint8 MOVING=2\n\ 00095 \n\ 00096 # connection tags\n\ 00097 uint8 UNKNOWN=0\n\ 00098 uint8 LAN=1\n\ 00099 uint8 WIFI=2\n\ 00100 \n\ 00101 # collision hazard tags\n\ 00102 uint8 NONE=0 \n\ 00103 uint8 LOW=1\n\ 00104 uint8 MEDIUM=2\n\ 00105 uint8 HIGH=3\n\ 00106 uint8 COLLISION=4\n\ 00107 \n\ 00108 "; } 00109 public: 00110 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00111 00112 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00113 00114 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00115 { 00116 ros::serialization::OStream stream(write_ptr, 1000000000); 00117 ros::serialization::serialize(stream, status_tag); 00118 ros::serialization::serialize(stream, action_tag); 00119 ros::serialization::serialize(stream, connection_tag); 00120 ros::serialization::serialize(stream, collision_hazard_tag); 00121 return stream.getData(); 00122 } 00123 00124 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00125 { 00126 ros::serialization::IStream stream(read_ptr, 1000000000); 00127 ros::serialization::deserialize(stream, status_tag); 00128 ros::serialization::deserialize(stream, action_tag); 00129 ros::serialization::deserialize(stream, connection_tag); 00130 ros::serialization::deserialize(stream, collision_hazard_tag); 00131 return stream.getData(); 00132 } 00133 00134 ROS_DEPRECATED virtual uint32_t serializationLength() const 00135 { 00136 uint32_t size = 0; 00137 size += ros::serialization::serializationLength(status_tag); 00138 size += ros::serialization::serializationLength(action_tag); 00139 size += ros::serialization::serializationLength(connection_tag); 00140 size += ros::serialization::serializationLength(collision_hazard_tag); 00141 return size; 00142 } 00143 00144 typedef boost::shared_ptr< ::srs_env_model::Context_<ContainerAllocator> > Ptr; 00145 typedef boost::shared_ptr< ::srs_env_model::Context_<ContainerAllocator> const> ConstPtr; 00146 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00147 }; // struct Context 00148 typedef ::srs_env_model::Context_<std::allocator<void> > Context; 00149 00150 typedef boost::shared_ptr< ::srs_env_model::Context> ContextPtr; 00151 typedef boost::shared_ptr< ::srs_env_model::Context const> ContextConstPtr; 00152 00153 00154 template<typename ContainerAllocator> 00155 std::ostream& operator<<(std::ostream& s, const ::srs_env_model::Context_<ContainerAllocator> & v) 00156 { 00157 ros::message_operations::Printer< ::srs_env_model::Context_<ContainerAllocator> >::stream(s, "", v); 00158 return s;} 00159 00160 } // namespace srs_env_model 00161 00162 namespace ros 00163 { 00164 namespace message_traits 00165 { 00166 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::Context_<ContainerAllocator> > : public TrueType {}; 00167 template<class ContainerAllocator> struct IsMessage< ::srs_env_model::Context_<ContainerAllocator> const> : public TrueType {}; 00168 template<class ContainerAllocator> 00169 struct MD5Sum< ::srs_env_model::Context_<ContainerAllocator> > { 00170 static const char* value() 00171 { 00172 return "058d1e098e4e9fc3ee4d7f607fc58f3c"; 00173 } 00174 00175 static const char* value(const ::srs_env_model::Context_<ContainerAllocator> &) { return value(); } 00176 static const uint64_t static_value1 = 0x058d1e098e4e9fc3ULL; 00177 static const uint64_t static_value2 = 0xee4d7f607fc58f3cULL; 00178 }; 00179 00180 template<class ContainerAllocator> 00181 struct DataType< ::srs_env_model::Context_<ContainerAllocator> > { 00182 static const char* value() 00183 { 00184 return "srs_env_model/Context"; 00185 } 00186 00187 static const char* value(const ::srs_env_model::Context_<ContainerAllocator> &) { return value(); } 00188 }; 00189 00190 template<class ContainerAllocator> 00191 struct Definition< ::srs_env_model::Context_<ContainerAllocator> > { 00192 static const char* value() 00193 { 00194 return "# context tags\n\ 00195 uint8 status_tag\n\ 00196 uint8 action_tag\n\ 00197 uint8 connection_tag\n\ 00198 uint8 collision_hazard_tag\n\ 00199 \n\ 00200 # status tags\n\ 00201 uint8 OK=0\n\ 00202 uint8 EMERGENCY=1\n\ 00203 \n\ 00204 # action tags\n\ 00205 uint8 DEFAULT=0\n\ 00206 uint8 GRASPING=1\n\ 00207 uint8 MOVING=2\n\ 00208 \n\ 00209 # connection tags\n\ 00210 uint8 UNKNOWN=0\n\ 00211 uint8 LAN=1\n\ 00212 uint8 WIFI=2\n\ 00213 \n\ 00214 # collision hazard tags\n\ 00215 uint8 NONE=0 \n\ 00216 uint8 LOW=1\n\ 00217 uint8 MEDIUM=2\n\ 00218 uint8 HIGH=3\n\ 00219 uint8 COLLISION=4\n\ 00220 \n\ 00221 "; 00222 } 00223 00224 static const char* value(const ::srs_env_model::Context_<ContainerAllocator> &) { return value(); } 00225 }; 00226 00227 template<class ContainerAllocator> struct IsFixedSize< ::srs_env_model::Context_<ContainerAllocator> > : public TrueType {}; 00228 } // namespace message_traits 00229 } // namespace ros 00230 00231 namespace ros 00232 { 00233 namespace serialization 00234 { 00235 00236 template<class ContainerAllocator> struct Serializer< ::srs_env_model::Context_<ContainerAllocator> > 00237 { 00238 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00239 { 00240 stream.next(m.status_tag); 00241 stream.next(m.action_tag); 00242 stream.next(m.connection_tag); 00243 stream.next(m.collision_hazard_tag); 00244 } 00245 00246 ROS_DECLARE_ALLINONE_SERIALIZER; 00247 }; // struct Context_ 00248 } // namespace serialization 00249 } // namespace ros 00250 00251 namespace ros 00252 { 00253 namespace message_operations 00254 { 00255 00256 template<class ContainerAllocator> 00257 struct Printer< ::srs_env_model::Context_<ContainerAllocator> > 00258 { 00259 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_env_model::Context_<ContainerAllocator> & v) 00260 { 00261 s << indent << "status_tag: "; 00262 Printer<uint8_t>::stream(s, indent + " ", v.status_tag); 00263 s << indent << "action_tag: "; 00264 Printer<uint8_t>::stream(s, indent + " ", v.action_tag); 00265 s << indent << "connection_tag: "; 00266 Printer<uint8_t>::stream(s, indent + " ", v.connection_tag); 00267 s << indent << "collision_hazard_tag: "; 00268 Printer<uint8_t>::stream(s, indent + " ", v.collision_hazard_tag); 00269 } 00270 }; 00271 00272 00273 } // namespace message_operations 00274 } // namespace ros 00275 00276 #endif // SRS_ENV_MODEL_MESSAGE_CONTEXT_H 00277