00001
00002 #ifndef ACTIONLIB_MESSAGE_TESTREQUESTACTIONGOAL_H
00003 #define ACTIONLIB_MESSAGE_TESTREQUESTACTIONGOAL_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 #include "actionlib_msgs/GoalID.h"
00019 #include "actionlib/TestRequestGoal.h"
00020
00021 namespace actionlib
00022 {
00023 template <class ContainerAllocator>
00024 struct TestRequestActionGoal_ {
00025 typedef TestRequestActionGoal_<ContainerAllocator> Type;
00026
00027 TestRequestActionGoal_()
00028 : header()
00029 , goal_id()
00030 , goal()
00031 {
00032 }
00033
00034 TestRequestActionGoal_(const ContainerAllocator& _alloc)
00035 : header(_alloc)
00036 , goal_id(_alloc)
00037 , goal(_alloc)
00038 {
00039 }
00040
00041 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00042 ::std_msgs::Header_<ContainerAllocator> header;
00043
00044 typedef ::actionlib_msgs::GoalID_<ContainerAllocator> _goal_id_type;
00045 ::actionlib_msgs::GoalID_<ContainerAllocator> goal_id;
00046
00047 typedef ::actionlib::TestRequestGoal_<ContainerAllocator> _goal_type;
00048 ::actionlib::TestRequestGoal_<ContainerAllocator> goal;
00049
00050
00051 private:
00052 static const char* __s_getDataType_() { return "actionlib/TestRequestActionGoal"; }
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 "1889556d3fef88f821c7cb004e4251f3"; }
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 Header header\n\
00069 actionlib_msgs/GoalID goal_id\n\
00070 TestRequestGoal goal\n\
00071 \n\
00072 ================================================================================\n\
00073 MSG: std_msgs/Header\n\
00074 # Standard metadata for higher-level stamped data types.\n\
00075 # This is generally used to communicate timestamped data \n\
00076 # in a particular coordinate frame.\n\
00077 # \n\
00078 # sequence ID: consecutively increasing ID \n\
00079 uint32 seq\n\
00080 #Two-integer timestamp that is expressed as:\n\
00081 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00082 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00083 # time-handling sugar is provided by the client library\n\
00084 time stamp\n\
00085 #Frame this data is associated with\n\
00086 # 0: no frame\n\
00087 # 1: global frame\n\
00088 string frame_id\n\
00089 \n\
00090 ================================================================================\n\
00091 MSG: actionlib_msgs/GoalID\n\
00092 # The stamp should store the time at which this goal was requested.\n\
00093 # It is used by an action server when it tries to preempt all\n\
00094 # goals that were requested before a certain time\n\
00095 time stamp\n\
00096 \n\
00097 # The id provides a way to associate feedback and\n\
00098 # result message with specific goal requests. The id\n\
00099 # specified must be unique.\n\
00100 string id\n\
00101 \n\
00102 \n\
00103 ================================================================================\n\
00104 MSG: actionlib/TestRequestGoal\n\
00105 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00106 int32 TERMINATE_SUCCESS = 0\n\
00107 int32 TERMINATE_ABORTED = 1\n\
00108 int32 TERMINATE_REJECTED = 2\n\
00109 int32 TERMINATE_LOSE = 3\n\
00110 int32 TERMINATE_DROP = 4\n\
00111 int32 TERMINATE_EXCEPTION = 5\n\
00112 int32 terminate_status\n\
00113 bool ignore_cancel # If true, ignores requests to cancel\n\
00114 string result_text\n\
00115 int32 the_result # Desired value for the_result in the Result\n\
00116 bool is_simple_client\n\
00117 duration delay_accept # Delays accepting the goal by this amount of time\n\
00118 duration delay_terminate # Delays terminating for this amount of time\n\
00119 duration pause_status # Pauses the status messages for this amount of time\n\
00120 \n\
00121 "; }
00122 public:
00123 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00124
00125 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00126
00127 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00128 {
00129 ros::serialization::OStream stream(write_ptr, 1000000000);
00130 ros::serialization::serialize(stream, header);
00131 ros::serialization::serialize(stream, goal_id);
00132 ros::serialization::serialize(stream, goal);
00133 return stream.getData();
00134 }
00135
00136 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00137 {
00138 ros::serialization::IStream stream(read_ptr, 1000000000);
00139 ros::serialization::deserialize(stream, header);
00140 ros::serialization::deserialize(stream, goal_id);
00141 ros::serialization::deserialize(stream, goal);
00142 return stream.getData();
00143 }
00144
00145 ROS_DEPRECATED virtual uint32_t serializationLength() const
00146 {
00147 uint32_t size = 0;
00148 size += ros::serialization::serializationLength(header);
00149 size += ros::serialization::serializationLength(goal_id);
00150 size += ros::serialization::serializationLength(goal);
00151 return size;
00152 }
00153
00154 typedef boost::shared_ptr< ::actionlib::TestRequestActionGoal_<ContainerAllocator> > Ptr;
00155 typedef boost::shared_ptr< ::actionlib::TestRequestActionGoal_<ContainerAllocator> const> ConstPtr;
00156 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00157 };
00158 typedef ::actionlib::TestRequestActionGoal_<std::allocator<void> > TestRequestActionGoal;
00159
00160 typedef boost::shared_ptr< ::actionlib::TestRequestActionGoal> TestRequestActionGoalPtr;
00161 typedef boost::shared_ptr< ::actionlib::TestRequestActionGoal const> TestRequestActionGoalConstPtr;
00162
00163
00164 template<typename ContainerAllocator>
00165 std::ostream& operator<<(std::ostream& s, const ::actionlib::TestRequestActionGoal_<ContainerAllocator> & v)
00166 {
00167 ros::message_operations::Printer< ::actionlib::TestRequestActionGoal_<ContainerAllocator> >::stream(s, "", v);
00168 return s;}
00169
00170 }
00171
00172 namespace ros
00173 {
00174 namespace message_traits
00175 {
00176 template<class ContainerAllocator> struct IsMessage< ::actionlib::TestRequestActionGoal_<ContainerAllocator> > : public TrueType {};
00177 template<class ContainerAllocator> struct IsMessage< ::actionlib::TestRequestActionGoal_<ContainerAllocator> const> : public TrueType {};
00178 template<class ContainerAllocator>
00179 struct MD5Sum< ::actionlib::TestRequestActionGoal_<ContainerAllocator> > {
00180 static const char* value()
00181 {
00182 return "1889556d3fef88f821c7cb004e4251f3";
00183 }
00184
00185 static const char* value(const ::actionlib::TestRequestActionGoal_<ContainerAllocator> &) { return value(); }
00186 static const uint64_t static_value1 = 0x1889556d3fef88f8ULL;
00187 static const uint64_t static_value2 = 0x21c7cb004e4251f3ULL;
00188 };
00189
00190 template<class ContainerAllocator>
00191 struct DataType< ::actionlib::TestRequestActionGoal_<ContainerAllocator> > {
00192 static const char* value()
00193 {
00194 return "actionlib/TestRequestActionGoal";
00195 }
00196
00197 static const char* value(const ::actionlib::TestRequestActionGoal_<ContainerAllocator> &) { return value(); }
00198 };
00199
00200 template<class ContainerAllocator>
00201 struct Definition< ::actionlib::TestRequestActionGoal_<ContainerAllocator> > {
00202 static const char* value()
00203 {
00204 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00205 \n\
00206 Header header\n\
00207 actionlib_msgs/GoalID goal_id\n\
00208 TestRequestGoal goal\n\
00209 \n\
00210 ================================================================================\n\
00211 MSG: std_msgs/Header\n\
00212 # Standard metadata for higher-level stamped data types.\n\
00213 # This is generally used to communicate timestamped data \n\
00214 # in a particular coordinate frame.\n\
00215 # \n\
00216 # sequence ID: consecutively increasing ID \n\
00217 uint32 seq\n\
00218 #Two-integer timestamp that is expressed as:\n\
00219 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00220 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00221 # time-handling sugar is provided by the client library\n\
00222 time stamp\n\
00223 #Frame this data is associated with\n\
00224 # 0: no frame\n\
00225 # 1: global frame\n\
00226 string frame_id\n\
00227 \n\
00228 ================================================================================\n\
00229 MSG: actionlib_msgs/GoalID\n\
00230 # The stamp should store the time at which this goal was requested.\n\
00231 # It is used by an action server when it tries to preempt all\n\
00232 # goals that were requested before a certain time\n\
00233 time stamp\n\
00234 \n\
00235 # The id provides a way to associate feedback and\n\
00236 # result message with specific goal requests. The id\n\
00237 # specified must be unique.\n\
00238 string id\n\
00239 \n\
00240 \n\
00241 ================================================================================\n\
00242 MSG: actionlib/TestRequestGoal\n\
00243 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00244 int32 TERMINATE_SUCCESS = 0\n\
00245 int32 TERMINATE_ABORTED = 1\n\
00246 int32 TERMINATE_REJECTED = 2\n\
00247 int32 TERMINATE_LOSE = 3\n\
00248 int32 TERMINATE_DROP = 4\n\
00249 int32 TERMINATE_EXCEPTION = 5\n\
00250 int32 terminate_status\n\
00251 bool ignore_cancel # If true, ignores requests to cancel\n\
00252 string result_text\n\
00253 int32 the_result # Desired value for the_result in the Result\n\
00254 bool is_simple_client\n\
00255 duration delay_accept # Delays accepting the goal by this amount of time\n\
00256 duration delay_terminate # Delays terminating for this amount of time\n\
00257 duration pause_status # Pauses the status messages for this amount of time\n\
00258 \n\
00259 ";
00260 }
00261
00262 static const char* value(const ::actionlib::TestRequestActionGoal_<ContainerAllocator> &) { return value(); }
00263 };
00264
00265 template<class ContainerAllocator> struct HasHeader< ::actionlib::TestRequestActionGoal_<ContainerAllocator> > : public TrueType {};
00266 template<class ContainerAllocator> struct HasHeader< const ::actionlib::TestRequestActionGoal_<ContainerAllocator> > : public TrueType {};
00267 }
00268 }
00269
00270 namespace ros
00271 {
00272 namespace serialization
00273 {
00274
00275 template<class ContainerAllocator> struct Serializer< ::actionlib::TestRequestActionGoal_<ContainerAllocator> >
00276 {
00277 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00278 {
00279 stream.next(m.header);
00280 stream.next(m.goal_id);
00281 stream.next(m.goal);
00282 }
00283
00284 ROS_DECLARE_ALLINONE_SERIALIZER;
00285 };
00286 }
00287 }
00288
00289 namespace ros
00290 {
00291 namespace message_operations
00292 {
00293
00294 template<class ContainerAllocator>
00295 struct Printer< ::actionlib::TestRequestActionGoal_<ContainerAllocator> >
00296 {
00297 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::actionlib::TestRequestActionGoal_<ContainerAllocator> & v)
00298 {
00299 s << indent << "header: ";
00300 s << std::endl;
00301 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00302 s << indent << "goal_id: ";
00303 s << std::endl;
00304 Printer< ::actionlib_msgs::GoalID_<ContainerAllocator> >::stream(s, indent + " ", v.goal_id);
00305 s << indent << "goal: ";
00306 s << std::endl;
00307 Printer< ::actionlib::TestRequestGoal_<ContainerAllocator> >::stream(s, indent + " ", v.goal);
00308 }
00309 };
00310
00311
00312 }
00313 }
00314
00315 #endif // ACTIONLIB_MESSAGE_TESTREQUESTACTIONGOAL_H
00316