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 <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "cob_script_server/ScriptState.h"
00014
00015 namespace cob_script_server
00016 {
00017 template <class ContainerAllocator>
00018 struct StateGoal_ : public ros::Message
00019 {
00020 typedef StateGoal_<ContainerAllocator> Type;
00021
00022 StateGoal_()
00023 : state()
00024 {
00025 }
00026
00027 StateGoal_(const ContainerAllocator& _alloc)
00028 : state(_alloc)
00029 {
00030 }
00031
00032 typedef ::cob_script_server::ScriptState_<ContainerAllocator> _state_type;
00033 ::cob_script_server::ScriptState_<ContainerAllocator> state;
00034
00035
00036 private:
00037 static const char* __s_getDataType_() { return "cob_script_server/StateGoal"; }
00038 public:
00039 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00040
00041 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00042
00043 private:
00044 static const char* __s_getMD5Sum_() { return "5d2b1a5f7b8263c9eb024ed31a5dbee9"; }
00045 public:
00046 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00047
00048 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00049
00050 private:
00051 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00052 #goal definition\n\
00053 cob_script_server/ScriptState state\n\
00054 \n\
00055 ================================================================================\n\
00056 MSG: cob_script_server/ScriptState\n\
00057 Header header\n\
00058 int16 number\n\
00059 string function_name\n\
00060 string component_name\n\
00061 string parameter_name\n\
00062 string full_graph_name\n\
00063 \n\
00064 # Possible execution states\n\
00065 byte UNKNOWN=0\n\
00066 byte ACTIVE=1\n\
00067 byte SUCCEEDED=2\n\
00068 byte FAILED=3\n\
00069 byte PAUSED=4\n\
00070 \n\
00071 byte state # state of execution\n\
00072 int16 error_code # current error_code for state\n\
00073 \n\
00074 ================================================================================\n\
00075 MSG: std_msgs/Header\n\
00076 # Standard metadata for higher-level stamped data types.\n\
00077 # This is generally used to communicate timestamped data \n\
00078 # in a particular coordinate frame.\n\
00079 # \n\
00080 # sequence ID: consecutively increasing ID \n\
00081 uint32 seq\n\
00082 #Two-integer timestamp that is expressed as:\n\
00083 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00084 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00085 # time-handling sugar is provided by the client library\n\
00086 time stamp\n\
00087 #Frame this data is associated with\n\
00088 # 0: no frame\n\
00089 # 1: global frame\n\
00090 string frame_id\n\
00091 \n\
00092 "; }
00093 public:
00094 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00095
00096 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00097
00098 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00099 {
00100 ros::serialization::OStream stream(write_ptr, 1000000000);
00101 ros::serialization::serialize(stream, state);
00102 return stream.getData();
00103 }
00104
00105 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00106 {
00107 ros::serialization::IStream stream(read_ptr, 1000000000);
00108 ros::serialization::deserialize(stream, state);
00109 return stream.getData();
00110 }
00111
00112 ROS_DEPRECATED virtual uint32_t serializationLength() const
00113 {
00114 uint32_t size = 0;
00115 size += ros::serialization::serializationLength(state);
00116 return size;
00117 }
00118
00119 typedef boost::shared_ptr< ::cob_script_server::StateGoal_<ContainerAllocator> > Ptr;
00120 typedef boost::shared_ptr< ::cob_script_server::StateGoal_<ContainerAllocator> const> ConstPtr;
00121 };
00122 typedef ::cob_script_server::StateGoal_<std::allocator<void> > StateGoal;
00123
00124 typedef boost::shared_ptr< ::cob_script_server::StateGoal> StateGoalPtr;
00125 typedef boost::shared_ptr< ::cob_script_server::StateGoal const> StateGoalConstPtr;
00126
00127
00128 template<typename ContainerAllocator>
00129 std::ostream& operator<<(std::ostream& s, const ::cob_script_server::StateGoal_<ContainerAllocator> & v)
00130 {
00131 ros::message_operations::Printer< ::cob_script_server::StateGoal_<ContainerAllocator> >::stream(s, "", v);
00132 return s;}
00133
00134 }
00135
00136 namespace ros
00137 {
00138 namespace message_traits
00139 {
00140 template<class ContainerAllocator>
00141 struct MD5Sum< ::cob_script_server::StateGoal_<ContainerAllocator> > {
00142 static const char* value()
00143 {
00144 return "5d2b1a5f7b8263c9eb024ed31a5dbee9";
00145 }
00146
00147 static const char* value(const ::cob_script_server::StateGoal_<ContainerAllocator> &) { return value(); }
00148 static const uint64_t static_value1 = 0x5d2b1a5f7b8263c9ULL;
00149 static const uint64_t static_value2 = 0xeb024ed31a5dbee9ULL;
00150 };
00151
00152 template<class ContainerAllocator>
00153 struct DataType< ::cob_script_server::StateGoal_<ContainerAllocator> > {
00154 static const char* value()
00155 {
00156 return "cob_script_server/StateGoal";
00157 }
00158
00159 static const char* value(const ::cob_script_server::StateGoal_<ContainerAllocator> &) { return value(); }
00160 };
00161
00162 template<class ContainerAllocator>
00163 struct Definition< ::cob_script_server::StateGoal_<ContainerAllocator> > {
00164 static const char* value()
00165 {
00166 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00167 #goal definition\n\
00168 cob_script_server/ScriptState state\n\
00169 \n\
00170 ================================================================================\n\
00171 MSG: cob_script_server/ScriptState\n\
00172 Header header\n\
00173 int16 number\n\
00174 string function_name\n\
00175 string component_name\n\
00176 string parameter_name\n\
00177 string full_graph_name\n\
00178 \n\
00179 # Possible execution states\n\
00180 byte UNKNOWN=0\n\
00181 byte ACTIVE=1\n\
00182 byte SUCCEEDED=2\n\
00183 byte FAILED=3\n\
00184 byte PAUSED=4\n\
00185 \n\
00186 byte state # state of execution\n\
00187 int16 error_code # current error_code for state\n\
00188 \n\
00189 ================================================================================\n\
00190 MSG: std_msgs/Header\n\
00191 # Standard metadata for higher-level stamped data types.\n\
00192 # This is generally used to communicate timestamped data \n\
00193 # in a particular coordinate frame.\n\
00194 # \n\
00195 # sequence ID: consecutively increasing ID \n\
00196 uint32 seq\n\
00197 #Two-integer timestamp that is expressed as:\n\
00198 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00199 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00200 # time-handling sugar is provided by the client library\n\
00201 time stamp\n\
00202 #Frame this data is associated with\n\
00203 # 0: no frame\n\
00204 # 1: global frame\n\
00205 string frame_id\n\
00206 \n\
00207 ";
00208 }
00209
00210 static const char* value(const ::cob_script_server::StateGoal_<ContainerAllocator> &) { return value(); }
00211 };
00212
00213 }
00214 }
00215
00216 namespace ros
00217 {
00218 namespace serialization
00219 {
00220
00221 template<class ContainerAllocator> struct Serializer< ::cob_script_server::StateGoal_<ContainerAllocator> >
00222 {
00223 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00224 {
00225 stream.next(m.state);
00226 }
00227
00228 ROS_DECLARE_ALLINONE_SERIALIZER;
00229 };
00230 }
00231 }
00232
00233 namespace ros
00234 {
00235 namespace message_operations
00236 {
00237
00238 template<class ContainerAllocator>
00239 struct Printer< ::cob_script_server::StateGoal_<ContainerAllocator> >
00240 {
00241 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cob_script_server::StateGoal_<ContainerAllocator> & v)
00242 {
00243 s << indent << "state: ";
00244 s << std::endl;
00245 Printer< ::cob_script_server::ScriptState_<ContainerAllocator> >::stream(s, indent + " ", v.state);
00246 }
00247 };
00248
00249
00250 }
00251 }
00252
00253 #endif // COB_SCRIPT_SERVER_MESSAGE_STATEGOAL_H
00254