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