00001
00002 #ifndef ACTIONLIB_MESSAGE_TESTREQUESTGOAL_H
00003 #define ACTIONLIB_MESSAGE_TESTREQUESTGOAL_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
00014 namespace actionlib
00015 {
00016 template <class ContainerAllocator>
00017 struct TestRequestGoal_ : public ros::Message
00018 {
00019 typedef TestRequestGoal_<ContainerAllocator> Type;
00020
00021 TestRequestGoal_()
00022 : terminate_status(0)
00023 , ignore_cancel(false)
00024 , result_text()
00025 , the_result(0)
00026 , is_simple_client(false)
00027 , delay_accept()
00028 , delay_terminate()
00029 , pause_status()
00030 {
00031 }
00032
00033 TestRequestGoal_(const ContainerAllocator& _alloc)
00034 : terminate_status(0)
00035 , ignore_cancel(false)
00036 , result_text(_alloc)
00037 , the_result(0)
00038 , is_simple_client(false)
00039 , delay_accept()
00040 , delay_terminate()
00041 , pause_status()
00042 {
00043 }
00044
00045 typedef int32_t _terminate_status_type;
00046 int32_t terminate_status;
00047
00048 typedef uint8_t _ignore_cancel_type;
00049 uint8_t ignore_cancel;
00050
00051 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _result_text_type;
00052 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > result_text;
00053
00054 typedef int32_t _the_result_type;
00055 int32_t the_result;
00056
00057 typedef uint8_t _is_simple_client_type;
00058 uint8_t is_simple_client;
00059
00060 typedef ros::Duration _delay_accept_type;
00061 ros::Duration delay_accept;
00062
00063 typedef ros::Duration _delay_terminate_type;
00064 ros::Duration delay_terminate;
00065
00066 typedef ros::Duration _pause_status_type;
00067 ros::Duration pause_status;
00068
00069 enum { TERMINATE_SUCCESS = 0 };
00070 enum { TERMINATE_ABORTED = 1 };
00071 enum { TERMINATE_REJECTED = 2 };
00072 enum { TERMINATE_LOSE = 3 };
00073 enum { TERMINATE_DROP = 4 };
00074 enum { TERMINATE_EXCEPTION = 5 };
00075
00076 private:
00077 static const char* __s_getDataType_() { return "actionlib/TestRequestGoal"; }
00078 public:
00079 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00080
00081 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00082
00083 private:
00084 static const char* __s_getMD5Sum_() { return "db5d00ba98302d6c6dd3737e9a03ceea"; }
00085 public:
00086 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00087
00088 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00089
00090 private:
00091 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00092 int32 TERMINATE_SUCCESS = 0\n\
00093 int32 TERMINATE_ABORTED = 1\n\
00094 int32 TERMINATE_REJECTED = 2\n\
00095 int32 TERMINATE_LOSE = 3\n\
00096 int32 TERMINATE_DROP = 4\n\
00097 int32 TERMINATE_EXCEPTION = 5\n\
00098 int32 terminate_status\n\
00099 bool ignore_cancel # If true, ignores requests to cancel\n\
00100 string result_text\n\
00101 int32 the_result # Desired value for the_result in the Result\n\
00102 bool is_simple_client\n\
00103 duration delay_accept # Delays accepting the goal by this amount of time\n\
00104 duration delay_terminate # Delays terminating for this amount of time\n\
00105 duration pause_status # Pauses the status messages for this amount of time\n\
00106 \n\
00107 "; }
00108 public:
00109 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00110
00111 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00112
00113 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00114 {
00115 ros::serialization::OStream stream(write_ptr, 1000000000);
00116 ros::serialization::serialize(stream, terminate_status);
00117 ros::serialization::serialize(stream, ignore_cancel);
00118 ros::serialization::serialize(stream, result_text);
00119 ros::serialization::serialize(stream, the_result);
00120 ros::serialization::serialize(stream, is_simple_client);
00121 ros::serialization::serialize(stream, delay_accept);
00122 ros::serialization::serialize(stream, delay_terminate);
00123 ros::serialization::serialize(stream, pause_status);
00124 return stream.getData();
00125 }
00126
00127 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00128 {
00129 ros::serialization::IStream stream(read_ptr, 1000000000);
00130 ros::serialization::deserialize(stream, terminate_status);
00131 ros::serialization::deserialize(stream, ignore_cancel);
00132 ros::serialization::deserialize(stream, result_text);
00133 ros::serialization::deserialize(stream, the_result);
00134 ros::serialization::deserialize(stream, is_simple_client);
00135 ros::serialization::deserialize(stream, delay_accept);
00136 ros::serialization::deserialize(stream, delay_terminate);
00137 ros::serialization::deserialize(stream, pause_status);
00138 return stream.getData();
00139 }
00140
00141 ROS_DEPRECATED virtual uint32_t serializationLength() const
00142 {
00143 uint32_t size = 0;
00144 size += ros::serialization::serializationLength(terminate_status);
00145 size += ros::serialization::serializationLength(ignore_cancel);
00146 size += ros::serialization::serializationLength(result_text);
00147 size += ros::serialization::serializationLength(the_result);
00148 size += ros::serialization::serializationLength(is_simple_client);
00149 size += ros::serialization::serializationLength(delay_accept);
00150 size += ros::serialization::serializationLength(delay_terminate);
00151 size += ros::serialization::serializationLength(pause_status);
00152 return size;
00153 }
00154
00155 typedef boost::shared_ptr< ::actionlib::TestRequestGoal_<ContainerAllocator> > Ptr;
00156 typedef boost::shared_ptr< ::actionlib::TestRequestGoal_<ContainerAllocator> const> ConstPtr;
00157 };
00158 typedef ::actionlib::TestRequestGoal_<std::allocator<void> > TestRequestGoal;
00159
00160 typedef boost::shared_ptr< ::actionlib::TestRequestGoal> TestRequestGoalPtr;
00161 typedef boost::shared_ptr< ::actionlib::TestRequestGoal const> TestRequestGoalConstPtr;
00162
00163
00164 template<typename ContainerAllocator>
00165 std::ostream& operator<<(std::ostream& s, const ::actionlib::TestRequestGoal_<ContainerAllocator> & v)
00166 {
00167 ros::message_operations::Printer< ::actionlib::TestRequestGoal_<ContainerAllocator> >::stream(s, "", v);
00168 return s;}
00169
00170 }
00171
00172 namespace ros
00173 {
00174 namespace message_traits
00175 {
00176 template<class ContainerAllocator>
00177 struct MD5Sum< ::actionlib::TestRequestGoal_<ContainerAllocator> > {
00178 static const char* value()
00179 {
00180 return "db5d00ba98302d6c6dd3737e9a03ceea";
00181 }
00182
00183 static const char* value(const ::actionlib::TestRequestGoal_<ContainerAllocator> &) { return value(); }
00184 static const uint64_t static_value1 = 0xdb5d00ba98302d6cULL;
00185 static const uint64_t static_value2 = 0x6dd3737e9a03ceeaULL;
00186 };
00187
00188 template<class ContainerAllocator>
00189 struct DataType< ::actionlib::TestRequestGoal_<ContainerAllocator> > {
00190 static const char* value()
00191 {
00192 return "actionlib/TestRequestGoal";
00193 }
00194
00195 static const char* value(const ::actionlib::TestRequestGoal_<ContainerAllocator> &) { return value(); }
00196 };
00197
00198 template<class ContainerAllocator>
00199 struct Definition< ::actionlib::TestRequestGoal_<ContainerAllocator> > {
00200 static const char* value()
00201 {
00202 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00203 int32 TERMINATE_SUCCESS = 0\n\
00204 int32 TERMINATE_ABORTED = 1\n\
00205 int32 TERMINATE_REJECTED = 2\n\
00206 int32 TERMINATE_LOSE = 3\n\
00207 int32 TERMINATE_DROP = 4\n\
00208 int32 TERMINATE_EXCEPTION = 5\n\
00209 int32 terminate_status\n\
00210 bool ignore_cancel # If true, ignores requests to cancel\n\
00211 string result_text\n\
00212 int32 the_result # Desired value for the_result in the Result\n\
00213 bool is_simple_client\n\
00214 duration delay_accept # Delays accepting the goal by this amount of time\n\
00215 duration delay_terminate # Delays terminating for this amount of time\n\
00216 duration pause_status # Pauses the status messages for this amount of time\n\
00217 \n\
00218 ";
00219 }
00220
00221 static const char* value(const ::actionlib::TestRequestGoal_<ContainerAllocator> &) { return value(); }
00222 };
00223
00224 }
00225 }
00226
00227 namespace ros
00228 {
00229 namespace serialization
00230 {
00231
00232 template<class ContainerAllocator> struct Serializer< ::actionlib::TestRequestGoal_<ContainerAllocator> >
00233 {
00234 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00235 {
00236 stream.next(m.terminate_status);
00237 stream.next(m.ignore_cancel);
00238 stream.next(m.result_text);
00239 stream.next(m.the_result);
00240 stream.next(m.is_simple_client);
00241 stream.next(m.delay_accept);
00242 stream.next(m.delay_terminate);
00243 stream.next(m.pause_status);
00244 }
00245
00246 ROS_DECLARE_ALLINONE_SERIALIZER;
00247 };
00248 }
00249 }
00250
00251 namespace ros
00252 {
00253 namespace message_operations
00254 {
00255
00256 template<class ContainerAllocator>
00257 struct Printer< ::actionlib::TestRequestGoal_<ContainerAllocator> >
00258 {
00259 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::actionlib::TestRequestGoal_<ContainerAllocator> & v)
00260 {
00261 s << indent << "terminate_status: ";
00262 Printer<int32_t>::stream(s, indent + " ", v.terminate_status);
00263 s << indent << "ignore_cancel: ";
00264 Printer<uint8_t>::stream(s, indent + " ", v.ignore_cancel);
00265 s << indent << "result_text: ";
00266 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.result_text);
00267 s << indent << "the_result: ";
00268 Printer<int32_t>::stream(s, indent + " ", v.the_result);
00269 s << indent << "is_simple_client: ";
00270 Printer<uint8_t>::stream(s, indent + " ", v.is_simple_client);
00271 s << indent << "delay_accept: ";
00272 Printer<ros::Duration>::stream(s, indent + " ", v.delay_accept);
00273 s << indent << "delay_terminate: ";
00274 Printer<ros::Duration>::stream(s, indent + " ", v.delay_terminate);
00275 s << indent << "pause_status: ";
00276 Printer<ros::Duration>::stream(s, indent + " ", v.pause_status);
00277 }
00278 };
00279
00280
00281 }
00282 }
00283
00284 #endif // ACTIONLIB_MESSAGE_TESTREQUESTGOAL_H
00285