00001
00002 #ifndef PR2_IMAGE_SNAPSHOT_RECORDER_MESSAGE_IMAGESNAPSHOTACTION_H
00003 #define PR2_IMAGE_SNAPSHOT_RECORDER_MESSAGE_IMAGESNAPSHOTACTION_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 "pr2_image_snapshot_recorder/ImageSnapshotActionGoal.h"
00014 #include "pr2_image_snapshot_recorder/ImageSnapshotActionResult.h"
00015 #include "pr2_image_snapshot_recorder/ImageSnapshotActionFeedback.h"
00016
00017 namespace pr2_image_snapshot_recorder
00018 {
00019 template <class ContainerAllocator>
00020 struct ImageSnapshotAction_ : public ros::Message
00021 {
00022 typedef ImageSnapshotAction_<ContainerAllocator> Type;
00023
00024 ImageSnapshotAction_()
00025 : action_goal()
00026 , action_result()
00027 , action_feedback()
00028 {
00029 }
00030
00031 ImageSnapshotAction_(const ContainerAllocator& _alloc)
00032 : action_goal(_alloc)
00033 , action_result(_alloc)
00034 , action_feedback(_alloc)
00035 {
00036 }
00037
00038 typedef ::pr2_image_snapshot_recorder::ImageSnapshotActionGoal_<ContainerAllocator> _action_goal_type;
00039 ::pr2_image_snapshot_recorder::ImageSnapshotActionGoal_<ContainerAllocator> action_goal;
00040
00041 typedef ::pr2_image_snapshot_recorder::ImageSnapshotActionResult_<ContainerAllocator> _action_result_type;
00042 ::pr2_image_snapshot_recorder::ImageSnapshotActionResult_<ContainerAllocator> action_result;
00043
00044 typedef ::pr2_image_snapshot_recorder::ImageSnapshotActionFeedback_<ContainerAllocator> _action_feedback_type;
00045 ::pr2_image_snapshot_recorder::ImageSnapshotActionFeedback_<ContainerAllocator> action_feedback;
00046
00047
00048 private:
00049 static const char* __s_getDataType_() { return "pr2_image_snapshot_recorder/ImageSnapshotAction"; }
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 "249f2e989d34e5520a02bd3409df9473"; }
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 ImageSnapshotActionGoal action_goal\n\
00066 ImageSnapshotActionResult action_result\n\
00067 ImageSnapshotActionFeedback action_feedback\n\
00068 \n\
00069 ================================================================================\n\
00070 MSG: pr2_image_snapshot_recorder/ImageSnapshotActionGoal\n\
00071 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00072 \n\
00073 Header header\n\
00074 actionlib_msgs/GoalID goal_id\n\
00075 ImageSnapshotGoal goal\n\
00076 \n\
00077 ================================================================================\n\
00078 MSG: std_msgs/Header\n\
00079 # Standard metadata for higher-level stamped data types.\n\
00080 # This is generally used to communicate timestamped data \n\
00081 # in a particular coordinate frame.\n\
00082 # \n\
00083 # sequence ID: consecutively increasing ID \n\
00084 uint32 seq\n\
00085 #Two-integer timestamp that is expressed as:\n\
00086 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00087 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00088 # time-handling sugar is provided by the client library\n\
00089 time stamp\n\
00090 #Frame this data is associated with\n\
00091 # 0: no frame\n\
00092 # 1: global frame\n\
00093 string frame_id\n\
00094 \n\
00095 ================================================================================\n\
00096 MSG: actionlib_msgs/GoalID\n\
00097 # The stamp should store the time at which this goal was requested.\n\
00098 # It is used by an action server when it tries to preempt all\n\
00099 # goals that were requested before a certain time\n\
00100 time stamp\n\
00101 \n\
00102 # The id provides a way to associate feedback and\n\
00103 # result message with specific goal requests. The id\n\
00104 # specified must be unique.\n\
00105 string id\n\
00106 \n\
00107 \n\
00108 ================================================================================\n\
00109 MSG: pr2_image_snapshot_recorder/ImageSnapshotGoal\n\
00110 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00111 string topic_name # Topic name, must be of sensor_msgs/Image\n\
00112 int32 num_images # Set <0 to record until prempted\n\
00113 string output_file_name # Default: /hwlog/TOPIC_NAME_DATE_TIME.bag\n\
00114 \n\
00115 ================================================================================\n\
00116 MSG: pr2_image_snapshot_recorder/ImageSnapshotActionResult\n\
00117 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00118 \n\
00119 Header header\n\
00120 actionlib_msgs/GoalStatus status\n\
00121 ImageSnapshotResult result\n\
00122 \n\
00123 ================================================================================\n\
00124 MSG: actionlib_msgs/GoalStatus\n\
00125 GoalID goal_id\n\
00126 uint8 status\n\
00127 uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\
00128 uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\
00129 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\
00130 # and has since completed its execution (Terminal State)\n\
00131 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\
00132 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\
00133 # to some failure (Terminal State)\n\
00134 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\
00135 # because the goal was unattainable or invalid (Terminal State)\n\
00136 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\
00137 # and has not yet completed execution\n\
00138 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\
00139 # but the action server has not yet confirmed that the goal is canceled\n\
00140 uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\
00141 # and was successfully cancelled (Terminal State)\n\
00142 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\
00143 # sent over the wire by an action server\n\
00144 \n\
00145 #Allow for the user to associate a string with GoalStatus for debugging\n\
00146 string text\n\
00147 \n\
00148 \n\
00149 ================================================================================\n\
00150 MSG: pr2_image_snapshot_recorder/ImageSnapshotResult\n\
00151 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00152 # Empty result\n\
00153 \n\
00154 ================================================================================\n\
00155 MSG: pr2_image_snapshot_recorder/ImageSnapshotActionFeedback\n\
00156 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00157 \n\
00158 Header header\n\
00159 actionlib_msgs/GoalStatus status\n\
00160 ImageSnapshotFeedback feedback\n\
00161 \n\
00162 ================================================================================\n\
00163 MSG: pr2_image_snapshot_recorder/ImageSnapshotFeedback\n\
00164 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00165 # Empty feedback\n\
00166 \n\
00167 "; }
00168 public:
00169 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00170
00171 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00172
00173 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00174 {
00175 ros::serialization::OStream stream(write_ptr, 1000000000);
00176 ros::serialization::serialize(stream, action_goal);
00177 ros::serialization::serialize(stream, action_result);
00178 ros::serialization::serialize(stream, action_feedback);
00179 return stream.getData();
00180 }
00181
00182 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00183 {
00184 ros::serialization::IStream stream(read_ptr, 1000000000);
00185 ros::serialization::deserialize(stream, action_goal);
00186 ros::serialization::deserialize(stream, action_result);
00187 ros::serialization::deserialize(stream, action_feedback);
00188 return stream.getData();
00189 }
00190
00191 ROS_DEPRECATED virtual uint32_t serializationLength() const
00192 {
00193 uint32_t size = 0;
00194 size += ros::serialization::serializationLength(action_goal);
00195 size += ros::serialization::serializationLength(action_result);
00196 size += ros::serialization::serializationLength(action_feedback);
00197 return size;
00198 }
00199
00200 typedef boost::shared_ptr< ::pr2_image_snapshot_recorder::ImageSnapshotAction_<ContainerAllocator> > Ptr;
00201 typedef boost::shared_ptr< ::pr2_image_snapshot_recorder::ImageSnapshotAction_<ContainerAllocator> const> ConstPtr;
00202 };
00203 typedef ::pr2_image_snapshot_recorder::ImageSnapshotAction_<std::allocator<void> > ImageSnapshotAction;
00204
00205 typedef boost::shared_ptr< ::pr2_image_snapshot_recorder::ImageSnapshotAction> ImageSnapshotActionPtr;
00206 typedef boost::shared_ptr< ::pr2_image_snapshot_recorder::ImageSnapshotAction const> ImageSnapshotActionConstPtr;
00207
00208
00209 template<typename ContainerAllocator>
00210 std::ostream& operator<<(std::ostream& s, const ::pr2_image_snapshot_recorder::ImageSnapshotAction_<ContainerAllocator> & v)
00211 {
00212 ros::message_operations::Printer< ::pr2_image_snapshot_recorder::ImageSnapshotAction_<ContainerAllocator> >::stream(s, "", v);
00213 return s;}
00214
00215 }
00216
00217 namespace ros
00218 {
00219 namespace message_traits
00220 {
00221 template<class ContainerAllocator>
00222 struct MD5Sum< ::pr2_image_snapshot_recorder::ImageSnapshotAction_<ContainerAllocator> > {
00223 static const char* value()
00224 {
00225 return "249f2e989d34e5520a02bd3409df9473";
00226 }
00227
00228 static const char* value(const ::pr2_image_snapshot_recorder::ImageSnapshotAction_<ContainerAllocator> &) { return value(); }
00229 static const uint64_t static_value1 = 0x249f2e989d34e552ULL;
00230 static const uint64_t static_value2 = 0x0a02bd3409df9473ULL;
00231 };
00232
00233 template<class ContainerAllocator>
00234 struct DataType< ::pr2_image_snapshot_recorder::ImageSnapshotAction_<ContainerAllocator> > {
00235 static const char* value()
00236 {
00237 return "pr2_image_snapshot_recorder/ImageSnapshotAction";
00238 }
00239
00240 static const char* value(const ::pr2_image_snapshot_recorder::ImageSnapshotAction_<ContainerAllocator> &) { return value(); }
00241 };
00242
00243 template<class ContainerAllocator>
00244 struct Definition< ::pr2_image_snapshot_recorder::ImageSnapshotAction_<ContainerAllocator> > {
00245 static const char* value()
00246 {
00247 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00248 \n\
00249 ImageSnapshotActionGoal action_goal\n\
00250 ImageSnapshotActionResult action_result\n\
00251 ImageSnapshotActionFeedback action_feedback\n\
00252 \n\
00253 ================================================================================\n\
00254 MSG: pr2_image_snapshot_recorder/ImageSnapshotActionGoal\n\
00255 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00256 \n\
00257 Header header\n\
00258 actionlib_msgs/GoalID goal_id\n\
00259 ImageSnapshotGoal goal\n\
00260 \n\
00261 ================================================================================\n\
00262 MSG: std_msgs/Header\n\
00263 # Standard metadata for higher-level stamped data types.\n\
00264 # This is generally used to communicate timestamped data \n\
00265 # in a particular coordinate frame.\n\
00266 # \n\
00267 # sequence ID: consecutively increasing ID \n\
00268 uint32 seq\n\
00269 #Two-integer timestamp that is expressed as:\n\
00270 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00271 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00272 # time-handling sugar is provided by the client library\n\
00273 time stamp\n\
00274 #Frame this data is associated with\n\
00275 # 0: no frame\n\
00276 # 1: global frame\n\
00277 string frame_id\n\
00278 \n\
00279 ================================================================================\n\
00280 MSG: actionlib_msgs/GoalID\n\
00281 # The stamp should store the time at which this goal was requested.\n\
00282 # It is used by an action server when it tries to preempt all\n\
00283 # goals that were requested before a certain time\n\
00284 time stamp\n\
00285 \n\
00286 # The id provides a way to associate feedback and\n\
00287 # result message with specific goal requests. The id\n\
00288 # specified must be unique.\n\
00289 string id\n\
00290 \n\
00291 \n\
00292 ================================================================================\n\
00293 MSG: pr2_image_snapshot_recorder/ImageSnapshotGoal\n\
00294 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00295 string topic_name # Topic name, must be of sensor_msgs/Image\n\
00296 int32 num_images # Set <0 to record until prempted\n\
00297 string output_file_name # Default: /hwlog/TOPIC_NAME_DATE_TIME.bag\n\
00298 \n\
00299 ================================================================================\n\
00300 MSG: pr2_image_snapshot_recorder/ImageSnapshotActionResult\n\
00301 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00302 \n\
00303 Header header\n\
00304 actionlib_msgs/GoalStatus status\n\
00305 ImageSnapshotResult result\n\
00306 \n\
00307 ================================================================================\n\
00308 MSG: actionlib_msgs/GoalStatus\n\
00309 GoalID goal_id\n\
00310 uint8 status\n\
00311 uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\
00312 uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\
00313 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\
00314 # and has since completed its execution (Terminal State)\n\
00315 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\
00316 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\
00317 # to some failure (Terminal State)\n\
00318 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\
00319 # because the goal was unattainable or invalid (Terminal State)\n\
00320 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\
00321 # and has not yet completed execution\n\
00322 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\
00323 # but the action server has not yet confirmed that the goal is canceled\n\
00324 uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\
00325 # and was successfully cancelled (Terminal State)\n\
00326 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\
00327 # sent over the wire by an action server\n\
00328 \n\
00329 #Allow for the user to associate a string with GoalStatus for debugging\n\
00330 string text\n\
00331 \n\
00332 \n\
00333 ================================================================================\n\
00334 MSG: pr2_image_snapshot_recorder/ImageSnapshotResult\n\
00335 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00336 # Empty result\n\
00337 \n\
00338 ================================================================================\n\
00339 MSG: pr2_image_snapshot_recorder/ImageSnapshotActionFeedback\n\
00340 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00341 \n\
00342 Header header\n\
00343 actionlib_msgs/GoalStatus status\n\
00344 ImageSnapshotFeedback feedback\n\
00345 \n\
00346 ================================================================================\n\
00347 MSG: pr2_image_snapshot_recorder/ImageSnapshotFeedback\n\
00348 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00349 # Empty feedback\n\
00350 \n\
00351 ";
00352 }
00353
00354 static const char* value(const ::pr2_image_snapshot_recorder::ImageSnapshotAction_<ContainerAllocator> &) { return value(); }
00355 };
00356
00357 }
00358 }
00359
00360 namespace ros
00361 {
00362 namespace serialization
00363 {
00364
00365 template<class ContainerAllocator> struct Serializer< ::pr2_image_snapshot_recorder::ImageSnapshotAction_<ContainerAllocator> >
00366 {
00367 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00368 {
00369 stream.next(m.action_goal);
00370 stream.next(m.action_result);
00371 stream.next(m.action_feedback);
00372 }
00373
00374 ROS_DECLARE_ALLINONE_SERIALIZER;
00375 };
00376 }
00377 }
00378
00379 namespace ros
00380 {
00381 namespace message_operations
00382 {
00383
00384 template<class ContainerAllocator>
00385 struct Printer< ::pr2_image_snapshot_recorder::ImageSnapshotAction_<ContainerAllocator> >
00386 {
00387 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_image_snapshot_recorder::ImageSnapshotAction_<ContainerAllocator> & v)
00388 {
00389 s << indent << "action_goal: ";
00390 s << std::endl;
00391 Printer< ::pr2_image_snapshot_recorder::ImageSnapshotActionGoal_<ContainerAllocator> >::stream(s, indent + " ", v.action_goal);
00392 s << indent << "action_result: ";
00393 s << std::endl;
00394 Printer< ::pr2_image_snapshot_recorder::ImageSnapshotActionResult_<ContainerAllocator> >::stream(s, indent + " ", v.action_result);
00395 s << indent << "action_feedback: ";
00396 s << std::endl;
00397 Printer< ::pr2_image_snapshot_recorder::ImageSnapshotActionFeedback_<ContainerAllocator> >::stream(s, indent + " ", v.action_feedback);
00398 }
00399 };
00400
00401
00402 }
00403 }
00404
00405 #endif // PR2_IMAGE_SNAPSHOT_RECORDER_MESSAGE_IMAGESNAPSHOTACTION_H
00406