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