00001
00002 #ifndef DOOR_MSGS_MESSAGE_DOORACTION_H
00003 #define DOOR_MSGS_MESSAGE_DOORACTION_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 "door_msgs/DoorActionGoal.h"
00014 #include "door_msgs/DoorActionResult.h"
00015 #include "door_msgs/DoorActionFeedback.h"
00016
00017 namespace door_msgs
00018 {
00019 template <class ContainerAllocator>
00020 struct DoorAction_ : public ros::Message
00021 {
00022 typedef DoorAction_<ContainerAllocator> Type;
00023
00024 DoorAction_()
00025 : action_goal()
00026 , action_result()
00027 , action_feedback()
00028 {
00029 }
00030
00031 DoorAction_(const ContainerAllocator& _alloc)
00032 : action_goal(_alloc)
00033 , action_result(_alloc)
00034 , action_feedback(_alloc)
00035 {
00036 }
00037
00038 typedef ::door_msgs::DoorActionGoal_<ContainerAllocator> _action_goal_type;
00039 ::door_msgs::DoorActionGoal_<ContainerAllocator> action_goal;
00040
00041 typedef ::door_msgs::DoorActionResult_<ContainerAllocator> _action_result_type;
00042 ::door_msgs::DoorActionResult_<ContainerAllocator> action_result;
00043
00044 typedef ::door_msgs::DoorActionFeedback_<ContainerAllocator> _action_feedback_type;
00045 ::door_msgs::DoorActionFeedback_<ContainerAllocator> action_feedback;
00046
00047
00048 private:
00049 static const char* __s_getDataType_() { return "door_msgs/DoorAction"; }
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 "09daec85681f57839e2a9dcef0a9b828"; }
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 DoorActionGoal action_goal\n\
00066 DoorActionResult action_result\n\
00067 DoorActionFeedback action_feedback\n\
00068 \n\
00069 ================================================================================\n\
00070 MSG: door_msgs/DoorActionGoal\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 DoorGoal 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: door_msgs/DoorGoal\n\
00110 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00111 # goal\n\
00112 door_msgs/Door door\n\
00113 \n\
00114 ================================================================================\n\
00115 MSG: door_msgs/Door\n\
00116 Header header\n\
00117 geometry_msgs/Point32 frame_p1 ## position of the door frame\n\
00118 geometry_msgs/Point32 frame_p2 ## position of the door frame\n\
00119 geometry_msgs/Point32 door_p1 ## Ground plane projection of a point on the plane of the door \n\
00120 geometry_msgs/Point32 door_p2 ## Ground plane projection of a point on the plane of the door\n\
00121 geometry_msgs/Point32 handle ## Position of the door handle\n\
00122 float32 height ## Height of the door\n\
00123 \n\
00124 int32 UNKNOWN=0\n\
00125 \n\
00126 int32 HINGE_P1=1\n\
00127 int32 HINGE_P2=2\n\
00128 int32 hinge \n\
00129 \n\
00130 int32 ROT_DIR_CLOCKWISE=1\n\
00131 int32 ROT_DIR_COUNTERCLOCKWISE=2\n\
00132 int32 rot_dir \n\
00133 \n\
00134 int32 LOCKED=1\n\
00135 int32 LATCHED=2\n\
00136 int32 UNLATCHED=3\n\
00137 int32 latch_state \n\
00138 \n\
00139 geometry_msgs/Vector3 travel_dir ## vector pointing in the direction the robot is going to travel through the door\n\
00140 float32 weight ## @Sachin: what do we use this for?\n\
00141 \n\
00142 \n\
00143 \n\
00144 ================================================================================\n\
00145 MSG: geometry_msgs/Point32\n\
00146 # This contains the position of a point in free space(with 32 bits of precision).\n\
00147 # It is recommeded to use Point wherever possible instead of Point32. \n\
00148 # \n\
00149 # This recommendation is to promote interoperability. \n\
00150 #\n\
00151 # This message is designed to take up less space when sending\n\
00152 # lots of points at once, as in the case of a PointCloud. \n\
00153 \n\
00154 float32 x\n\
00155 float32 y\n\
00156 float32 z\n\
00157 ================================================================================\n\
00158 MSG: geometry_msgs/Vector3\n\
00159 # This represents a vector in free space. \n\
00160 \n\
00161 float64 x\n\
00162 float64 y\n\
00163 float64 z\n\
00164 ================================================================================\n\
00165 MSG: door_msgs/DoorActionResult\n\
00166 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00167 \n\
00168 Header header\n\
00169 actionlib_msgs/GoalStatus status\n\
00170 DoorResult result\n\
00171 \n\
00172 ================================================================================\n\
00173 MSG: actionlib_msgs/GoalStatus\n\
00174 GoalID goal_id\n\
00175 uint8 status\n\
00176 uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\
00177 uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\
00178 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\
00179 # and has since completed its execution (Terminal State)\n\
00180 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\
00181 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\
00182 # to some failure (Terminal State)\n\
00183 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\
00184 # because the goal was unattainable or invalid (Terminal State)\n\
00185 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\
00186 # and has not yet completed execution\n\
00187 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\
00188 # but the action server has not yet confirmed that the goal is canceled\n\
00189 uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\
00190 # and was successfully cancelled (Terminal State)\n\
00191 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\
00192 # sent over the wire by an action server\n\
00193 \n\
00194 #Allow for the user to associate a string with GoalStatus for debugging\n\
00195 string text\n\
00196 \n\
00197 \n\
00198 ================================================================================\n\
00199 MSG: door_msgs/DoorResult\n\
00200 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00201 # result\n\
00202 door_msgs/Door door\n\
00203 \n\
00204 ================================================================================\n\
00205 MSG: door_msgs/DoorActionFeedback\n\
00206 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00207 \n\
00208 Header header\n\
00209 actionlib_msgs/GoalStatus status\n\
00210 DoorFeedback feedback\n\
00211 \n\
00212 ================================================================================\n\
00213 MSG: door_msgs/DoorFeedback\n\
00214 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00215 \n\
00216 \n\
00217 "; }
00218 public:
00219 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00220
00221 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00222
00223 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00224 {
00225 ros::serialization::OStream stream(write_ptr, 1000000000);
00226 ros::serialization::serialize(stream, action_goal);
00227 ros::serialization::serialize(stream, action_result);
00228 ros::serialization::serialize(stream, action_feedback);
00229 return stream.getData();
00230 }
00231
00232 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00233 {
00234 ros::serialization::IStream stream(read_ptr, 1000000000);
00235 ros::serialization::deserialize(stream, action_goal);
00236 ros::serialization::deserialize(stream, action_result);
00237 ros::serialization::deserialize(stream, action_feedback);
00238 return stream.getData();
00239 }
00240
00241 ROS_DEPRECATED virtual uint32_t serializationLength() const
00242 {
00243 uint32_t size = 0;
00244 size += ros::serialization::serializationLength(action_goal);
00245 size += ros::serialization::serializationLength(action_result);
00246 size += ros::serialization::serializationLength(action_feedback);
00247 return size;
00248 }
00249
00250 typedef boost::shared_ptr< ::door_msgs::DoorAction_<ContainerAllocator> > Ptr;
00251 typedef boost::shared_ptr< ::door_msgs::DoorAction_<ContainerAllocator> const> ConstPtr;
00252 };
00253 typedef ::door_msgs::DoorAction_<std::allocator<void> > DoorAction;
00254
00255 typedef boost::shared_ptr< ::door_msgs::DoorAction> DoorActionPtr;
00256 typedef boost::shared_ptr< ::door_msgs::DoorAction const> DoorActionConstPtr;
00257
00258
00259 template<typename ContainerAllocator>
00260 std::ostream& operator<<(std::ostream& s, const ::door_msgs::DoorAction_<ContainerAllocator> & v)
00261 {
00262 ros::message_operations::Printer< ::door_msgs::DoorAction_<ContainerAllocator> >::stream(s, "", v);
00263 return s;}
00264
00265 }
00266
00267 namespace ros
00268 {
00269 namespace message_traits
00270 {
00271 template<class ContainerAllocator>
00272 struct MD5Sum< ::door_msgs::DoorAction_<ContainerAllocator> > {
00273 static const char* value()
00274 {
00275 return "09daec85681f57839e2a9dcef0a9b828";
00276 }
00277
00278 static const char* value(const ::door_msgs::DoorAction_<ContainerAllocator> &) { return value(); }
00279 static const uint64_t static_value1 = 0x09daec85681f5783ULL;
00280 static const uint64_t static_value2 = 0x9e2a9dcef0a9b828ULL;
00281 };
00282
00283 template<class ContainerAllocator>
00284 struct DataType< ::door_msgs::DoorAction_<ContainerAllocator> > {
00285 static const char* value()
00286 {
00287 return "door_msgs/DoorAction";
00288 }
00289
00290 static const char* value(const ::door_msgs::DoorAction_<ContainerAllocator> &) { return value(); }
00291 };
00292
00293 template<class ContainerAllocator>
00294 struct Definition< ::door_msgs::DoorAction_<ContainerAllocator> > {
00295 static const char* value()
00296 {
00297 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00298 \n\
00299 DoorActionGoal action_goal\n\
00300 DoorActionResult action_result\n\
00301 DoorActionFeedback action_feedback\n\
00302 \n\
00303 ================================================================================\n\
00304 MSG: door_msgs/DoorActionGoal\n\
00305 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00306 \n\
00307 Header header\n\
00308 actionlib_msgs/GoalID goal_id\n\
00309 DoorGoal goal\n\
00310 \n\
00311 ================================================================================\n\
00312 MSG: std_msgs/Header\n\
00313 # Standard metadata for higher-level stamped data types.\n\
00314 # This is generally used to communicate timestamped data \n\
00315 # in a particular coordinate frame.\n\
00316 # \n\
00317 # sequence ID: consecutively increasing ID \n\
00318 uint32 seq\n\
00319 #Two-integer timestamp that is expressed as:\n\
00320 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00321 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00322 # time-handling sugar is provided by the client library\n\
00323 time stamp\n\
00324 #Frame this data is associated with\n\
00325 # 0: no frame\n\
00326 # 1: global frame\n\
00327 string frame_id\n\
00328 \n\
00329 ================================================================================\n\
00330 MSG: actionlib_msgs/GoalID\n\
00331 # The stamp should store the time at which this goal was requested.\n\
00332 # It is used by an action server when it tries to preempt all\n\
00333 # goals that were requested before a certain time\n\
00334 time stamp\n\
00335 \n\
00336 # The id provides a way to associate feedback and\n\
00337 # result message with specific goal requests. The id\n\
00338 # specified must be unique.\n\
00339 string id\n\
00340 \n\
00341 \n\
00342 ================================================================================\n\
00343 MSG: door_msgs/DoorGoal\n\
00344 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00345 # goal\n\
00346 door_msgs/Door door\n\
00347 \n\
00348 ================================================================================\n\
00349 MSG: door_msgs/Door\n\
00350 Header header\n\
00351 geometry_msgs/Point32 frame_p1 ## position of the door frame\n\
00352 geometry_msgs/Point32 frame_p2 ## position of the door frame\n\
00353 geometry_msgs/Point32 door_p1 ## Ground plane projection of a point on the plane of the door \n\
00354 geometry_msgs/Point32 door_p2 ## Ground plane projection of a point on the plane of the door\n\
00355 geometry_msgs/Point32 handle ## Position of the door handle\n\
00356 float32 height ## Height of the door\n\
00357 \n\
00358 int32 UNKNOWN=0\n\
00359 \n\
00360 int32 HINGE_P1=1\n\
00361 int32 HINGE_P2=2\n\
00362 int32 hinge \n\
00363 \n\
00364 int32 ROT_DIR_CLOCKWISE=1\n\
00365 int32 ROT_DIR_COUNTERCLOCKWISE=2\n\
00366 int32 rot_dir \n\
00367 \n\
00368 int32 LOCKED=1\n\
00369 int32 LATCHED=2\n\
00370 int32 UNLATCHED=3\n\
00371 int32 latch_state \n\
00372 \n\
00373 geometry_msgs/Vector3 travel_dir ## vector pointing in the direction the robot is going to travel through the door\n\
00374 float32 weight ## @Sachin: what do we use this for?\n\
00375 \n\
00376 \n\
00377 \n\
00378 ================================================================================\n\
00379 MSG: geometry_msgs/Point32\n\
00380 # This contains the position of a point in free space(with 32 bits of precision).\n\
00381 # It is recommeded to use Point wherever possible instead of Point32. \n\
00382 # \n\
00383 # This recommendation is to promote interoperability. \n\
00384 #\n\
00385 # This message is designed to take up less space when sending\n\
00386 # lots of points at once, as in the case of a PointCloud. \n\
00387 \n\
00388 float32 x\n\
00389 float32 y\n\
00390 float32 z\n\
00391 ================================================================================\n\
00392 MSG: geometry_msgs/Vector3\n\
00393 # This represents a vector in free space. \n\
00394 \n\
00395 float64 x\n\
00396 float64 y\n\
00397 float64 z\n\
00398 ================================================================================\n\
00399 MSG: door_msgs/DoorActionResult\n\
00400 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00401 \n\
00402 Header header\n\
00403 actionlib_msgs/GoalStatus status\n\
00404 DoorResult result\n\
00405 \n\
00406 ================================================================================\n\
00407 MSG: actionlib_msgs/GoalStatus\n\
00408 GoalID goal_id\n\
00409 uint8 status\n\
00410 uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\
00411 uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\
00412 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\
00413 # and has since completed its execution (Terminal State)\n\
00414 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\
00415 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\
00416 # to some failure (Terminal State)\n\
00417 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\
00418 # because the goal was unattainable or invalid (Terminal State)\n\
00419 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\
00420 # and has not yet completed execution\n\
00421 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\
00422 # but the action server has not yet confirmed that the goal is canceled\n\
00423 uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\
00424 # and was successfully cancelled (Terminal State)\n\
00425 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\
00426 # sent over the wire by an action server\n\
00427 \n\
00428 #Allow for the user to associate a string with GoalStatus for debugging\n\
00429 string text\n\
00430 \n\
00431 \n\
00432 ================================================================================\n\
00433 MSG: door_msgs/DoorResult\n\
00434 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00435 # result\n\
00436 door_msgs/Door door\n\
00437 \n\
00438 ================================================================================\n\
00439 MSG: door_msgs/DoorActionFeedback\n\
00440 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00441 \n\
00442 Header header\n\
00443 actionlib_msgs/GoalStatus status\n\
00444 DoorFeedback feedback\n\
00445 \n\
00446 ================================================================================\n\
00447 MSG: door_msgs/DoorFeedback\n\
00448 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00449 \n\
00450 \n\
00451 ";
00452 }
00453
00454 static const char* value(const ::door_msgs::DoorAction_<ContainerAllocator> &) { return value(); }
00455 };
00456
00457 }
00458 }
00459
00460 namespace ros
00461 {
00462 namespace serialization
00463 {
00464
00465 template<class ContainerAllocator> struct Serializer< ::door_msgs::DoorAction_<ContainerAllocator> >
00466 {
00467 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00468 {
00469 stream.next(m.action_goal);
00470 stream.next(m.action_result);
00471 stream.next(m.action_feedback);
00472 }
00473
00474 ROS_DECLARE_ALLINONE_SERIALIZER;
00475 };
00476 }
00477 }
00478
00479 namespace ros
00480 {
00481 namespace message_operations
00482 {
00483
00484 template<class ContainerAllocator>
00485 struct Printer< ::door_msgs::DoorAction_<ContainerAllocator> >
00486 {
00487 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::door_msgs::DoorAction_<ContainerAllocator> & v)
00488 {
00489 s << indent << "action_goal: ";
00490 s << std::endl;
00491 Printer< ::door_msgs::DoorActionGoal_<ContainerAllocator> >::stream(s, indent + " ", v.action_goal);
00492 s << indent << "action_result: ";
00493 s << std::endl;
00494 Printer< ::door_msgs::DoorActionResult_<ContainerAllocator> >::stream(s, indent + " ", v.action_result);
00495 s << indent << "action_feedback: ";
00496 s << std::endl;
00497 Printer< ::door_msgs::DoorActionFeedback_<ContainerAllocator> >::stream(s, indent + " ", v.action_feedback);
00498 }
00499 };
00500
00501
00502 }
00503 }
00504
00505 #endif // DOOR_MSGS_MESSAGE_DOORACTION_H
00506