$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/StateAction.msg */ 00002 #ifndef COB_SCRIPT_SERVER_MESSAGE_STATEACTION_H 00003 #define COB_SCRIPT_SERVER_MESSAGE_STATEACTION_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 "cob_script_server/StateActionGoal.h" 00018 #include "cob_script_server/StateActionResult.h" 00019 #include "cob_script_server/StateActionFeedback.h" 00020 00021 namespace cob_script_server 00022 { 00023 template <class ContainerAllocator> 00024 struct StateAction_ { 00025 typedef StateAction_<ContainerAllocator> Type; 00026 00027 StateAction_() 00028 : action_goal() 00029 , action_result() 00030 , action_feedback() 00031 { 00032 } 00033 00034 StateAction_(const ContainerAllocator& _alloc) 00035 : action_goal(_alloc) 00036 , action_result(_alloc) 00037 , action_feedback(_alloc) 00038 { 00039 } 00040 00041 typedef ::cob_script_server::StateActionGoal_<ContainerAllocator> _action_goal_type; 00042 ::cob_script_server::StateActionGoal_<ContainerAllocator> action_goal; 00043 00044 typedef ::cob_script_server::StateActionResult_<ContainerAllocator> _action_result_type; 00045 ::cob_script_server::StateActionResult_<ContainerAllocator> action_result; 00046 00047 typedef ::cob_script_server::StateActionFeedback_<ContainerAllocator> _action_feedback_type; 00048 ::cob_script_server::StateActionFeedback_<ContainerAllocator> action_feedback; 00049 00050 00051 private: 00052 static const char* __s_getDataType_() { return "cob_script_server/StateAction"; } 00053 public: 00054 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00055 00056 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00057 00058 private: 00059 static const char* __s_getMD5Sum_() { return "8053233aa3e0dd581f127cd6e23e3f9a"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00062 00063 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00064 00065 private: 00066 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00067 \n\ 00068 StateActionGoal action_goal\n\ 00069 StateActionResult action_result\n\ 00070 StateActionFeedback action_feedback\n\ 00071 \n\ 00072 ================================================================================\n\ 00073 MSG: cob_script_server/StateActionGoal\n\ 00074 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00075 \n\ 00076 Header header\n\ 00077 actionlib_msgs/GoalID goal_id\n\ 00078 StateGoal goal\n\ 00079 \n\ 00080 ================================================================================\n\ 00081 MSG: std_msgs/Header\n\ 00082 # Standard metadata for higher-level stamped data types.\n\ 00083 # This is generally used to communicate timestamped data \n\ 00084 # in a particular coordinate frame.\n\ 00085 # \n\ 00086 # sequence ID: consecutively increasing ID \n\ 00087 uint32 seq\n\ 00088 #Two-integer timestamp that is expressed as:\n\ 00089 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00090 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00091 # time-handling sugar is provided by the client library\n\ 00092 time stamp\n\ 00093 #Frame this data is associated with\n\ 00094 # 0: no frame\n\ 00095 # 1: global frame\n\ 00096 string frame_id\n\ 00097 \n\ 00098 ================================================================================\n\ 00099 MSG: actionlib_msgs/GoalID\n\ 00100 # The stamp should store the time at which this goal was requested.\n\ 00101 # It is used by an action server when it tries to preempt all\n\ 00102 # goals that were requested before a certain time\n\ 00103 time stamp\n\ 00104 \n\ 00105 # The id provides a way to associate feedback and\n\ 00106 # result message with specific goal requests. The id\n\ 00107 # specified must be unique.\n\ 00108 string id\n\ 00109 \n\ 00110 \n\ 00111 ================================================================================\n\ 00112 MSG: cob_script_server/StateGoal\n\ 00113 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00114 #goal definition\n\ 00115 cob_script_server/ScriptState state\n\ 00116 \n\ 00117 ================================================================================\n\ 00118 MSG: cob_script_server/ScriptState\n\ 00119 Header header\n\ 00120 int16 number\n\ 00121 string function_name\n\ 00122 string component_name\n\ 00123 string parameter_name\n\ 00124 string full_graph_name\n\ 00125 \n\ 00126 # Possible execution states\n\ 00127 byte UNKNOWN=0\n\ 00128 byte ACTIVE=1\n\ 00129 byte SUCCEEDED=2\n\ 00130 byte FAILED=3\n\ 00131 byte PAUSED=4\n\ 00132 \n\ 00133 byte state # state of execution\n\ 00134 int16 error_code # current error_code for state\n\ 00135 \n\ 00136 ================================================================================\n\ 00137 MSG: cob_script_server/StateActionResult\n\ 00138 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00139 \n\ 00140 Header header\n\ 00141 actionlib_msgs/GoalStatus status\n\ 00142 StateResult result\n\ 00143 \n\ 00144 ================================================================================\n\ 00145 MSG: actionlib_msgs/GoalStatus\n\ 00146 GoalID goal_id\n\ 00147 uint8 status\n\ 00148 uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\ 00149 uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\ 00150 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\ 00151 # and has since completed its execution (Terminal State)\n\ 00152 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\ 00153 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\ 00154 # to some failure (Terminal State)\n\ 00155 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\ 00156 # because the goal was unattainable or invalid (Terminal State)\n\ 00157 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\ 00158 # and has not yet completed execution\n\ 00159 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\ 00160 # but the action server has not yet confirmed that the goal is canceled\n\ 00161 uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\ 00162 # and was successfully cancelled (Terminal State)\n\ 00163 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\ 00164 # sent over the wire by an action server\n\ 00165 \n\ 00166 #Allow for the user to associate a string with GoalStatus for debugging\n\ 00167 string text\n\ 00168 \n\ 00169 \n\ 00170 ================================================================================\n\ 00171 MSG: cob_script_server/StateResult\n\ 00172 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00173 #result definition\n\ 00174 int16 return_value\n\ 00175 \n\ 00176 ================================================================================\n\ 00177 MSG: cob_script_server/StateActionFeedback\n\ 00178 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00179 \n\ 00180 Header header\n\ 00181 actionlib_msgs/GoalStatus status\n\ 00182 StateFeedback feedback\n\ 00183 \n\ 00184 ================================================================================\n\ 00185 MSG: cob_script_server/StateFeedback\n\ 00186 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00187 #feedback definition\n\ 00188 \n\ 00189 \n\ 00190 "; } 00191 public: 00192 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00193 00194 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00195 00196 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00197 { 00198 ros::serialization::OStream stream(write_ptr, 1000000000); 00199 ros::serialization::serialize(stream, action_goal); 00200 ros::serialization::serialize(stream, action_result); 00201 ros::serialization::serialize(stream, action_feedback); 00202 return stream.getData(); 00203 } 00204 00205 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00206 { 00207 ros::serialization::IStream stream(read_ptr, 1000000000); 00208 ros::serialization::deserialize(stream, action_goal); 00209 ros::serialization::deserialize(stream, action_result); 00210 ros::serialization::deserialize(stream, action_feedback); 00211 return stream.getData(); 00212 } 00213 00214 ROS_DEPRECATED virtual uint32_t serializationLength() const 00215 { 00216 uint32_t size = 0; 00217 size += ros::serialization::serializationLength(action_goal); 00218 size += ros::serialization::serializationLength(action_result); 00219 size += ros::serialization::serializationLength(action_feedback); 00220 return size; 00221 } 00222 00223 typedef boost::shared_ptr< ::cob_script_server::StateAction_<ContainerAllocator> > Ptr; 00224 typedef boost::shared_ptr< ::cob_script_server::StateAction_<ContainerAllocator> const> ConstPtr; 00225 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00226 }; // struct StateAction 00227 typedef ::cob_script_server::StateAction_<std::allocator<void> > StateAction; 00228 00229 typedef boost::shared_ptr< ::cob_script_server::StateAction> StateActionPtr; 00230 typedef boost::shared_ptr< ::cob_script_server::StateAction const> StateActionConstPtr; 00231 00232 00233 template<typename ContainerAllocator> 00234 std::ostream& operator<<(std::ostream& s, const ::cob_script_server::StateAction_<ContainerAllocator> & v) 00235 { 00236 ros::message_operations::Printer< ::cob_script_server::StateAction_<ContainerAllocator> >::stream(s, "", v); 00237 return s;} 00238 00239 } // namespace cob_script_server 00240 00241 namespace ros 00242 { 00243 namespace message_traits 00244 { 00245 template<class ContainerAllocator> struct IsMessage< ::cob_script_server::StateAction_<ContainerAllocator> > : public TrueType {}; 00246 template<class ContainerAllocator> struct IsMessage< ::cob_script_server::StateAction_<ContainerAllocator> const> : public TrueType {}; 00247 template<class ContainerAllocator> 00248 struct MD5Sum< ::cob_script_server::StateAction_<ContainerAllocator> > { 00249 static const char* value() 00250 { 00251 return "8053233aa3e0dd581f127cd6e23e3f9a"; 00252 } 00253 00254 static const char* value(const ::cob_script_server::StateAction_<ContainerAllocator> &) { return value(); } 00255 static const uint64_t static_value1 = 0x8053233aa3e0dd58ULL; 00256 static const uint64_t static_value2 = 0x1f127cd6e23e3f9aULL; 00257 }; 00258 00259 template<class ContainerAllocator> 00260 struct DataType< ::cob_script_server::StateAction_<ContainerAllocator> > { 00261 static const char* value() 00262 { 00263 return "cob_script_server/StateAction"; 00264 } 00265 00266 static const char* value(const ::cob_script_server::StateAction_<ContainerAllocator> &) { return value(); } 00267 }; 00268 00269 template<class ContainerAllocator> 00270 struct Definition< ::cob_script_server::StateAction_<ContainerAllocator> > { 00271 static const char* value() 00272 { 00273 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00274 \n\ 00275 StateActionGoal action_goal\n\ 00276 StateActionResult action_result\n\ 00277 StateActionFeedback action_feedback\n\ 00278 \n\ 00279 ================================================================================\n\ 00280 MSG: cob_script_server/StateActionGoal\n\ 00281 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00282 \n\ 00283 Header header\n\ 00284 actionlib_msgs/GoalID goal_id\n\ 00285 StateGoal goal\n\ 00286 \n\ 00287 ================================================================================\n\ 00288 MSG: std_msgs/Header\n\ 00289 # Standard metadata for higher-level stamped data types.\n\ 00290 # This is generally used to communicate timestamped data \n\ 00291 # in a particular coordinate frame.\n\ 00292 # \n\ 00293 # sequence ID: consecutively increasing ID \n\ 00294 uint32 seq\n\ 00295 #Two-integer timestamp that is expressed as:\n\ 00296 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00297 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00298 # time-handling sugar is provided by the client library\n\ 00299 time stamp\n\ 00300 #Frame this data is associated with\n\ 00301 # 0: no frame\n\ 00302 # 1: global frame\n\ 00303 string frame_id\n\ 00304 \n\ 00305 ================================================================================\n\ 00306 MSG: actionlib_msgs/GoalID\n\ 00307 # The stamp should store the time at which this goal was requested.\n\ 00308 # It is used by an action server when it tries to preempt all\n\ 00309 # goals that were requested before a certain time\n\ 00310 time stamp\n\ 00311 \n\ 00312 # The id provides a way to associate feedback and\n\ 00313 # result message with specific goal requests. The id\n\ 00314 # specified must be unique.\n\ 00315 string id\n\ 00316 \n\ 00317 \n\ 00318 ================================================================================\n\ 00319 MSG: cob_script_server/StateGoal\n\ 00320 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00321 #goal definition\n\ 00322 cob_script_server/ScriptState state\n\ 00323 \n\ 00324 ================================================================================\n\ 00325 MSG: cob_script_server/ScriptState\n\ 00326 Header header\n\ 00327 int16 number\n\ 00328 string function_name\n\ 00329 string component_name\n\ 00330 string parameter_name\n\ 00331 string full_graph_name\n\ 00332 \n\ 00333 # Possible execution states\n\ 00334 byte UNKNOWN=0\n\ 00335 byte ACTIVE=1\n\ 00336 byte SUCCEEDED=2\n\ 00337 byte FAILED=3\n\ 00338 byte PAUSED=4\n\ 00339 \n\ 00340 byte state # state of execution\n\ 00341 int16 error_code # current error_code for state\n\ 00342 \n\ 00343 ================================================================================\n\ 00344 MSG: cob_script_server/StateActionResult\n\ 00345 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00346 \n\ 00347 Header header\n\ 00348 actionlib_msgs/GoalStatus status\n\ 00349 StateResult result\n\ 00350 \n\ 00351 ================================================================================\n\ 00352 MSG: actionlib_msgs/GoalStatus\n\ 00353 GoalID goal_id\n\ 00354 uint8 status\n\ 00355 uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\ 00356 uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\ 00357 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\ 00358 # and has since completed its execution (Terminal State)\n\ 00359 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\ 00360 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\ 00361 # to some failure (Terminal State)\n\ 00362 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\ 00363 # because the goal was unattainable or invalid (Terminal State)\n\ 00364 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\ 00365 # and has not yet completed execution\n\ 00366 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\ 00367 # but the action server has not yet confirmed that the goal is canceled\n\ 00368 uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\ 00369 # and was successfully cancelled (Terminal State)\n\ 00370 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\ 00371 # sent over the wire by an action server\n\ 00372 \n\ 00373 #Allow for the user to associate a string with GoalStatus for debugging\n\ 00374 string text\n\ 00375 \n\ 00376 \n\ 00377 ================================================================================\n\ 00378 MSG: cob_script_server/StateResult\n\ 00379 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00380 #result definition\n\ 00381 int16 return_value\n\ 00382 \n\ 00383 ================================================================================\n\ 00384 MSG: cob_script_server/StateActionFeedback\n\ 00385 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00386 \n\ 00387 Header header\n\ 00388 actionlib_msgs/GoalStatus status\n\ 00389 StateFeedback feedback\n\ 00390 \n\ 00391 ================================================================================\n\ 00392 MSG: cob_script_server/StateFeedback\n\ 00393 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00394 #feedback definition\n\ 00395 \n\ 00396 \n\ 00397 "; 00398 } 00399 00400 static const char* value(const ::cob_script_server::StateAction_<ContainerAllocator> &) { return value(); } 00401 }; 00402 00403 } // namespace message_traits 00404 } // namespace ros 00405 00406 namespace ros 00407 { 00408 namespace serialization 00409 { 00410 00411 template<class ContainerAllocator> struct Serializer< ::cob_script_server::StateAction_<ContainerAllocator> > 00412 { 00413 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00414 { 00415 stream.next(m.action_goal); 00416 stream.next(m.action_result); 00417 stream.next(m.action_feedback); 00418 } 00419 00420 ROS_DECLARE_ALLINONE_SERIALIZER; 00421 }; // struct StateAction_ 00422 } // namespace serialization 00423 } // namespace ros 00424 00425 namespace ros 00426 { 00427 namespace message_operations 00428 { 00429 00430 template<class ContainerAllocator> 00431 struct Printer< ::cob_script_server::StateAction_<ContainerAllocator> > 00432 { 00433 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cob_script_server::StateAction_<ContainerAllocator> & v) 00434 { 00435 s << indent << "action_goal: "; 00436 s << std::endl; 00437 Printer< ::cob_script_server::StateActionGoal_<ContainerAllocator> >::stream(s, indent + " ", v.action_goal); 00438 s << indent << "action_result: "; 00439 s << std::endl; 00440 Printer< ::cob_script_server::StateActionResult_<ContainerAllocator> >::stream(s, indent + " ", v.action_result); 00441 s << indent << "action_feedback: "; 00442 s << std::endl; 00443 Printer< ::cob_script_server::StateActionFeedback_<ContainerAllocator> >::stream(s, indent + " ", v.action_feedback); 00444 } 00445 }; 00446 00447 00448 } // namespace message_operations 00449 } // namespace ros 00450 00451 #endif // COB_SCRIPT_SERVER_MESSAGE_STATEACTION_H 00452