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