00001
00002 #ifndef KIDNAPPED_ROBOT_MESSAGE_MATCHRESULT_H
00003 #define KIDNAPPED_ROBOT_MESSAGE_MATCHRESULT_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 "geometry_msgs/Transform.h"
00014
00015 namespace kidnapped_robot
00016 {
00017 template <class ContainerAllocator>
00018 struct MatchResult_ : public ros::Message
00019 {
00020 typedef MatchResult_<ContainerAllocator> Type;
00021
00022 MatchResult_()
00023 : transform()
00024 , match_id(0)
00025 {
00026 }
00027
00028 MatchResult_(const ContainerAllocator& _alloc)
00029 : transform(_alloc)
00030 , match_id(0)
00031 {
00032 }
00033
00034 typedef ::geometry_msgs::Transform_<ContainerAllocator> _transform_type;
00035 ::geometry_msgs::Transform_<ContainerAllocator> transform;
00036
00037 typedef uint32_t _match_id_type;
00038 uint32_t match_id;
00039
00040
00041 private:
00042 static const char* __s_getDataType_() { return "kidnapped_robot/MatchResult"; }
00043 public:
00044 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00045
00046 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00047
00048 private:
00049 static const char* __s_getMD5Sum_() { return "3c16c949138ee087a73814f2c032b3d6"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00052
00053 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00054
00055 private:
00056 static const char* __s_getMessageDefinition_() { return "geometry_msgs/Transform transform\n\
00057 #uint32 request_id\n\
00058 uint32 match_id\n\
00059 \n\
00060 ================================================================================\n\
00061 MSG: geometry_msgs/Transform\n\
00062 # This represents the transform between two coordinate frames in free space.\n\
00063 \n\
00064 Vector3 translation\n\
00065 Quaternion rotation\n\
00066 \n\
00067 ================================================================================\n\
00068 MSG: geometry_msgs/Vector3\n\
00069 # This represents a vector in free space. \n\
00070 \n\
00071 float64 x\n\
00072 float64 y\n\
00073 float64 z\n\
00074 ================================================================================\n\
00075 MSG: geometry_msgs/Quaternion\n\
00076 # This represents an orientation in free space in quaternion form.\n\
00077 \n\
00078 float64 x\n\
00079 float64 y\n\
00080 float64 z\n\
00081 float64 w\n\
00082 \n\
00083 "; }
00084 public:
00085 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00086
00087 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00088
00089 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00090 {
00091 ros::serialization::OStream stream(write_ptr, 1000000000);
00092 ros::serialization::serialize(stream, transform);
00093 ros::serialization::serialize(stream, match_id);
00094 return stream.getData();
00095 }
00096
00097 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00098 {
00099 ros::serialization::IStream stream(read_ptr, 1000000000);
00100 ros::serialization::deserialize(stream, transform);
00101 ros::serialization::deserialize(stream, match_id);
00102 return stream.getData();
00103 }
00104
00105 ROS_DEPRECATED virtual uint32_t serializationLength() const
00106 {
00107 uint32_t size = 0;
00108 size += ros::serialization::serializationLength(transform);
00109 size += ros::serialization::serializationLength(match_id);
00110 return size;
00111 }
00112
00113 typedef boost::shared_ptr< ::kidnapped_robot::MatchResult_<ContainerAllocator> > Ptr;
00114 typedef boost::shared_ptr< ::kidnapped_robot::MatchResult_<ContainerAllocator> const> ConstPtr;
00115 };
00116 typedef ::kidnapped_robot::MatchResult_<std::allocator<void> > MatchResult;
00117
00118 typedef boost::shared_ptr< ::kidnapped_robot::MatchResult> MatchResultPtr;
00119 typedef boost::shared_ptr< ::kidnapped_robot::MatchResult const> MatchResultConstPtr;
00120
00121
00122 template<typename ContainerAllocator>
00123 std::ostream& operator<<(std::ostream& s, const ::kidnapped_robot::MatchResult_<ContainerAllocator> & v)
00124 {
00125 ros::message_operations::Printer< ::kidnapped_robot::MatchResult_<ContainerAllocator> >::stream(s, "", v);
00126 return s;}
00127
00128 }
00129
00130 namespace ros
00131 {
00132 namespace message_traits
00133 {
00134 template<class ContainerAllocator>
00135 struct MD5Sum< ::kidnapped_robot::MatchResult_<ContainerAllocator> > {
00136 static const char* value()
00137 {
00138 return "3c16c949138ee087a73814f2c032b3d6";
00139 }
00140
00141 static const char* value(const ::kidnapped_robot::MatchResult_<ContainerAllocator> &) { return value(); }
00142 static const uint64_t static_value1 = 0x3c16c949138ee087ULL;
00143 static const uint64_t static_value2 = 0xa73814f2c032b3d6ULL;
00144 };
00145
00146 template<class ContainerAllocator>
00147 struct DataType< ::kidnapped_robot::MatchResult_<ContainerAllocator> > {
00148 static const char* value()
00149 {
00150 return "kidnapped_robot/MatchResult";
00151 }
00152
00153 static const char* value(const ::kidnapped_robot::MatchResult_<ContainerAllocator> &) { return value(); }
00154 };
00155
00156 template<class ContainerAllocator>
00157 struct Definition< ::kidnapped_robot::MatchResult_<ContainerAllocator> > {
00158 static const char* value()
00159 {
00160 return "geometry_msgs/Transform transform\n\
00161 #uint32 request_id\n\
00162 uint32 match_id\n\
00163 \n\
00164 ================================================================================\n\
00165 MSG: geometry_msgs/Transform\n\
00166 # This represents the transform between two coordinate frames in free space.\n\
00167 \n\
00168 Vector3 translation\n\
00169 Quaternion rotation\n\
00170 \n\
00171 ================================================================================\n\
00172 MSG: geometry_msgs/Vector3\n\
00173 # This represents a vector in free space. \n\
00174 \n\
00175 float64 x\n\
00176 float64 y\n\
00177 float64 z\n\
00178 ================================================================================\n\
00179 MSG: geometry_msgs/Quaternion\n\
00180 # This represents an orientation in free space in quaternion form.\n\
00181 \n\
00182 float64 x\n\
00183 float64 y\n\
00184 float64 z\n\
00185 float64 w\n\
00186 \n\
00187 ";
00188 }
00189
00190 static const char* value(const ::kidnapped_robot::MatchResult_<ContainerAllocator> &) { return value(); }
00191 };
00192
00193 template<class ContainerAllocator> struct IsFixedSize< ::kidnapped_robot::MatchResult_<ContainerAllocator> > : public TrueType {};
00194 }
00195 }
00196
00197 namespace ros
00198 {
00199 namespace serialization
00200 {
00201
00202 template<class ContainerAllocator> struct Serializer< ::kidnapped_robot::MatchResult_<ContainerAllocator> >
00203 {
00204 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00205 {
00206 stream.next(m.transform);
00207 stream.next(m.match_id);
00208 }
00209
00210 ROS_DECLARE_ALLINONE_SERIALIZER;
00211 };
00212 }
00213 }
00214
00215 namespace ros
00216 {
00217 namespace message_operations
00218 {
00219
00220 template<class ContainerAllocator>
00221 struct Printer< ::kidnapped_robot::MatchResult_<ContainerAllocator> >
00222 {
00223 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::kidnapped_robot::MatchResult_<ContainerAllocator> & v)
00224 {
00225 s << indent << "transform: ";
00226 s << std::endl;
00227 Printer< ::geometry_msgs::Transform_<ContainerAllocator> >::stream(s, indent + " ", v.transform);
00228 s << indent << "match_id: ";
00229 Printer<uint32_t>::stream(s, indent + " ", v.match_id);
00230 }
00231 };
00232
00233
00234 }
00235 }
00236
00237 #endif // KIDNAPPED_ROBOT_MESSAGE_MATCHRESULT_H
00238