$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-cob_command_tools/doc_stacks/2013-03-01_14-37-44.555747/cob_command_tools/cob_script_server/msg/ScriptState.msg */ 00002 #ifndef COB_SCRIPT_SERVER_MESSAGE_SCRIPTSTATE_H 00003 #define COB_SCRIPT_SERVER_MESSAGE_SCRIPTSTATE_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 "std_msgs/Header.h" 00018 00019 namespace cob_script_server 00020 { 00021 template <class ContainerAllocator> 00022 struct ScriptState_ { 00023 typedef ScriptState_<ContainerAllocator> Type; 00024 00025 ScriptState_() 00026 : header() 00027 , number(0) 00028 , function_name() 00029 , component_name() 00030 , parameter_name() 00031 , full_graph_name() 00032 , state(0) 00033 , error_code(0) 00034 { 00035 } 00036 00037 ScriptState_(const ContainerAllocator& _alloc) 00038 : header(_alloc) 00039 , number(0) 00040 , function_name(_alloc) 00041 , component_name(_alloc) 00042 , parameter_name(_alloc) 00043 , full_graph_name(_alloc) 00044 , state(0) 00045 , error_code(0) 00046 { 00047 } 00048 00049 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00050 ::std_msgs::Header_<ContainerAllocator> header; 00051 00052 typedef int16_t _number_type; 00053 int16_t number; 00054 00055 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _function_name_type; 00056 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > function_name; 00057 00058 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _component_name_type; 00059 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > component_name; 00060 00061 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _parameter_name_type; 00062 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > parameter_name; 00063 00064 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _full_graph_name_type; 00065 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > full_graph_name; 00066 00067 typedef int8_t _state_type; 00068 int8_t state; 00069 00070 typedef int16_t _error_code_type; 00071 int16_t error_code; 00072 00073 enum { UNKNOWN = 0 }; 00074 enum { ACTIVE = 1 }; 00075 enum { SUCCEEDED = 2 }; 00076 enum { FAILED = 3 }; 00077 enum { PAUSED = 4 }; 00078 00079 private: 00080 static const char* __s_getDataType_() { return "cob_script_server/ScriptState"; } 00081 public: 00082 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00083 00084 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00085 00086 private: 00087 static const char* __s_getMD5Sum_() { return "4981a5a5be8dbf926085d25a1acf43ca"; } 00088 public: 00089 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00090 00091 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00092 00093 private: 00094 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00095 int16 number\n\ 00096 string function_name\n\ 00097 string component_name\n\ 00098 string parameter_name\n\ 00099 string full_graph_name\n\ 00100 \n\ 00101 # Possible execution states\n\ 00102 byte UNKNOWN=0\n\ 00103 byte ACTIVE=1\n\ 00104 byte SUCCEEDED=2\n\ 00105 byte FAILED=3\n\ 00106 byte PAUSED=4\n\ 00107 \n\ 00108 byte state # state of execution\n\ 00109 int16 error_code # current error_code for state\n\ 00110 \n\ 00111 ================================================================================\n\ 00112 MSG: std_msgs/Header\n\ 00113 # Standard metadata for higher-level stamped data types.\n\ 00114 # This is generally used to communicate timestamped data \n\ 00115 # in a particular coordinate frame.\n\ 00116 # \n\ 00117 # sequence ID: consecutively increasing ID \n\ 00118 uint32 seq\n\ 00119 #Two-integer timestamp that is expressed as:\n\ 00120 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00121 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00122 # time-handling sugar is provided by the client library\n\ 00123 time stamp\n\ 00124 #Frame this data is associated with\n\ 00125 # 0: no frame\n\ 00126 # 1: global frame\n\ 00127 string frame_id\n\ 00128 \n\ 00129 "; } 00130 public: 00131 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00132 00133 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00134 00135 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00136 { 00137 ros::serialization::OStream stream(write_ptr, 1000000000); 00138 ros::serialization::serialize(stream, header); 00139 ros::serialization::serialize(stream, number); 00140 ros::serialization::serialize(stream, function_name); 00141 ros::serialization::serialize(stream, component_name); 00142 ros::serialization::serialize(stream, parameter_name); 00143 ros::serialization::serialize(stream, full_graph_name); 00144 ros::serialization::serialize(stream, state); 00145 ros::serialization::serialize(stream, error_code); 00146 return stream.getData(); 00147 } 00148 00149 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00150 { 00151 ros::serialization::IStream stream(read_ptr, 1000000000); 00152 ros::serialization::deserialize(stream, header); 00153 ros::serialization::deserialize(stream, number); 00154 ros::serialization::deserialize(stream, function_name); 00155 ros::serialization::deserialize(stream, component_name); 00156 ros::serialization::deserialize(stream, parameter_name); 00157 ros::serialization::deserialize(stream, full_graph_name); 00158 ros::serialization::deserialize(stream, state); 00159 ros::serialization::deserialize(stream, error_code); 00160 return stream.getData(); 00161 } 00162 00163 ROS_DEPRECATED virtual uint32_t serializationLength() const 00164 { 00165 uint32_t size = 0; 00166 size += ros::serialization::serializationLength(header); 00167 size += ros::serialization::serializationLength(number); 00168 size += ros::serialization::serializationLength(function_name); 00169 size += ros::serialization::serializationLength(component_name); 00170 size += ros::serialization::serializationLength(parameter_name); 00171 size += ros::serialization::serializationLength(full_graph_name); 00172 size += ros::serialization::serializationLength(state); 00173 size += ros::serialization::serializationLength(error_code); 00174 return size; 00175 } 00176 00177 typedef boost::shared_ptr< ::cob_script_server::ScriptState_<ContainerAllocator> > Ptr; 00178 typedef boost::shared_ptr< ::cob_script_server::ScriptState_<ContainerAllocator> const> ConstPtr; 00179 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00180 }; // struct ScriptState 00181 typedef ::cob_script_server::ScriptState_<std::allocator<void> > ScriptState; 00182 00183 typedef boost::shared_ptr< ::cob_script_server::ScriptState> ScriptStatePtr; 00184 typedef boost::shared_ptr< ::cob_script_server::ScriptState const> ScriptStateConstPtr; 00185 00186 00187 template<typename ContainerAllocator> 00188 std::ostream& operator<<(std::ostream& s, const ::cob_script_server::ScriptState_<ContainerAllocator> & v) 00189 { 00190 ros::message_operations::Printer< ::cob_script_server::ScriptState_<ContainerAllocator> >::stream(s, "", v); 00191 return s;} 00192 00193 } // namespace cob_script_server 00194 00195 namespace ros 00196 { 00197 namespace message_traits 00198 { 00199 template<class ContainerAllocator> struct IsMessage< ::cob_script_server::ScriptState_<ContainerAllocator> > : public TrueType {}; 00200 template<class ContainerAllocator> struct IsMessage< ::cob_script_server::ScriptState_<ContainerAllocator> const> : public TrueType {}; 00201 template<class ContainerAllocator> 00202 struct MD5Sum< ::cob_script_server::ScriptState_<ContainerAllocator> > { 00203 static const char* value() 00204 { 00205 return "4981a5a5be8dbf926085d25a1acf43ca"; 00206 } 00207 00208 static const char* value(const ::cob_script_server::ScriptState_<ContainerAllocator> &) { return value(); } 00209 static const uint64_t static_value1 = 0x4981a5a5be8dbf92ULL; 00210 static const uint64_t static_value2 = 0x6085d25a1acf43caULL; 00211 }; 00212 00213 template<class ContainerAllocator> 00214 struct DataType< ::cob_script_server::ScriptState_<ContainerAllocator> > { 00215 static const char* value() 00216 { 00217 return "cob_script_server/ScriptState"; 00218 } 00219 00220 static const char* value(const ::cob_script_server::ScriptState_<ContainerAllocator> &) { return value(); } 00221 }; 00222 00223 template<class ContainerAllocator> 00224 struct Definition< ::cob_script_server::ScriptState_<ContainerAllocator> > { 00225 static const char* value() 00226 { 00227 return "Header header\n\ 00228 int16 number\n\ 00229 string function_name\n\ 00230 string component_name\n\ 00231 string parameter_name\n\ 00232 string full_graph_name\n\ 00233 \n\ 00234 # Possible execution states\n\ 00235 byte UNKNOWN=0\n\ 00236 byte ACTIVE=1\n\ 00237 byte SUCCEEDED=2\n\ 00238 byte FAILED=3\n\ 00239 byte PAUSED=4\n\ 00240 \n\ 00241 byte state # state of execution\n\ 00242 int16 error_code # current error_code for state\n\ 00243 \n\ 00244 ================================================================================\n\ 00245 MSG: std_msgs/Header\n\ 00246 # Standard metadata for higher-level stamped data types.\n\ 00247 # This is generally used to communicate timestamped data \n\ 00248 # in a particular coordinate frame.\n\ 00249 # \n\ 00250 # sequence ID: consecutively increasing ID \n\ 00251 uint32 seq\n\ 00252 #Two-integer timestamp that is expressed as:\n\ 00253 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00254 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00255 # time-handling sugar is provided by the client library\n\ 00256 time stamp\n\ 00257 #Frame this data is associated with\n\ 00258 # 0: no frame\n\ 00259 # 1: global frame\n\ 00260 string frame_id\n\ 00261 \n\ 00262 "; 00263 } 00264 00265 static const char* value(const ::cob_script_server::ScriptState_<ContainerAllocator> &) { return value(); } 00266 }; 00267 00268 template<class ContainerAllocator> struct HasHeader< ::cob_script_server::ScriptState_<ContainerAllocator> > : public TrueType {}; 00269 template<class ContainerAllocator> struct HasHeader< const ::cob_script_server::ScriptState_<ContainerAllocator> > : public TrueType {}; 00270 } // namespace message_traits 00271 } // namespace ros 00272 00273 namespace ros 00274 { 00275 namespace serialization 00276 { 00277 00278 template<class ContainerAllocator> struct Serializer< ::cob_script_server::ScriptState_<ContainerAllocator> > 00279 { 00280 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00281 { 00282 stream.next(m.header); 00283 stream.next(m.number); 00284 stream.next(m.function_name); 00285 stream.next(m.component_name); 00286 stream.next(m.parameter_name); 00287 stream.next(m.full_graph_name); 00288 stream.next(m.state); 00289 stream.next(m.error_code); 00290 } 00291 00292 ROS_DECLARE_ALLINONE_SERIALIZER; 00293 }; // struct ScriptState_ 00294 } // namespace serialization 00295 } // namespace ros 00296 00297 namespace ros 00298 { 00299 namespace message_operations 00300 { 00301 00302 template<class ContainerAllocator> 00303 struct Printer< ::cob_script_server::ScriptState_<ContainerAllocator> > 00304 { 00305 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cob_script_server::ScriptState_<ContainerAllocator> & v) 00306 { 00307 s << indent << "header: "; 00308 s << std::endl; 00309 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00310 s << indent << "number: "; 00311 Printer<int16_t>::stream(s, indent + " ", v.number); 00312 s << indent << "function_name: "; 00313 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.function_name); 00314 s << indent << "component_name: "; 00315 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.component_name); 00316 s << indent << "parameter_name: "; 00317 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.parameter_name); 00318 s << indent << "full_graph_name: "; 00319 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.full_graph_name); 00320 s << indent << "state: "; 00321 Printer<int8_t>::stream(s, indent + " ", v.state); 00322 s << indent << "error_code: "; 00323 Printer<int16_t>::stream(s, indent + " ", v.error_code); 00324 } 00325 }; 00326 00327 00328 } // namespace message_operations 00329 } // namespace ros 00330 00331 #endif // COB_SCRIPT_SERVER_MESSAGE_SCRIPTSTATE_H 00332