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