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