00001
00002 #ifndef KIDNAPPED_ROBOT_MESSAGE_MATCHREQUEST_H
00003 #define KIDNAPPED_ROBOT_MESSAGE_MATCHREQUEST_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
00014 namespace kidnapped_robot
00015 {
00016 template <class ContainerAllocator>
00017 struct MatchRequest_ : public ros::Message
00018 {
00019 typedef MatchRequest_<ContainerAllocator> Type;
00020
00021 MatchRequest_()
00022 : stamp()
00023 {
00024 }
00025
00026 MatchRequest_(const ContainerAllocator& _alloc)
00027 : stamp()
00028 {
00029 }
00030
00031 typedef ros::Time _stamp_type;
00032 ros::Time stamp;
00033
00034
00035 private:
00036 static const char* __s_getDataType_() { return "kidnapped_robot/MatchRequest"; }
00037 public:
00038 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00039
00040 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00041
00042 private:
00043 static const char* __s_getMD5Sum_() { return "84d365d08d5fc49dde870daba1c7992c"; }
00044 public:
00045 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00046
00047 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00048
00049 private:
00050 static const char* __s_getMessageDefinition_() { return "time stamp # Time stamp of stereo pair to match against the database\n\
00051 \n\
00052 "; }
00053 public:
00054 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00055
00056 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00057
00058 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00059 {
00060 ros::serialization::OStream stream(write_ptr, 1000000000);
00061 ros::serialization::serialize(stream, stamp);
00062 return stream.getData();
00063 }
00064
00065 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00066 {
00067 ros::serialization::IStream stream(read_ptr, 1000000000);
00068 ros::serialization::deserialize(stream, stamp);
00069 return stream.getData();
00070 }
00071
00072 ROS_DEPRECATED virtual uint32_t serializationLength() const
00073 {
00074 uint32_t size = 0;
00075 size += ros::serialization::serializationLength(stamp);
00076 return size;
00077 }
00078
00079 typedef boost::shared_ptr< ::kidnapped_robot::MatchRequest_<ContainerAllocator> > Ptr;
00080 typedef boost::shared_ptr< ::kidnapped_robot::MatchRequest_<ContainerAllocator> const> ConstPtr;
00081 };
00082 typedef ::kidnapped_robot::MatchRequest_<std::allocator<void> > MatchRequest;
00083
00084 typedef boost::shared_ptr< ::kidnapped_robot::MatchRequest> MatchRequestPtr;
00085 typedef boost::shared_ptr< ::kidnapped_robot::MatchRequest const> MatchRequestConstPtr;
00086
00087
00088 template<typename ContainerAllocator>
00089 std::ostream& operator<<(std::ostream& s, const ::kidnapped_robot::MatchRequest_<ContainerAllocator> & v)
00090 {
00091 ros::message_operations::Printer< ::kidnapped_robot::MatchRequest_<ContainerAllocator> >::stream(s, "", v);
00092 return s;}
00093
00094 }
00095
00096 namespace ros
00097 {
00098 namespace message_traits
00099 {
00100 template<class ContainerAllocator>
00101 struct MD5Sum< ::kidnapped_robot::MatchRequest_<ContainerAllocator> > {
00102 static const char* value()
00103 {
00104 return "84d365d08d5fc49dde870daba1c7992c";
00105 }
00106
00107 static const char* value(const ::kidnapped_robot::MatchRequest_<ContainerAllocator> &) { return value(); }
00108 static const uint64_t static_value1 = 0x84d365d08d5fc49dULL;
00109 static const uint64_t static_value2 = 0xde870daba1c7992cULL;
00110 };
00111
00112 template<class ContainerAllocator>
00113 struct DataType< ::kidnapped_robot::MatchRequest_<ContainerAllocator> > {
00114 static const char* value()
00115 {
00116 return "kidnapped_robot/MatchRequest";
00117 }
00118
00119 static const char* value(const ::kidnapped_robot::MatchRequest_<ContainerAllocator> &) { return value(); }
00120 };
00121
00122 template<class ContainerAllocator>
00123 struct Definition< ::kidnapped_robot::MatchRequest_<ContainerAllocator> > {
00124 static const char* value()
00125 {
00126 return "time stamp # Time stamp of stereo pair to match against the database\n\
00127 \n\
00128 ";
00129 }
00130
00131 static const char* value(const ::kidnapped_robot::MatchRequest_<ContainerAllocator> &) { return value(); }
00132 };
00133
00134 template<class ContainerAllocator> struct IsFixedSize< ::kidnapped_robot::MatchRequest_<ContainerAllocator> > : public TrueType {};
00135 }
00136 }
00137
00138 namespace ros
00139 {
00140 namespace serialization
00141 {
00142
00143 template<class ContainerAllocator> struct Serializer< ::kidnapped_robot::MatchRequest_<ContainerAllocator> >
00144 {
00145 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00146 {
00147 stream.next(m.stamp);
00148 }
00149
00150 ROS_DECLARE_ALLINONE_SERIALIZER;
00151 };
00152 }
00153 }
00154
00155 namespace ros
00156 {
00157 namespace message_operations
00158 {
00159
00160 template<class ContainerAllocator>
00161 struct Printer< ::kidnapped_robot::MatchRequest_<ContainerAllocator> >
00162 {
00163 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::kidnapped_robot::MatchRequest_<ContainerAllocator> & v)
00164 {
00165 s << indent << "stamp: ";
00166 Printer<ros::Time>::stream(s, indent + " ", v.stamp);
00167 }
00168 };
00169
00170
00171 }
00172 }
00173
00174 #endif // KIDNAPPED_ROBOT_MESSAGE_MATCHREQUEST_H
00175