00001
00002 #ifndef PR2_TILT_LASER_INTERFACE_MESSAGE_GETSNAPSHOTACTION_H
00003 #define PR2_TILT_LASER_INTERFACE_MESSAGE_GETSNAPSHOTACTION_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_tilt_laser_interface/GetSnapshotActionGoal.h"
00014 #include "pr2_tilt_laser_interface/GetSnapshotActionResult.h"
00015 #include "pr2_tilt_laser_interface/GetSnapshotActionFeedback.h"
00016
00017 namespace pr2_tilt_laser_interface
00018 {
00019 template <class ContainerAllocator>
00020 struct GetSnapshotAction_ : public ros::Message
00021 {
00022 typedef GetSnapshotAction_<ContainerAllocator> Type;
00023
00024 GetSnapshotAction_()
00025 : action_goal()
00026 , action_result()
00027 , action_feedback()
00028 {
00029 }
00030
00031 GetSnapshotAction_(const ContainerAllocator& _alloc)
00032 : action_goal(_alloc)
00033 , action_result(_alloc)
00034 , action_feedback(_alloc)
00035 {
00036 }
00037
00038 typedef ::pr2_tilt_laser_interface::GetSnapshotActionGoal_<ContainerAllocator> _action_goal_type;
00039 ::pr2_tilt_laser_interface::GetSnapshotActionGoal_<ContainerAllocator> action_goal;
00040
00041 typedef ::pr2_tilt_laser_interface::GetSnapshotActionResult_<ContainerAllocator> _action_result_type;
00042 ::pr2_tilt_laser_interface::GetSnapshotActionResult_<ContainerAllocator> action_result;
00043
00044 typedef ::pr2_tilt_laser_interface::GetSnapshotActionFeedback_<ContainerAllocator> _action_feedback_type;
00045 ::pr2_tilt_laser_interface::GetSnapshotActionFeedback_<ContainerAllocator> action_feedback;
00046
00047
00048 private:
00049 static const char* __s_getDataType_() { return "pr2_tilt_laser_interface/GetSnapshotAction"; }
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 "a02433255d6053a289c4e30e1bb6194d"; }
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 GetSnapshotActionGoal action_goal\n\
00066 GetSnapshotActionResult action_result\n\
00067 GetSnapshotActionFeedback action_feedback\n\
00068 \n\
00069 ================================================================================\n\
00070 MSG: pr2_tilt_laser_interface/GetSnapshotActionGoal\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 GetSnapshotGoal 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_tilt_laser_interface/GetSnapshotGoal\n\
00110 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00111 # Goal\n\
00112 # We always want to command. Don't need this bool\n\
00113 # bool command_laser # True: Use the command below. False: Use existing profile\n\
00114 float32 start_angle\n\
00115 float32 end_angle\n\
00116 float32 speed\n\
00117 bool hi_fidelity\n\
00118 bool continuous\n\
00119 \n\
00120 ================================================================================\n\
00121 MSG: pr2_tilt_laser_interface/GetSnapshotActionResult\n\
00122 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00123 \n\
00124 Header header\n\
00125 actionlib_msgs/GoalStatus status\n\
00126 GetSnapshotResult result\n\
00127 \n\
00128 ================================================================================\n\
00129 MSG: actionlib_msgs/GoalStatus\n\
00130 GoalID goal_id\n\
00131 uint8 status\n\
00132 uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\
00133 uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\
00134 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\
00135 # and has since completed its execution (Terminal State)\n\
00136 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\
00137 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\
00138 # to some failure (Terminal State)\n\
00139 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\
00140 # because the goal was unattainable or invalid (Terminal State)\n\
00141 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\
00142 # and has not yet completed execution\n\
00143 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\
00144 # but the action server has not yet confirmed that the goal is canceled\n\
00145 uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\
00146 # and was successfully cancelled (Terminal State)\n\
00147 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\
00148 # sent over the wire by an action server\n\
00149 \n\
00150 #Allow for the user to associate a string with GoalStatus for debugging\n\
00151 string text\n\
00152 \n\
00153 \n\
00154 ================================================================================\n\
00155 MSG: pr2_tilt_laser_interface/GetSnapshotResult\n\
00156 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00157 # Result\n\
00158 sensor_msgs/PointCloud2 cloud\n\
00159 \n\
00160 \n\
00161 ================================================================================\n\
00162 MSG: sensor_msgs/PointCloud2\n\
00163 # This message holds a collection of N-dimensional points, which may\n\
00164 # contain additional information such as normals, intensity, etc. The\n\
00165 # point data is stored as a binary blob, its layout described by the\n\
00166 # contents of the \"fields\" array.\n\
00167 \n\
00168 # The point cloud data may be organized 2d (image-like) or 1d\n\
00169 # (unordered). Point clouds organized as 2d images may be produced by\n\
00170 # camera depth sensors such as stereo or time-of-flight.\n\
00171 \n\
00172 # Time of sensor data acquisition, and the coordinate frame ID (for 3d\n\
00173 # points).\n\
00174 Header header\n\
00175 \n\
00176 # 2D structure of the point cloud. If the cloud is unordered, height is\n\
00177 # 1 and width is the length of the point cloud.\n\
00178 uint32 height\n\
00179 uint32 width\n\
00180 \n\
00181 # Describes the channels and their layout in the binary data blob.\n\
00182 PointField[] fields\n\
00183 \n\
00184 bool is_bigendian # Is this data bigendian?\n\
00185 uint32 point_step # Length of a point in bytes\n\
00186 uint32 row_step # Length of a row in bytes\n\
00187 uint8[] data # Actual point data, size is (row_step*height)\n\
00188 \n\
00189 bool is_dense # True if there are no invalid points\n\
00190 \n\
00191 ================================================================================\n\
00192 MSG: sensor_msgs/PointField\n\
00193 # This message holds the description of one point entry in the\n\
00194 # PointCloud2 message format.\n\
00195 uint8 INT8 = 1\n\
00196 uint8 UINT8 = 2\n\
00197 uint8 INT16 = 3\n\
00198 uint8 UINT16 = 4\n\
00199 uint8 INT32 = 5\n\
00200 uint8 UINT32 = 6\n\
00201 uint8 FLOAT32 = 7\n\
00202 uint8 FLOAT64 = 8\n\
00203 \n\
00204 string name # Name of field\n\
00205 uint32 offset # Offset from start of point struct\n\
00206 uint8 datatype # Datatype enumeration, see above\n\
00207 uint32 count # How many elements in the field\n\
00208 \n\
00209 ================================================================================\n\
00210 MSG: pr2_tilt_laser_interface/GetSnapshotActionFeedback\n\
00211 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00212 \n\
00213 Header header\n\
00214 actionlib_msgs/GoalStatus status\n\
00215 GetSnapshotFeedback feedback\n\
00216 \n\
00217 ================================================================================\n\
00218 MSG: pr2_tilt_laser_interface/GetSnapshotFeedback\n\
00219 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00220 # Feedback\n\
00221 sensor_msgs/PointCloud2 cloud\n\
00222 \n\
00223 \n\
00224 \n\
00225 "; }
00226 public:
00227 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00228
00229 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00230
00231 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00232 {
00233 ros::serialization::OStream stream(write_ptr, 1000000000);
00234 ros::serialization::serialize(stream, action_goal);
00235 ros::serialization::serialize(stream, action_result);
00236 ros::serialization::serialize(stream, action_feedback);
00237 return stream.getData();
00238 }
00239
00240 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00241 {
00242 ros::serialization::IStream stream(read_ptr, 1000000000);
00243 ros::serialization::deserialize(stream, action_goal);
00244 ros::serialization::deserialize(stream, action_result);
00245 ros::serialization::deserialize(stream, action_feedback);
00246 return stream.getData();
00247 }
00248
00249 ROS_DEPRECATED virtual uint32_t serializationLength() const
00250 {
00251 uint32_t size = 0;
00252 size += ros::serialization::serializationLength(action_goal);
00253 size += ros::serialization::serializationLength(action_result);
00254 size += ros::serialization::serializationLength(action_feedback);
00255 return size;
00256 }
00257
00258 typedef boost::shared_ptr< ::pr2_tilt_laser_interface::GetSnapshotAction_<ContainerAllocator> > Ptr;
00259 typedef boost::shared_ptr< ::pr2_tilt_laser_interface::GetSnapshotAction_<ContainerAllocator> const> ConstPtr;
00260 };
00261 typedef ::pr2_tilt_laser_interface::GetSnapshotAction_<std::allocator<void> > GetSnapshotAction;
00262
00263 typedef boost::shared_ptr< ::pr2_tilt_laser_interface::GetSnapshotAction> GetSnapshotActionPtr;
00264 typedef boost::shared_ptr< ::pr2_tilt_laser_interface::GetSnapshotAction const> GetSnapshotActionConstPtr;
00265
00266
00267 template<typename ContainerAllocator>
00268 std::ostream& operator<<(std::ostream& s, const ::pr2_tilt_laser_interface::GetSnapshotAction_<ContainerAllocator> & v)
00269 {
00270 ros::message_operations::Printer< ::pr2_tilt_laser_interface::GetSnapshotAction_<ContainerAllocator> >::stream(s, "", v);
00271 return s;}
00272
00273 }
00274
00275 namespace ros
00276 {
00277 namespace message_traits
00278 {
00279 template<class ContainerAllocator>
00280 struct MD5Sum< ::pr2_tilt_laser_interface::GetSnapshotAction_<ContainerAllocator> > {
00281 static const char* value()
00282 {
00283 return "a02433255d6053a289c4e30e1bb6194d";
00284 }
00285
00286 static const char* value(const ::pr2_tilt_laser_interface::GetSnapshotAction_<ContainerAllocator> &) { return value(); }
00287 static const uint64_t static_value1 = 0xa02433255d6053a2ULL;
00288 static const uint64_t static_value2 = 0x89c4e30e1bb6194dULL;
00289 };
00290
00291 template<class ContainerAllocator>
00292 struct DataType< ::pr2_tilt_laser_interface::GetSnapshotAction_<ContainerAllocator> > {
00293 static const char* value()
00294 {
00295 return "pr2_tilt_laser_interface/GetSnapshotAction";
00296 }
00297
00298 static const char* value(const ::pr2_tilt_laser_interface::GetSnapshotAction_<ContainerAllocator> &) { return value(); }
00299 };
00300
00301 template<class ContainerAllocator>
00302 struct Definition< ::pr2_tilt_laser_interface::GetSnapshotAction_<ContainerAllocator> > {
00303 static const char* value()
00304 {
00305 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00306 \n\
00307 GetSnapshotActionGoal action_goal\n\
00308 GetSnapshotActionResult action_result\n\
00309 GetSnapshotActionFeedback action_feedback\n\
00310 \n\
00311 ================================================================================\n\
00312 MSG: pr2_tilt_laser_interface/GetSnapshotActionGoal\n\
00313 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00314 \n\
00315 Header header\n\
00316 actionlib_msgs/GoalID goal_id\n\
00317 GetSnapshotGoal goal\n\
00318 \n\
00319 ================================================================================\n\
00320 MSG: std_msgs/Header\n\
00321 # Standard metadata for higher-level stamped data types.\n\
00322 # This is generally used to communicate timestamped data \n\
00323 # in a particular coordinate frame.\n\
00324 # \n\
00325 # sequence ID: consecutively increasing ID \n\
00326 uint32 seq\n\
00327 #Two-integer timestamp that is expressed as:\n\
00328 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00329 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00330 # time-handling sugar is provided by the client library\n\
00331 time stamp\n\
00332 #Frame this data is associated with\n\
00333 # 0: no frame\n\
00334 # 1: global frame\n\
00335 string frame_id\n\
00336 \n\
00337 ================================================================================\n\
00338 MSG: actionlib_msgs/GoalID\n\
00339 # The stamp should store the time at which this goal was requested.\n\
00340 # It is used by an action server when it tries to preempt all\n\
00341 # goals that were requested before a certain time\n\
00342 time stamp\n\
00343 \n\
00344 # The id provides a way to associate feedback and\n\
00345 # result message with specific goal requests. The id\n\
00346 # specified must be unique.\n\
00347 string id\n\
00348 \n\
00349 \n\
00350 ================================================================================\n\
00351 MSG: pr2_tilt_laser_interface/GetSnapshotGoal\n\
00352 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00353 # Goal\n\
00354 # We always want to command. Don't need this bool\n\
00355 # bool command_laser # True: Use the command below. False: Use existing profile\n\
00356 float32 start_angle\n\
00357 float32 end_angle\n\
00358 float32 speed\n\
00359 bool hi_fidelity\n\
00360 bool continuous\n\
00361 \n\
00362 ================================================================================\n\
00363 MSG: pr2_tilt_laser_interface/GetSnapshotActionResult\n\
00364 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00365 \n\
00366 Header header\n\
00367 actionlib_msgs/GoalStatus status\n\
00368 GetSnapshotResult result\n\
00369 \n\
00370 ================================================================================\n\
00371 MSG: actionlib_msgs/GoalStatus\n\
00372 GoalID goal_id\n\
00373 uint8 status\n\
00374 uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\
00375 uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\
00376 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\
00377 # and has since completed its execution (Terminal State)\n\
00378 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\
00379 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\
00380 # to some failure (Terminal State)\n\
00381 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\
00382 # because the goal was unattainable or invalid (Terminal State)\n\
00383 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\
00384 # and has not yet completed execution\n\
00385 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\
00386 # but the action server has not yet confirmed that the goal is canceled\n\
00387 uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\
00388 # and was successfully cancelled (Terminal State)\n\
00389 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\
00390 # sent over the wire by an action server\n\
00391 \n\
00392 #Allow for the user to associate a string with GoalStatus for debugging\n\
00393 string text\n\
00394 \n\
00395 \n\
00396 ================================================================================\n\
00397 MSG: pr2_tilt_laser_interface/GetSnapshotResult\n\
00398 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00399 # Result\n\
00400 sensor_msgs/PointCloud2 cloud\n\
00401 \n\
00402 \n\
00403 ================================================================================\n\
00404 MSG: sensor_msgs/PointCloud2\n\
00405 # This message holds a collection of N-dimensional points, which may\n\
00406 # contain additional information such as normals, intensity, etc. The\n\
00407 # point data is stored as a binary blob, its layout described by the\n\
00408 # contents of the \"fields\" array.\n\
00409 \n\
00410 # The point cloud data may be organized 2d (image-like) or 1d\n\
00411 # (unordered). Point clouds organized as 2d images may be produced by\n\
00412 # camera depth sensors such as stereo or time-of-flight.\n\
00413 \n\
00414 # Time of sensor data acquisition, and the coordinate frame ID (for 3d\n\
00415 # points).\n\
00416 Header header\n\
00417 \n\
00418 # 2D structure of the point cloud. If the cloud is unordered, height is\n\
00419 # 1 and width is the length of the point cloud.\n\
00420 uint32 height\n\
00421 uint32 width\n\
00422 \n\
00423 # Describes the channels and their layout in the binary data blob.\n\
00424 PointField[] fields\n\
00425 \n\
00426 bool is_bigendian # Is this data bigendian?\n\
00427 uint32 point_step # Length of a point in bytes\n\
00428 uint32 row_step # Length of a row in bytes\n\
00429 uint8[] data # Actual point data, size is (row_step*height)\n\
00430 \n\
00431 bool is_dense # True if there are no invalid points\n\
00432 \n\
00433 ================================================================================\n\
00434 MSG: sensor_msgs/PointField\n\
00435 # This message holds the description of one point entry in the\n\
00436 # PointCloud2 message format.\n\
00437 uint8 INT8 = 1\n\
00438 uint8 UINT8 = 2\n\
00439 uint8 INT16 = 3\n\
00440 uint8 UINT16 = 4\n\
00441 uint8 INT32 = 5\n\
00442 uint8 UINT32 = 6\n\
00443 uint8 FLOAT32 = 7\n\
00444 uint8 FLOAT64 = 8\n\
00445 \n\
00446 string name # Name of field\n\
00447 uint32 offset # Offset from start of point struct\n\
00448 uint8 datatype # Datatype enumeration, see above\n\
00449 uint32 count # How many elements in the field\n\
00450 \n\
00451 ================================================================================\n\
00452 MSG: pr2_tilt_laser_interface/GetSnapshotActionFeedback\n\
00453 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00454 \n\
00455 Header header\n\
00456 actionlib_msgs/GoalStatus status\n\
00457 GetSnapshotFeedback feedback\n\
00458 \n\
00459 ================================================================================\n\
00460 MSG: pr2_tilt_laser_interface/GetSnapshotFeedback\n\
00461 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00462 # Feedback\n\
00463 sensor_msgs/PointCloud2 cloud\n\
00464 \n\
00465 \n\
00466 \n\
00467 ";
00468 }
00469
00470 static const char* value(const ::pr2_tilt_laser_interface::GetSnapshotAction_<ContainerAllocator> &) { return value(); }
00471 };
00472
00473 }
00474 }
00475
00476 namespace ros
00477 {
00478 namespace serialization
00479 {
00480
00481 template<class ContainerAllocator> struct Serializer< ::pr2_tilt_laser_interface::GetSnapshotAction_<ContainerAllocator> >
00482 {
00483 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00484 {
00485 stream.next(m.action_goal);
00486 stream.next(m.action_result);
00487 stream.next(m.action_feedback);
00488 }
00489
00490 ROS_DECLARE_ALLINONE_SERIALIZER;
00491 };
00492 }
00493 }
00494
00495 namespace ros
00496 {
00497 namespace message_operations
00498 {
00499
00500 template<class ContainerAllocator>
00501 struct Printer< ::pr2_tilt_laser_interface::GetSnapshotAction_<ContainerAllocator> >
00502 {
00503 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_tilt_laser_interface::GetSnapshotAction_<ContainerAllocator> & v)
00504 {
00505 s << indent << "action_goal: ";
00506 s << std::endl;
00507 Printer< ::pr2_tilt_laser_interface::GetSnapshotActionGoal_<ContainerAllocator> >::stream(s, indent + " ", v.action_goal);
00508 s << indent << "action_result: ";
00509 s << std::endl;
00510 Printer< ::pr2_tilt_laser_interface::GetSnapshotActionResult_<ContainerAllocator> >::stream(s, indent + " ", v.action_result);
00511 s << indent << "action_feedback: ";
00512 s << std::endl;
00513 Printer< ::pr2_tilt_laser_interface::GetSnapshotActionFeedback_<ContainerAllocator> >::stream(s, indent + " ", v.action_feedback);
00514 }
00515 };
00516
00517
00518 }
00519 }
00520
00521 #endif // PR2_TILT_LASER_INTERFACE_MESSAGE_GETSNAPSHOTACTION_H
00522