00001
00002 #ifndef GRAPH_MAPPING_MSGS_MESSAGE_CONSTRAINTGRAPHMESSAGE_H
00003 #define GRAPH_MAPPING_MSGS_MESSAGE_CONSTRAINTGRAPHMESSAGE_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/Node.h"
00014 #include "graph_mapping_msgs/Edge.h"
00015
00016 namespace graph_mapping_msgs
00017 {
00018 template <class ContainerAllocator>
00019 struct ConstraintGraphMessage_ : public ros::Message
00020 {
00021 typedef ConstraintGraphMessage_<ContainerAllocator> Type;
00022
00023 ConstraintGraphMessage_()
00024 : nodes()
00025 , edges()
00026 {
00027 }
00028
00029 ConstraintGraphMessage_(const ContainerAllocator& _alloc)
00030 : nodes(_alloc)
00031 , edges(_alloc)
00032 {
00033 }
00034
00035 typedef std::vector< ::graph_mapping_msgs::Node_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::graph_mapping_msgs::Node_<ContainerAllocator> >::other > _nodes_type;
00036 std::vector< ::graph_mapping_msgs::Node_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::graph_mapping_msgs::Node_<ContainerAllocator> >::other > nodes;
00037
00038 typedef std::vector< ::graph_mapping_msgs::Edge_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::graph_mapping_msgs::Edge_<ContainerAllocator> >::other > _edges_type;
00039 std::vector< ::graph_mapping_msgs::Edge_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::graph_mapping_msgs::Edge_<ContainerAllocator> >::other > edges;
00040
00041
00042 ROS_DEPRECATED uint32_t get_nodes_size() const { return (uint32_t)nodes.size(); }
00043 ROS_DEPRECATED void set_nodes_size(uint32_t size) { nodes.resize((size_t)size); }
00044 ROS_DEPRECATED void get_nodes_vec(std::vector< ::graph_mapping_msgs::Node_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::graph_mapping_msgs::Node_<ContainerAllocator> >::other > & vec) const { vec = this->nodes; }
00045 ROS_DEPRECATED void set_nodes_vec(const std::vector< ::graph_mapping_msgs::Node_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::graph_mapping_msgs::Node_<ContainerAllocator> >::other > & vec) { this->nodes = vec; }
00046 ROS_DEPRECATED uint32_t get_edges_size() const { return (uint32_t)edges.size(); }
00047 ROS_DEPRECATED void set_edges_size(uint32_t size) { edges.resize((size_t)size); }
00048 ROS_DEPRECATED void get_edges_vec(std::vector< ::graph_mapping_msgs::Edge_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::graph_mapping_msgs::Edge_<ContainerAllocator> >::other > & vec) const { vec = this->edges; }
00049 ROS_DEPRECATED void set_edges_vec(const std::vector< ::graph_mapping_msgs::Edge_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::graph_mapping_msgs::Edge_<ContainerAllocator> >::other > & vec) { this->edges = vec; }
00050 private:
00051 static const char* __s_getDataType_() { return "graph_mapping_msgs/ConstraintGraphMessage"; }
00052 public:
00053 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00054
00055 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00056
00057 private:
00058 static const char* __s_getMD5Sum_() { return "cda8ffff59a7c01fc6f86d350d17f4c7"; }
00059 public:
00060 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00061
00062 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00063
00064 private:
00065 static const char* __s_getMessageDefinition_() { return "Node[] nodes\n\
00066 Edge[] edges\n\
00067 ================================================================================\n\
00068 MSG: graph_mapping_msgs/Node\n\
00069 uint32 id\n\
00070 \n\
00071 # This array has length 1 if the node has an optimized pose; 0 otherwise\n\
00072 geometry_msgs/Pose[] optimized_pose\n\
00073 \n\
00074 \n\
00075 ================================================================================\n\
00076 MSG: geometry_msgs/Pose\n\
00077 # A representation of pose in free space, composed of postion and orientation. \n\
00078 Point position\n\
00079 Quaternion orientation\n\
00080 \n\
00081 ================================================================================\n\
00082 MSG: geometry_msgs/Point\n\
00083 # This contains the position of a point in free space\n\
00084 float64 x\n\
00085 float64 y\n\
00086 float64 z\n\
00087 \n\
00088 ================================================================================\n\
00089 MSG: geometry_msgs/Quaternion\n\
00090 # This represents an orientation in free space in quaternion form.\n\
00091 \n\
00092 float64 x\n\
00093 float64 y\n\
00094 float64 z\n\
00095 float64 w\n\
00096 \n\
00097 ================================================================================\n\
00098 MSG: graph_mapping_msgs/Edge\n\
00099 uint32 id\n\
00100 GraphConstraint constraint\n\
00101 \n\
00102 ================================================================================\n\
00103 MSG: graph_mapping_msgs/GraphConstraint\n\
00104 uint32 src\n\
00105 uint32 dest\n\
00106 PoseWithPrecision constraint\n\
00107 ================================================================================\n\
00108 MSG: graph_mapping_msgs/PoseWithPrecision\n\
00109 geometry_msgs/Pose pose\n\
00110 float64[36] precision\n\
00111 "; }
00112 public:
00113 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00114
00115 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00116
00117 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00118 {
00119 ros::serialization::OStream stream(write_ptr, 1000000000);
00120 ros::serialization::serialize(stream, nodes);
00121 ros::serialization::serialize(stream, edges);
00122 return stream.getData();
00123 }
00124
00125 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00126 {
00127 ros::serialization::IStream stream(read_ptr, 1000000000);
00128 ros::serialization::deserialize(stream, nodes);
00129 ros::serialization::deserialize(stream, edges);
00130 return stream.getData();
00131 }
00132
00133 ROS_DEPRECATED virtual uint32_t serializationLength() const
00134 {
00135 uint32_t size = 0;
00136 size += ros::serialization::serializationLength(nodes);
00137 size += ros::serialization::serializationLength(edges);
00138 return size;
00139 }
00140
00141 typedef boost::shared_ptr< ::graph_mapping_msgs::ConstraintGraphMessage_<ContainerAllocator> > Ptr;
00142 typedef boost::shared_ptr< ::graph_mapping_msgs::ConstraintGraphMessage_<ContainerAllocator> const> ConstPtr;
00143 };
00144 typedef ::graph_mapping_msgs::ConstraintGraphMessage_<std::allocator<void> > ConstraintGraphMessage;
00145
00146 typedef boost::shared_ptr< ::graph_mapping_msgs::ConstraintGraphMessage> ConstraintGraphMessagePtr;
00147 typedef boost::shared_ptr< ::graph_mapping_msgs::ConstraintGraphMessage const> ConstraintGraphMessageConstPtr;
00148
00149
00150 template<typename ContainerAllocator>
00151 std::ostream& operator<<(std::ostream& s, const ::graph_mapping_msgs::ConstraintGraphMessage_<ContainerAllocator> & v)
00152 {
00153 ros::message_operations::Printer< ::graph_mapping_msgs::ConstraintGraphMessage_<ContainerAllocator> >::stream(s, "", v);
00154 return s;}
00155
00156 }
00157
00158 namespace ros
00159 {
00160 namespace message_traits
00161 {
00162 template<class ContainerAllocator>
00163 struct MD5Sum< ::graph_mapping_msgs::ConstraintGraphMessage_<ContainerAllocator> > {
00164 static const char* value()
00165 {
00166 return "cda8ffff59a7c01fc6f86d350d17f4c7";
00167 }
00168
00169 static const char* value(const ::graph_mapping_msgs::ConstraintGraphMessage_<ContainerAllocator> &) { return value(); }
00170 static const uint64_t static_value1 = 0xcda8ffff59a7c01fULL;
00171 static const uint64_t static_value2 = 0xc6f86d350d17f4c7ULL;
00172 };
00173
00174 template<class ContainerAllocator>
00175 struct DataType< ::graph_mapping_msgs::ConstraintGraphMessage_<ContainerAllocator> > {
00176 static const char* value()
00177 {
00178 return "graph_mapping_msgs/ConstraintGraphMessage";
00179 }
00180
00181 static const char* value(const ::graph_mapping_msgs::ConstraintGraphMessage_<ContainerAllocator> &) { return value(); }
00182 };
00183
00184 template<class ContainerAllocator>
00185 struct Definition< ::graph_mapping_msgs::ConstraintGraphMessage_<ContainerAllocator> > {
00186 static const char* value()
00187 {
00188 return "Node[] nodes\n\
00189 Edge[] edges\n\
00190 ================================================================================\n\
00191 MSG: graph_mapping_msgs/Node\n\
00192 uint32 id\n\
00193 \n\
00194 # This array has length 1 if the node has an optimized pose; 0 otherwise\n\
00195 geometry_msgs/Pose[] optimized_pose\n\
00196 \n\
00197 \n\
00198 ================================================================================\n\
00199 MSG: geometry_msgs/Pose\n\
00200 # A representation of pose in free space, composed of postion and orientation. \n\
00201 Point position\n\
00202 Quaternion orientation\n\
00203 \n\
00204 ================================================================================\n\
00205 MSG: geometry_msgs/Point\n\
00206 # This contains the position of a point in free space\n\
00207 float64 x\n\
00208 float64 y\n\
00209 float64 z\n\
00210 \n\
00211 ================================================================================\n\
00212 MSG: geometry_msgs/Quaternion\n\
00213 # This represents an orientation in free space in quaternion form.\n\
00214 \n\
00215 float64 x\n\
00216 float64 y\n\
00217 float64 z\n\
00218 float64 w\n\
00219 \n\
00220 ================================================================================\n\
00221 MSG: graph_mapping_msgs/Edge\n\
00222 uint32 id\n\
00223 GraphConstraint constraint\n\
00224 \n\
00225 ================================================================================\n\
00226 MSG: graph_mapping_msgs/GraphConstraint\n\
00227 uint32 src\n\
00228 uint32 dest\n\
00229 PoseWithPrecision constraint\n\
00230 ================================================================================\n\
00231 MSG: graph_mapping_msgs/PoseWithPrecision\n\
00232 geometry_msgs/Pose pose\n\
00233 float64[36] precision\n\
00234 ";
00235 }
00236
00237 static const char* value(const ::graph_mapping_msgs::ConstraintGraphMessage_<ContainerAllocator> &) { return value(); }
00238 };
00239
00240 }
00241 }
00242
00243 namespace ros
00244 {
00245 namespace serialization
00246 {
00247
00248 template<class ContainerAllocator> struct Serializer< ::graph_mapping_msgs::ConstraintGraphMessage_<ContainerAllocator> >
00249 {
00250 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00251 {
00252 stream.next(m.nodes);
00253 stream.next(m.edges);
00254 }
00255
00256 ROS_DECLARE_ALLINONE_SERIALIZER;
00257 };
00258 }
00259 }
00260
00261 namespace ros
00262 {
00263 namespace message_operations
00264 {
00265
00266 template<class ContainerAllocator>
00267 struct Printer< ::graph_mapping_msgs::ConstraintGraphMessage_<ContainerAllocator> >
00268 {
00269 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::graph_mapping_msgs::ConstraintGraphMessage_<ContainerAllocator> & v)
00270 {
00271 s << indent << "nodes[]" << std::endl;
00272 for (size_t i = 0; i < v.nodes.size(); ++i)
00273 {
00274 s << indent << " nodes[" << i << "]: ";
00275 s << std::endl;
00276 s << indent;
00277 Printer< ::graph_mapping_msgs::Node_<ContainerAllocator> >::stream(s, indent + " ", v.nodes[i]);
00278 }
00279 s << indent << "edges[]" << std::endl;
00280 for (size_t i = 0; i < v.edges.size(); ++i)
00281 {
00282 s << indent << " edges[" << i << "]: ";
00283 s << std::endl;
00284 s << indent;
00285 Printer< ::graph_mapping_msgs::Edge_<ContainerAllocator> >::stream(s, indent + " ", v.edges[i]);
00286 }
00287 }
00288 };
00289
00290
00291 }
00292 }
00293
00294 #endif // GRAPH_MAPPING_MSGS_MESSAGE_CONSTRAINTGRAPHMESSAGE_H
00295