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