00001
00002 #ifndef DOOR_MSGS_MESSAGE_DOORRESULT_H
00003 #define DOOR_MSGS_MESSAGE_DOORRESULT_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/Door.h"
00014
00015 namespace door_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct DoorResult_ : public ros::Message
00019 {
00020 typedef DoorResult_<ContainerAllocator> Type;
00021
00022 DoorResult_()
00023 : door()
00024 {
00025 }
00026
00027 DoorResult_(const ContainerAllocator& _alloc)
00028 : door(_alloc)
00029 {
00030 }
00031
00032 typedef ::door_msgs::Door_<ContainerAllocator> _door_type;
00033 ::door_msgs::Door_<ContainerAllocator> door;
00034
00035
00036 private:
00037 static const char* __s_getDataType_() { return "door_msgs/DoorResult"; }
00038 public:
00039 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00040
00041 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00042
00043 private:
00044 static const char* __s_getMD5Sum_() { return "72afb754afb6ff619fa1a692675498c0"; }
00045 public:
00046 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00047
00048 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00049
00050 private:
00051 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00052 # result\n\
00053 door_msgs/Door door\n\
00054 \n\
00055 ================================================================================\n\
00056 MSG: door_msgs/Door\n\
00057 Header header\n\
00058 geometry_msgs/Point32 frame_p1 ## position of the door frame\n\
00059 geometry_msgs/Point32 frame_p2 ## position of the door frame\n\
00060 geometry_msgs/Point32 door_p1 ## Ground plane projection of a point on the plane of the door \n\
00061 geometry_msgs/Point32 door_p2 ## Ground plane projection of a point on the plane of the door\n\
00062 geometry_msgs/Point32 handle ## Position of the door handle\n\
00063 float32 height ## Height of the door\n\
00064 \n\
00065 int32 UNKNOWN=0\n\
00066 \n\
00067 int32 HINGE_P1=1\n\
00068 int32 HINGE_P2=2\n\
00069 int32 hinge \n\
00070 \n\
00071 int32 ROT_DIR_CLOCKWISE=1\n\
00072 int32 ROT_DIR_COUNTERCLOCKWISE=2\n\
00073 int32 rot_dir \n\
00074 \n\
00075 int32 LOCKED=1\n\
00076 int32 LATCHED=2\n\
00077 int32 UNLATCHED=3\n\
00078 int32 latch_state \n\
00079 \n\
00080 geometry_msgs/Vector3 travel_dir ## vector pointing in the direction the robot is going to travel through the door\n\
00081 float32 weight ## @Sachin: what do we use this for?\n\
00082 \n\
00083 \n\
00084 \n\
00085 ================================================================================\n\
00086 MSG: std_msgs/Header\n\
00087 # Standard metadata for higher-level stamped data types.\n\
00088 # This is generally used to communicate timestamped data \n\
00089 # in a particular coordinate frame.\n\
00090 # \n\
00091 # sequence ID: consecutively increasing ID \n\
00092 uint32 seq\n\
00093 #Two-integer timestamp that is expressed as:\n\
00094 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00095 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00096 # time-handling sugar is provided by the client library\n\
00097 time stamp\n\
00098 #Frame this data is associated with\n\
00099 # 0: no frame\n\
00100 # 1: global frame\n\
00101 string frame_id\n\
00102 \n\
00103 ================================================================================\n\
00104 MSG: geometry_msgs/Point32\n\
00105 # This contains the position of a point in free space(with 32 bits of precision).\n\
00106 # It is recommeded to use Point wherever possible instead of Point32. \n\
00107 # \n\
00108 # This recommendation is to promote interoperability. \n\
00109 #\n\
00110 # This message is designed to take up less space when sending\n\
00111 # lots of points at once, as in the case of a PointCloud. \n\
00112 \n\
00113 float32 x\n\
00114 float32 y\n\
00115 float32 z\n\
00116 ================================================================================\n\
00117 MSG: geometry_msgs/Vector3\n\
00118 # This represents a vector in free space. \n\
00119 \n\
00120 float64 x\n\
00121 float64 y\n\
00122 float64 z\n\
00123 "; }
00124 public:
00125 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00126
00127 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00128
00129 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00130 {
00131 ros::serialization::OStream stream(write_ptr, 1000000000);
00132 ros::serialization::serialize(stream, door);
00133 return stream.getData();
00134 }
00135
00136 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00137 {
00138 ros::serialization::IStream stream(read_ptr, 1000000000);
00139 ros::serialization::deserialize(stream, door);
00140 return stream.getData();
00141 }
00142
00143 ROS_DEPRECATED virtual uint32_t serializationLength() const
00144 {
00145 uint32_t size = 0;
00146 size += ros::serialization::serializationLength(door);
00147 return size;
00148 }
00149
00150 typedef boost::shared_ptr< ::door_msgs::DoorResult_<ContainerAllocator> > Ptr;
00151 typedef boost::shared_ptr< ::door_msgs::DoorResult_<ContainerAllocator> const> ConstPtr;
00152 };
00153 typedef ::door_msgs::DoorResult_<std::allocator<void> > DoorResult;
00154
00155 typedef boost::shared_ptr< ::door_msgs::DoorResult> DoorResultPtr;
00156 typedef boost::shared_ptr< ::door_msgs::DoorResult const> DoorResultConstPtr;
00157
00158
00159 template<typename ContainerAllocator>
00160 std::ostream& operator<<(std::ostream& s, const ::door_msgs::DoorResult_<ContainerAllocator> & v)
00161 {
00162 ros::message_operations::Printer< ::door_msgs::DoorResult_<ContainerAllocator> >::stream(s, "", v);
00163 return s;}
00164
00165 }
00166
00167 namespace ros
00168 {
00169 namespace message_traits
00170 {
00171 template<class ContainerAllocator>
00172 struct MD5Sum< ::door_msgs::DoorResult_<ContainerAllocator> > {
00173 static const char* value()
00174 {
00175 return "72afb754afb6ff619fa1a692675498c0";
00176 }
00177
00178 static const char* value(const ::door_msgs::DoorResult_<ContainerAllocator> &) { return value(); }
00179 static const uint64_t static_value1 = 0x72afb754afb6ff61ULL;
00180 static const uint64_t static_value2 = 0x9fa1a692675498c0ULL;
00181 };
00182
00183 template<class ContainerAllocator>
00184 struct DataType< ::door_msgs::DoorResult_<ContainerAllocator> > {
00185 static const char* value()
00186 {
00187 return "door_msgs/DoorResult";
00188 }
00189
00190 static const char* value(const ::door_msgs::DoorResult_<ContainerAllocator> &) { return value(); }
00191 };
00192
00193 template<class ContainerAllocator>
00194 struct Definition< ::door_msgs::DoorResult_<ContainerAllocator> > {
00195 static const char* value()
00196 {
00197 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00198 # result\n\
00199 door_msgs/Door door\n\
00200 \n\
00201 ================================================================================\n\
00202 MSG: door_msgs/Door\n\
00203 Header header\n\
00204 geometry_msgs/Point32 frame_p1 ## position of the door frame\n\
00205 geometry_msgs/Point32 frame_p2 ## position of the door frame\n\
00206 geometry_msgs/Point32 door_p1 ## Ground plane projection of a point on the plane of the door \n\
00207 geometry_msgs/Point32 door_p2 ## Ground plane projection of a point on the plane of the door\n\
00208 geometry_msgs/Point32 handle ## Position of the door handle\n\
00209 float32 height ## Height of the door\n\
00210 \n\
00211 int32 UNKNOWN=0\n\
00212 \n\
00213 int32 HINGE_P1=1\n\
00214 int32 HINGE_P2=2\n\
00215 int32 hinge \n\
00216 \n\
00217 int32 ROT_DIR_CLOCKWISE=1\n\
00218 int32 ROT_DIR_COUNTERCLOCKWISE=2\n\
00219 int32 rot_dir \n\
00220 \n\
00221 int32 LOCKED=1\n\
00222 int32 LATCHED=2\n\
00223 int32 UNLATCHED=3\n\
00224 int32 latch_state \n\
00225 \n\
00226 geometry_msgs/Vector3 travel_dir ## vector pointing in the direction the robot is going to travel through the door\n\
00227 float32 weight ## @Sachin: what do we use this for?\n\
00228 \n\
00229 \n\
00230 \n\
00231 ================================================================================\n\
00232 MSG: std_msgs/Header\n\
00233 # Standard metadata for higher-level stamped data types.\n\
00234 # This is generally used to communicate timestamped data \n\
00235 # in a particular coordinate frame.\n\
00236 # \n\
00237 # sequence ID: consecutively increasing ID \n\
00238 uint32 seq\n\
00239 #Two-integer timestamp that is expressed as:\n\
00240 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00241 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00242 # time-handling sugar is provided by the client library\n\
00243 time stamp\n\
00244 #Frame this data is associated with\n\
00245 # 0: no frame\n\
00246 # 1: global frame\n\
00247 string frame_id\n\
00248 \n\
00249 ================================================================================\n\
00250 MSG: geometry_msgs/Point32\n\
00251 # This contains the position of a point in free space(with 32 bits of precision).\n\
00252 # It is recommeded to use Point wherever possible instead of Point32. \n\
00253 # \n\
00254 # This recommendation is to promote interoperability. \n\
00255 #\n\
00256 # This message is designed to take up less space when sending\n\
00257 # lots of points at once, as in the case of a PointCloud. \n\
00258 \n\
00259 float32 x\n\
00260 float32 y\n\
00261 float32 z\n\
00262 ================================================================================\n\
00263 MSG: geometry_msgs/Vector3\n\
00264 # This represents a vector in free space. \n\
00265 \n\
00266 float64 x\n\
00267 float64 y\n\
00268 float64 z\n\
00269 ";
00270 }
00271
00272 static const char* value(const ::door_msgs::DoorResult_<ContainerAllocator> &) { return value(); }
00273 };
00274
00275 }
00276 }
00277
00278 namespace ros
00279 {
00280 namespace serialization
00281 {
00282
00283 template<class ContainerAllocator> struct Serializer< ::door_msgs::DoorResult_<ContainerAllocator> >
00284 {
00285 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00286 {
00287 stream.next(m.door);
00288 }
00289
00290 ROS_DECLARE_ALLINONE_SERIALIZER;
00291 };
00292 }
00293 }
00294
00295 namespace ros
00296 {
00297 namespace message_operations
00298 {
00299
00300 template<class ContainerAllocator>
00301 struct Printer< ::door_msgs::DoorResult_<ContainerAllocator> >
00302 {
00303 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::door_msgs::DoorResult_<ContainerAllocator> & v)
00304 {
00305 s << indent << "door: ";
00306 s << std::endl;
00307 Printer< ::door_msgs::Door_<ContainerAllocator> >::stream(s, indent + " ", v.door);
00308 }
00309 };
00310
00311
00312 }
00313 }
00314
00315 #endif // DOOR_MSGS_MESSAGE_DOORRESULT_H
00316