$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-turtlebot_arm/doc_stacks/2013-03-02_14-01-21.381977/turtlebot_arm/turtlebot_block_manipulation/msg/BlockDetectionAction.msg */ 00002 #ifndef TURTLEBOT_BLOCK_MANIPULATION_MESSAGE_BLOCKDETECTIONACTION_H 00003 #define TURTLEBOT_BLOCK_MANIPULATION_MESSAGE_BLOCKDETECTIONACTION_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 "turtlebot_block_manipulation/BlockDetectionActionGoal.h" 00018 #include "turtlebot_block_manipulation/BlockDetectionActionResult.h" 00019 #include "turtlebot_block_manipulation/BlockDetectionActionFeedback.h" 00020 00021 namespace turtlebot_block_manipulation 00022 { 00023 template <class ContainerAllocator> 00024 struct BlockDetectionAction_ { 00025 typedef BlockDetectionAction_<ContainerAllocator> Type; 00026 00027 BlockDetectionAction_() 00028 : action_goal() 00029 , action_result() 00030 , action_feedback() 00031 { 00032 } 00033 00034 BlockDetectionAction_(const ContainerAllocator& _alloc) 00035 : action_goal(_alloc) 00036 , action_result(_alloc) 00037 , action_feedback(_alloc) 00038 { 00039 } 00040 00041 typedef ::turtlebot_block_manipulation::BlockDetectionActionGoal_<ContainerAllocator> _action_goal_type; 00042 ::turtlebot_block_manipulation::BlockDetectionActionGoal_<ContainerAllocator> action_goal; 00043 00044 typedef ::turtlebot_block_manipulation::BlockDetectionActionResult_<ContainerAllocator> _action_result_type; 00045 ::turtlebot_block_manipulation::BlockDetectionActionResult_<ContainerAllocator> action_result; 00046 00047 typedef ::turtlebot_block_manipulation::BlockDetectionActionFeedback_<ContainerAllocator> _action_feedback_type; 00048 ::turtlebot_block_manipulation::BlockDetectionActionFeedback_<ContainerAllocator> action_feedback; 00049 00050 00051 private: 00052 static const char* __s_getDataType_() { return "turtlebot_block_manipulation/BlockDetectionAction"; } 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 "32b318b57a8d5ec852090b7f3b7885e0"; } 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 BlockDetectionActionGoal action_goal\n\ 00069 BlockDetectionActionResult action_result\n\ 00070 BlockDetectionActionFeedback action_feedback\n\ 00071 \n\ 00072 ================================================================================\n\ 00073 MSG: turtlebot_block_manipulation/BlockDetectionActionGoal\n\ 00074 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00075 \n\ 00076 Header header\n\ 00077 actionlib_msgs/GoalID goal_id\n\ 00078 BlockDetectionGoal goal\n\ 00079 \n\ 00080 ================================================================================\n\ 00081 MSG: std_msgs/Header\n\ 00082 # Standard metadata for higher-level stamped data types.\n\ 00083 # This is generally used to communicate timestamped data \n\ 00084 # in a particular coordinate frame.\n\ 00085 # \n\ 00086 # sequence ID: consecutively increasing ID \n\ 00087 uint32 seq\n\ 00088 #Two-integer timestamp that is expressed as:\n\ 00089 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00090 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00091 # time-handling sugar is provided by the client library\n\ 00092 time stamp\n\ 00093 #Frame this data is associated with\n\ 00094 # 0: no frame\n\ 00095 # 1: global frame\n\ 00096 string frame_id\n\ 00097 \n\ 00098 ================================================================================\n\ 00099 MSG: actionlib_msgs/GoalID\n\ 00100 # The stamp should store the time at which this goal was requested.\n\ 00101 # It is used by an action server when it tries to preempt all\n\ 00102 # goals that were requested before a certain time\n\ 00103 time stamp\n\ 00104 \n\ 00105 # The id provides a way to associate feedback and\n\ 00106 # result message with specific goal requests. The id\n\ 00107 # specified must be unique.\n\ 00108 string id\n\ 00109 \n\ 00110 \n\ 00111 ================================================================================\n\ 00112 MSG: turtlebot_block_manipulation/BlockDetectionGoal\n\ 00113 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00114 #goal definition\n\ 00115 string frame\n\ 00116 float32 table_height\n\ 00117 float32 block_size\n\ 00118 \n\ 00119 ================================================================================\n\ 00120 MSG: turtlebot_block_manipulation/BlockDetectionActionResult\n\ 00121 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00122 \n\ 00123 Header header\n\ 00124 actionlib_msgs/GoalStatus status\n\ 00125 BlockDetectionResult result\n\ 00126 \n\ 00127 ================================================================================\n\ 00128 MSG: actionlib_msgs/GoalStatus\n\ 00129 GoalID goal_id\n\ 00130 uint8 status\n\ 00131 uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\ 00132 uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\ 00133 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\ 00134 # and has since completed its execution (Terminal State)\n\ 00135 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\ 00136 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\ 00137 # to some failure (Terminal State)\n\ 00138 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\ 00139 # because the goal was unattainable or invalid (Terminal State)\n\ 00140 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\ 00141 # and has not yet completed execution\n\ 00142 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\ 00143 # but the action server has not yet confirmed that the goal is canceled\n\ 00144 uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\ 00145 # and was successfully cancelled (Terminal State)\n\ 00146 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\ 00147 # sent over the wire by an action server\n\ 00148 \n\ 00149 #Allow for the user to associate a string with GoalStatus for debugging\n\ 00150 string text\n\ 00151 \n\ 00152 \n\ 00153 ================================================================================\n\ 00154 MSG: turtlebot_block_manipulation/BlockDetectionResult\n\ 00155 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00156 #result definition\n\ 00157 geometry_msgs/PoseArray blocks\n\ 00158 \n\ 00159 ================================================================================\n\ 00160 MSG: geometry_msgs/PoseArray\n\ 00161 # An array of poses with a header for global reference.\n\ 00162 \n\ 00163 Header header\n\ 00164 \n\ 00165 geometry_msgs/Pose[] poses\n\ 00166 \n\ 00167 ================================================================================\n\ 00168 MSG: geometry_msgs/Pose\n\ 00169 # A representation of pose in free space, composed of postion and orientation. \n\ 00170 Point position\n\ 00171 Quaternion orientation\n\ 00172 \n\ 00173 ================================================================================\n\ 00174 MSG: geometry_msgs/Point\n\ 00175 # This contains the position of a point in free space\n\ 00176 float64 x\n\ 00177 float64 y\n\ 00178 float64 z\n\ 00179 \n\ 00180 ================================================================================\n\ 00181 MSG: geometry_msgs/Quaternion\n\ 00182 # This represents an orientation in free space in quaternion form.\n\ 00183 \n\ 00184 float64 x\n\ 00185 float64 y\n\ 00186 float64 z\n\ 00187 float64 w\n\ 00188 \n\ 00189 ================================================================================\n\ 00190 MSG: turtlebot_block_manipulation/BlockDetectionActionFeedback\n\ 00191 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00192 \n\ 00193 Header header\n\ 00194 actionlib_msgs/GoalStatus status\n\ 00195 BlockDetectionFeedback feedback\n\ 00196 \n\ 00197 ================================================================================\n\ 00198 MSG: turtlebot_block_manipulation/BlockDetectionFeedback\n\ 00199 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00200 #feedback\n\ 00201 \n\ 00202 \n\ 00203 "; } 00204 public: 00205 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00206 00207 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00208 00209 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00210 { 00211 ros::serialization::OStream stream(write_ptr, 1000000000); 00212 ros::serialization::serialize(stream, action_goal); 00213 ros::serialization::serialize(stream, action_result); 00214 ros::serialization::serialize(stream, action_feedback); 00215 return stream.getData(); 00216 } 00217 00218 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00219 { 00220 ros::serialization::IStream stream(read_ptr, 1000000000); 00221 ros::serialization::deserialize(stream, action_goal); 00222 ros::serialization::deserialize(stream, action_result); 00223 ros::serialization::deserialize(stream, action_feedback); 00224 return stream.getData(); 00225 } 00226 00227 ROS_DEPRECATED virtual uint32_t serializationLength() const 00228 { 00229 uint32_t size = 0; 00230 size += ros::serialization::serializationLength(action_goal); 00231 size += ros::serialization::serializationLength(action_result); 00232 size += ros::serialization::serializationLength(action_feedback); 00233 return size; 00234 } 00235 00236 typedef boost::shared_ptr< ::turtlebot_block_manipulation::BlockDetectionAction_<ContainerAllocator> > Ptr; 00237 typedef boost::shared_ptr< ::turtlebot_block_manipulation::BlockDetectionAction_<ContainerAllocator> const> ConstPtr; 00238 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00239 }; // struct BlockDetectionAction 00240 typedef ::turtlebot_block_manipulation::BlockDetectionAction_<std::allocator<void> > BlockDetectionAction; 00241 00242 typedef boost::shared_ptr< ::turtlebot_block_manipulation::BlockDetectionAction> BlockDetectionActionPtr; 00243 typedef boost::shared_ptr< ::turtlebot_block_manipulation::BlockDetectionAction const> BlockDetectionActionConstPtr; 00244 00245 00246 template<typename ContainerAllocator> 00247 std::ostream& operator<<(std::ostream& s, const ::turtlebot_block_manipulation::BlockDetectionAction_<ContainerAllocator> & v) 00248 { 00249 ros::message_operations::Printer< ::turtlebot_block_manipulation::BlockDetectionAction_<ContainerAllocator> >::stream(s, "", v); 00250 return s;} 00251 00252 } // namespace turtlebot_block_manipulation 00253 00254 namespace ros 00255 { 00256 namespace message_traits 00257 { 00258 template<class ContainerAllocator> struct IsMessage< ::turtlebot_block_manipulation::BlockDetectionAction_<ContainerAllocator> > : public TrueType {}; 00259 template<class ContainerAllocator> struct IsMessage< ::turtlebot_block_manipulation::BlockDetectionAction_<ContainerAllocator> const> : public TrueType {}; 00260 template<class ContainerAllocator> 00261 struct MD5Sum< ::turtlebot_block_manipulation::BlockDetectionAction_<ContainerAllocator> > { 00262 static const char* value() 00263 { 00264 return "32b318b57a8d5ec852090b7f3b7885e0"; 00265 } 00266 00267 static const char* value(const ::turtlebot_block_manipulation::BlockDetectionAction_<ContainerAllocator> &) { return value(); } 00268 static const uint64_t static_value1 = 0x32b318b57a8d5ec8ULL; 00269 static const uint64_t static_value2 = 0x52090b7f3b7885e0ULL; 00270 }; 00271 00272 template<class ContainerAllocator> 00273 struct DataType< ::turtlebot_block_manipulation::BlockDetectionAction_<ContainerAllocator> > { 00274 static const char* value() 00275 { 00276 return "turtlebot_block_manipulation/BlockDetectionAction"; 00277 } 00278 00279 static const char* value(const ::turtlebot_block_manipulation::BlockDetectionAction_<ContainerAllocator> &) { return value(); } 00280 }; 00281 00282 template<class ContainerAllocator> 00283 struct Definition< ::turtlebot_block_manipulation::BlockDetectionAction_<ContainerAllocator> > { 00284 static const char* value() 00285 { 00286 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00287 \n\ 00288 BlockDetectionActionGoal action_goal\n\ 00289 BlockDetectionActionResult action_result\n\ 00290 BlockDetectionActionFeedback action_feedback\n\ 00291 \n\ 00292 ================================================================================\n\ 00293 MSG: turtlebot_block_manipulation/BlockDetectionActionGoal\n\ 00294 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00295 \n\ 00296 Header header\n\ 00297 actionlib_msgs/GoalID goal_id\n\ 00298 BlockDetectionGoal goal\n\ 00299 \n\ 00300 ================================================================================\n\ 00301 MSG: std_msgs/Header\n\ 00302 # Standard metadata for higher-level stamped data types.\n\ 00303 # This is generally used to communicate timestamped data \n\ 00304 # in a particular coordinate frame.\n\ 00305 # \n\ 00306 # sequence ID: consecutively increasing ID \n\ 00307 uint32 seq\n\ 00308 #Two-integer timestamp that is expressed as:\n\ 00309 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00310 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00311 # time-handling sugar is provided by the client library\n\ 00312 time stamp\n\ 00313 #Frame this data is associated with\n\ 00314 # 0: no frame\n\ 00315 # 1: global frame\n\ 00316 string frame_id\n\ 00317 \n\ 00318 ================================================================================\n\ 00319 MSG: actionlib_msgs/GoalID\n\ 00320 # The stamp should store the time at which this goal was requested.\n\ 00321 # It is used by an action server when it tries to preempt all\n\ 00322 # goals that were requested before a certain time\n\ 00323 time stamp\n\ 00324 \n\ 00325 # The id provides a way to associate feedback and\n\ 00326 # result message with specific goal requests. The id\n\ 00327 # specified must be unique.\n\ 00328 string id\n\ 00329 \n\ 00330 \n\ 00331 ================================================================================\n\ 00332 MSG: turtlebot_block_manipulation/BlockDetectionGoal\n\ 00333 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00334 #goal definition\n\ 00335 string frame\n\ 00336 float32 table_height\n\ 00337 float32 block_size\n\ 00338 \n\ 00339 ================================================================================\n\ 00340 MSG: turtlebot_block_manipulation/BlockDetectionActionResult\n\ 00341 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00342 \n\ 00343 Header header\n\ 00344 actionlib_msgs/GoalStatus status\n\ 00345 BlockDetectionResult result\n\ 00346 \n\ 00347 ================================================================================\n\ 00348 MSG: actionlib_msgs/GoalStatus\n\ 00349 GoalID goal_id\n\ 00350 uint8 status\n\ 00351 uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\ 00352 uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\ 00353 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\ 00354 # and has since completed its execution (Terminal State)\n\ 00355 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\ 00356 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\ 00357 # to some failure (Terminal State)\n\ 00358 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\ 00359 # because the goal was unattainable or invalid (Terminal State)\n\ 00360 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\ 00361 # and has not yet completed execution\n\ 00362 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\ 00363 # but the action server has not yet confirmed that the goal is canceled\n\ 00364 uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\ 00365 # and was successfully cancelled (Terminal State)\n\ 00366 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\ 00367 # sent over the wire by an action server\n\ 00368 \n\ 00369 #Allow for the user to associate a string with GoalStatus for debugging\n\ 00370 string text\n\ 00371 \n\ 00372 \n\ 00373 ================================================================================\n\ 00374 MSG: turtlebot_block_manipulation/BlockDetectionResult\n\ 00375 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00376 #result definition\n\ 00377 geometry_msgs/PoseArray blocks\n\ 00378 \n\ 00379 ================================================================================\n\ 00380 MSG: geometry_msgs/PoseArray\n\ 00381 # An array of poses with a header for global reference.\n\ 00382 \n\ 00383 Header header\n\ 00384 \n\ 00385 geometry_msgs/Pose[] poses\n\ 00386 \n\ 00387 ================================================================================\n\ 00388 MSG: geometry_msgs/Pose\n\ 00389 # A representation of pose in free space, composed of postion and orientation. \n\ 00390 Point position\n\ 00391 Quaternion orientation\n\ 00392 \n\ 00393 ================================================================================\n\ 00394 MSG: geometry_msgs/Point\n\ 00395 # This contains the position of a point in free space\n\ 00396 float64 x\n\ 00397 float64 y\n\ 00398 float64 z\n\ 00399 \n\ 00400 ================================================================================\n\ 00401 MSG: geometry_msgs/Quaternion\n\ 00402 # This represents an orientation in free space in quaternion form.\n\ 00403 \n\ 00404 float64 x\n\ 00405 float64 y\n\ 00406 float64 z\n\ 00407 float64 w\n\ 00408 \n\ 00409 ================================================================================\n\ 00410 MSG: turtlebot_block_manipulation/BlockDetectionActionFeedback\n\ 00411 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00412 \n\ 00413 Header header\n\ 00414 actionlib_msgs/GoalStatus status\n\ 00415 BlockDetectionFeedback feedback\n\ 00416 \n\ 00417 ================================================================================\n\ 00418 MSG: turtlebot_block_manipulation/BlockDetectionFeedback\n\ 00419 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00420 #feedback\n\ 00421 \n\ 00422 \n\ 00423 "; 00424 } 00425 00426 static const char* value(const ::turtlebot_block_manipulation::BlockDetectionAction_<ContainerAllocator> &) { return value(); } 00427 }; 00428 00429 } // namespace message_traits 00430 } // namespace ros 00431 00432 namespace ros 00433 { 00434 namespace serialization 00435 { 00436 00437 template<class ContainerAllocator> struct Serializer< ::turtlebot_block_manipulation::BlockDetectionAction_<ContainerAllocator> > 00438 { 00439 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00440 { 00441 stream.next(m.action_goal); 00442 stream.next(m.action_result); 00443 stream.next(m.action_feedback); 00444 } 00445 00446 ROS_DECLARE_ALLINONE_SERIALIZER; 00447 }; // struct BlockDetectionAction_ 00448 } // namespace serialization 00449 } // namespace ros 00450 00451 namespace ros 00452 { 00453 namespace message_operations 00454 { 00455 00456 template<class ContainerAllocator> 00457 struct Printer< ::turtlebot_block_manipulation::BlockDetectionAction_<ContainerAllocator> > 00458 { 00459 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::turtlebot_block_manipulation::BlockDetectionAction_<ContainerAllocator> & v) 00460 { 00461 s << indent << "action_goal: "; 00462 s << std::endl; 00463 Printer< ::turtlebot_block_manipulation::BlockDetectionActionGoal_<ContainerAllocator> >::stream(s, indent + " ", v.action_goal); 00464 s << indent << "action_result: "; 00465 s << std::endl; 00466 Printer< ::turtlebot_block_manipulation::BlockDetectionActionResult_<ContainerAllocator> >::stream(s, indent + " ", v.action_result); 00467 s << indent << "action_feedback: "; 00468 s << std::endl; 00469 Printer< ::turtlebot_block_manipulation::BlockDetectionActionFeedback_<ContainerAllocator> >::stream(s, indent + " ", v.action_feedback); 00470 } 00471 }; 00472 00473 00474 } // namespace message_operations 00475 } // namespace ros 00476 00477 #endif // TURTLEBOT_BLOCK_MANIPULATION_MESSAGE_BLOCKDETECTIONACTION_H 00478