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