00001
00002 #ifndef GRAPH_MAPPING_MSGS_MESSAGE_EDGE_H
00003 #define GRAPH_MAPPING_MSGS_MESSAGE_EDGE_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/GraphConstraint.h"
00014
00015 namespace graph_mapping_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct Edge_ : public ros::Message
00019 {
00020 typedef Edge_<ContainerAllocator> Type;
00021
00022 Edge_()
00023 : id(0)
00024 , constraint()
00025 {
00026 }
00027
00028 Edge_(const ContainerAllocator& _alloc)
00029 : id(0)
00030 , constraint(_alloc)
00031 {
00032 }
00033
00034 typedef uint32_t _id_type;
00035 uint32_t id;
00036
00037 typedef ::graph_mapping_msgs::GraphConstraint_<ContainerAllocator> _constraint_type;
00038 ::graph_mapping_msgs::GraphConstraint_<ContainerAllocator> constraint;
00039
00040
00041 private:
00042 static const char* __s_getDataType_() { return "graph_mapping_msgs/Edge"; }
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 "97b6cfbd630e5afa43854c26c8e312a9"; }
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 "uint32 id\n\
00057 GraphConstraint constraint\n\
00058 \n\
00059 ================================================================================\n\
00060 MSG: graph_mapping_msgs/GraphConstraint\n\
00061 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, id);
00100 ros::serialization::serialize(stream, constraint);
00101 return stream.getData();
00102 }
00103
00104 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00105 {
00106 ros::serialization::IStream stream(read_ptr, 1000000000);
00107 ros::serialization::deserialize(stream, id);
00108 ros::serialization::deserialize(stream, constraint);
00109 return stream.getData();
00110 }
00111
00112 ROS_DEPRECATED virtual uint32_t serializationLength() const
00113 {
00114 uint32_t size = 0;
00115 size += ros::serialization::serializationLength(id);
00116 size += ros::serialization::serializationLength(constraint);
00117 return size;
00118 }
00119
00120 typedef boost::shared_ptr< ::graph_mapping_msgs::Edge_<ContainerAllocator> > Ptr;
00121 typedef boost::shared_ptr< ::graph_mapping_msgs::Edge_<ContainerAllocator> const> ConstPtr;
00122 };
00123 typedef ::graph_mapping_msgs::Edge_<std::allocator<void> > Edge;
00124
00125 typedef boost::shared_ptr< ::graph_mapping_msgs::Edge> EdgePtr;
00126 typedef boost::shared_ptr< ::graph_mapping_msgs::Edge const> EdgeConstPtr;
00127
00128
00129 template<typename ContainerAllocator>
00130 std::ostream& operator<<(std::ostream& s, const ::graph_mapping_msgs::Edge_<ContainerAllocator> & v)
00131 {
00132 ros::message_operations::Printer< ::graph_mapping_msgs::Edge_<ContainerAllocator> >::stream(s, "", v);
00133 return s;}
00134
00135 }
00136
00137 namespace ros
00138 {
00139 namespace message_traits
00140 {
00141 template<class ContainerAllocator>
00142 struct MD5Sum< ::graph_mapping_msgs::Edge_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "97b6cfbd630e5afa43854c26c8e312a9";
00146 }
00147
00148 static const char* value(const ::graph_mapping_msgs::Edge_<ContainerAllocator> &) { return value(); }
00149 static const uint64_t static_value1 = 0x97b6cfbd630e5afaULL;
00150 static const uint64_t static_value2 = 0x43854c26c8e312a9ULL;
00151 };
00152
00153 template<class ContainerAllocator>
00154 struct DataType< ::graph_mapping_msgs::Edge_<ContainerAllocator> > {
00155 static const char* value()
00156 {
00157 return "graph_mapping_msgs/Edge";
00158 }
00159
00160 static const char* value(const ::graph_mapping_msgs::Edge_<ContainerAllocator> &) { return value(); }
00161 };
00162
00163 template<class ContainerAllocator>
00164 struct Definition< ::graph_mapping_msgs::Edge_<ContainerAllocator> > {
00165 static const char* value()
00166 {
00167 return "uint32 id\n\
00168 GraphConstraint constraint\n\
00169 \n\
00170 ================================================================================\n\
00171 MSG: graph_mapping_msgs/GraphConstraint\n\
00172 uint32 src\n\
00173 uint32 dest\n\
00174 PoseWithPrecision constraint\n\
00175 ================================================================================\n\
00176 MSG: graph_mapping_msgs/PoseWithPrecision\n\
00177 geometry_msgs/Pose pose\n\
00178 float64[36] precision\n\
00179 ================================================================================\n\
00180 MSG: geometry_msgs/Pose\n\
00181 # A representation of pose in free space, composed of postion and orientation. \n\
00182 Point position\n\
00183 Quaternion orientation\n\
00184 \n\
00185 ================================================================================\n\
00186 MSG: geometry_msgs/Point\n\
00187 # This contains the position of a point in free space\n\
00188 float64 x\n\
00189 float64 y\n\
00190 float64 z\n\
00191 \n\
00192 ================================================================================\n\
00193 MSG: geometry_msgs/Quaternion\n\
00194 # This represents an orientation in free space in quaternion form.\n\
00195 \n\
00196 float64 x\n\
00197 float64 y\n\
00198 float64 z\n\
00199 float64 w\n\
00200 \n\
00201 ";
00202 }
00203
00204 static const char* value(const ::graph_mapping_msgs::Edge_<ContainerAllocator> &) { return value(); }
00205 };
00206
00207 template<class ContainerAllocator> struct IsFixedSize< ::graph_mapping_msgs::Edge_<ContainerAllocator> > : public TrueType {};
00208 }
00209 }
00210
00211 namespace ros
00212 {
00213 namespace serialization
00214 {
00215
00216 template<class ContainerAllocator> struct Serializer< ::graph_mapping_msgs::Edge_<ContainerAllocator> >
00217 {
00218 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00219 {
00220 stream.next(m.id);
00221 stream.next(m.constraint);
00222 }
00223
00224 ROS_DECLARE_ALLINONE_SERIALIZER;
00225 };
00226 }
00227 }
00228
00229 namespace ros
00230 {
00231 namespace message_operations
00232 {
00233
00234 template<class ContainerAllocator>
00235 struct Printer< ::graph_mapping_msgs::Edge_<ContainerAllocator> >
00236 {
00237 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::graph_mapping_msgs::Edge_<ContainerAllocator> & v)
00238 {
00239 s << indent << "id: ";
00240 Printer<uint32_t>::stream(s, indent + " ", v.id);
00241 s << indent << "constraint: ";
00242 s << std::endl;
00243 Printer< ::graph_mapping_msgs::GraphConstraint_<ContainerAllocator> >::stream(s, indent + " ", v.constraint);
00244 }
00245 };
00246
00247
00248 }
00249 }
00250
00251 #endif // GRAPH_MAPPING_MSGS_MESSAGE_EDGE_H
00252