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