Go to the documentation of this file.00001
00002 #ifndef COB_SCRIPT_SERVER_MESSAGE_STATEGOAL_H
00003 #define COB_SCRIPT_SERVER_MESSAGE_STATEGOAL_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/ScriptState.h"
00018
00019 namespace cob_script_server
00020 {
00021 template <class ContainerAllocator>
00022 struct StateGoal_ {
00023 typedef StateGoal_<ContainerAllocator> Type;
00024
00025 StateGoal_()
00026 : state()
00027 {
00028 }
00029
00030 StateGoal_(const ContainerAllocator& _alloc)
00031 : state(_alloc)
00032 {
00033 }
00034
00035 typedef ::cob_script_server::ScriptState_<ContainerAllocator> _state_type;
00036 ::cob_script_server::ScriptState_<ContainerAllocator> state;
00037
00038
00039 typedef boost::shared_ptr< ::cob_script_server::StateGoal_<ContainerAllocator> > Ptr;
00040 typedef boost::shared_ptr< ::cob_script_server::StateGoal_<ContainerAllocator> const> ConstPtr;
00041 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00042 };
00043 typedef ::cob_script_server::StateGoal_<std::allocator<void> > StateGoal;
00044
00045 typedef boost::shared_ptr< ::cob_script_server::StateGoal> StateGoalPtr;
00046 typedef boost::shared_ptr< ::cob_script_server::StateGoal const> StateGoalConstPtr;
00047
00048
00049 template<typename ContainerAllocator>
00050 std::ostream& operator<<(std::ostream& s, const ::cob_script_server::StateGoal_<ContainerAllocator> & v)
00051 {
00052 ros::message_operations::Printer< ::cob_script_server::StateGoal_<ContainerAllocator> >::stream(s, "", v);
00053 return s;}
00054
00055 }
00056
00057 namespace ros
00058 {
00059 namespace message_traits
00060 {
00061 template<class ContainerAllocator> struct IsMessage< ::cob_script_server::StateGoal_<ContainerAllocator> > : public TrueType {};
00062 template<class ContainerAllocator> struct IsMessage< ::cob_script_server::StateGoal_<ContainerAllocator> const> : public TrueType {};
00063 template<class ContainerAllocator>
00064 struct MD5Sum< ::cob_script_server::StateGoal_<ContainerAllocator> > {
00065 static const char* value()
00066 {
00067 return "5d2b1a5f7b8263c9eb024ed31a5dbee9";
00068 }
00069
00070 static const char* value(const ::cob_script_server::StateGoal_<ContainerAllocator> &) { return value(); }
00071 static const uint64_t static_value1 = 0x5d2b1a5f7b8263c9ULL;
00072 static const uint64_t static_value2 = 0xeb024ed31a5dbee9ULL;
00073 };
00074
00075 template<class ContainerAllocator>
00076 struct DataType< ::cob_script_server::StateGoal_<ContainerAllocator> > {
00077 static const char* value()
00078 {
00079 return "cob_script_server/StateGoal";
00080 }
00081
00082 static const char* value(const ::cob_script_server::StateGoal_<ContainerAllocator> &) { return value(); }
00083 };
00084
00085 template<class ContainerAllocator>
00086 struct Definition< ::cob_script_server::StateGoal_<ContainerAllocator> > {
00087 static const char* value()
00088 {
00089 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00090 #goal definition\n\
00091 cob_script_server/ScriptState state\n\
00092 \n\
00093 ================================================================================\n\
00094 MSG: cob_script_server/ScriptState\n\
00095 Header header\n\
00096 int16 number\n\
00097 string function_name\n\
00098 string component_name\n\
00099 string parameter_name\n\
00100 string full_graph_name\n\
00101 \n\
00102 # Possible execution states\n\
00103 byte UNKNOWN=0\n\
00104 byte ACTIVE=1\n\
00105 byte SUCCEEDED=2\n\
00106 byte FAILED=3\n\
00107 byte PAUSED=4\n\
00108 \n\
00109 byte state # state of execution\n\
00110 int16 error_code # current error_code for state\n\
00111 \n\
00112 ================================================================================\n\
00113 MSG: std_msgs/Header\n\
00114 # Standard metadata for higher-level stamped data types.\n\
00115 # This is generally used to communicate timestamped data \n\
00116 # in a particular coordinate frame.\n\
00117 # \n\
00118 # sequence ID: consecutively increasing ID \n\
00119 uint32 seq\n\
00120 #Two-integer timestamp that is expressed as:\n\
00121 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00122 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00123 # time-handling sugar is provided by the client library\n\
00124 time stamp\n\
00125 #Frame this data is associated with\n\
00126 # 0: no frame\n\
00127 # 1: global frame\n\
00128 string frame_id\n\
00129 \n\
00130 ";
00131 }
00132
00133 static const char* value(const ::cob_script_server::StateGoal_<ContainerAllocator> &) { return value(); }
00134 };
00135
00136 }
00137 }
00138
00139 namespace ros
00140 {
00141 namespace serialization
00142 {
00143
00144 template<class ContainerAllocator> struct Serializer< ::cob_script_server::StateGoal_<ContainerAllocator> >
00145 {
00146 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00147 {
00148 stream.next(m.state);
00149 }
00150
00151 ROS_DECLARE_ALLINONE_SERIALIZER;
00152 };
00153 }
00154 }
00155
00156 namespace ros
00157 {
00158 namespace message_operations
00159 {
00160
00161 template<class ContainerAllocator>
00162 struct Printer< ::cob_script_server::StateGoal_<ContainerAllocator> >
00163 {
00164 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cob_script_server::StateGoal_<ContainerAllocator> & v)
00165 {
00166 s << indent << "state: ";
00167 s << std::endl;
00168 Printer< ::cob_script_server::ScriptState_<ContainerAllocator> >::stream(s, indent + " ", v.state);
00169 }
00170 };
00171
00172
00173 }
00174 }
00175
00176 #endif // COB_SCRIPT_SERVER_MESSAGE_STATEGOAL_H
00177