Go to the documentation of this file.00001
00002 #ifndef TK_DRAFT_MSGS_MESSAGE_TKLINES_H
00003 #define TK_DRAFT_MSGS_MESSAGE_TKLINES_H
00004 #include <string>
00005 #include <vector>
00006 #include <map>
00007 #include <ostream>
00008 #include "ros/serialization.h"
00009 #include "ros/builtin_message_traits.h"
00010 #include "ros/message_operations.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/macros.h"
00014
00015 #include "ros/assert.h"
00016
00017 #include "std_msgs/Header.h"
00018 #include "geometry_msgs/Point.h"
00019 #include "geometry_msgs/Point.h"
00020 #include "geometry_msgs/Point.h"
00021
00022 namespace tk_draft_msgs
00023 {
00024 template <class ContainerAllocator>
00025 struct TKLines_ {
00026 typedef TKLines_<ContainerAllocator> Type;
00027
00028 TKLines_()
00029 : header()
00030 , start()
00031 , destination()
00032 , color()
00033 {
00034 }
00035
00036 TKLines_(const ContainerAllocator& _alloc)
00037 : header(_alloc)
00038 , start(_alloc)
00039 , destination(_alloc)
00040 , color(_alloc)
00041 {
00042 }
00043
00044 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00045 ::std_msgs::Header_<ContainerAllocator> header;
00046
00047 typedef std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > _start_type;
00048 std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > start;
00049
00050 typedef std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > _destination_type;
00051 std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > destination;
00052
00053 typedef std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > _color_type;
00054 std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > color;
00055
00056
00057 typedef boost::shared_ptr< ::tk_draft_msgs::TKLines_<ContainerAllocator> > Ptr;
00058 typedef boost::shared_ptr< ::tk_draft_msgs::TKLines_<ContainerAllocator> const> ConstPtr;
00059 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00060 };
00061 typedef ::tk_draft_msgs::TKLines_<std::allocator<void> > TKLines;
00062
00063 typedef boost::shared_ptr< ::tk_draft_msgs::TKLines> TKLinesPtr;
00064 typedef boost::shared_ptr< ::tk_draft_msgs::TKLines const> TKLinesConstPtr;
00065
00066
00067 template<typename ContainerAllocator>
00068 std::ostream& operator<<(std::ostream& s, const ::tk_draft_msgs::TKLines_<ContainerAllocator> & v)
00069 {
00070 ros::message_operations::Printer< ::tk_draft_msgs::TKLines_<ContainerAllocator> >::stream(s, "", v);
00071 return s;}
00072
00073 }
00074
00075 namespace ros
00076 {
00077 namespace message_traits
00078 {
00079 template<class ContainerAllocator> struct IsMessage< ::tk_draft_msgs::TKLines_<ContainerAllocator> > : public TrueType {};
00080 template<class ContainerAllocator> struct IsMessage< ::tk_draft_msgs::TKLines_<ContainerAllocator> const> : public TrueType {};
00081 template<class ContainerAllocator>
00082 struct MD5Sum< ::tk_draft_msgs::TKLines_<ContainerAllocator> > {
00083 static const char* value()
00084 {
00085 return "aa31b362579f8a2de68a8eb8544a7394";
00086 }
00087
00088 static const char* value(const ::tk_draft_msgs::TKLines_<ContainerAllocator> &) { return value(); }
00089 static const uint64_t static_value1 = 0xaa31b362579f8a2dULL;
00090 static const uint64_t static_value2 = 0xe68a8eb8544a7394ULL;
00091 };
00092
00093 template<class ContainerAllocator>
00094 struct DataType< ::tk_draft_msgs::TKLines_<ContainerAllocator> > {
00095 static const char* value()
00096 {
00097 return "tk_draft_msgs/TKLines";
00098 }
00099
00100 static const char* value(const ::tk_draft_msgs::TKLines_<ContainerAllocator> &) { return value(); }
00101 };
00102
00103 template<class ContainerAllocator>
00104 struct Definition< ::tk_draft_msgs::TKLines_<ContainerAllocator> > {
00105 static const char* value()
00106 {
00107 return "#\n\
00108 # Copyright 2011 Antonio Franchi and Martin Riedel \n\
00109 #\n\
00110 # This file is part of TeleKyb.\n\
00111 #\n\
00112 # TeleKyb is free software: you can redistribute it and/or modify\n\
00113 # it under the terms of the GNU General Public License as published by\n\
00114 # the Free Software Foundation, either version 3 of the License, or\n\
00115 # (at your option) any later version.\n\
00116 #\n\
00117 # TeleKyb is distributed in the hope that it will be useful,\n\
00118 # but WITHOUT ANY WARRANTY; without even the implied warranty of\n\
00119 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\
00120 # GNU General Public License for more details.\n\
00121 #\n\
00122 # You should have received a copy of the GNU General Public License\n\
00123 # along with TeleKyb. If not, see <http://www.gnu.org/licenses/>.\n\
00124 \n\
00125 Header header\n\
00126 \n\
00127 # Start-Points\n\
00128 geometry_msgs/Point[] start\n\
00129 # End-Points\n\
00130 geometry_msgs/Point[] destination\n\
00131 # Color\n\
00132 geometry_msgs/Point[] color\n\
00133 \n\
00134 ================================================================================\n\
00135 MSG: std_msgs/Header\n\
00136 # Standard metadata for higher-level stamped data types.\n\
00137 # This is generally used to communicate timestamped data \n\
00138 # in a particular coordinate frame.\n\
00139 # \n\
00140 # sequence ID: consecutively increasing ID \n\
00141 uint32 seq\n\
00142 #Two-integer timestamp that is expressed as:\n\
00143 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00144 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00145 # time-handling sugar is provided by the client library\n\
00146 time stamp\n\
00147 #Frame this data is associated with\n\
00148 # 0: no frame\n\
00149 # 1: global frame\n\
00150 string frame_id\n\
00151 \n\
00152 ================================================================================\n\
00153 MSG: geometry_msgs/Point\n\
00154 # This contains the position of a point in free space\n\
00155 float64 x\n\
00156 float64 y\n\
00157 float64 z\n\
00158 \n\
00159 ";
00160 }
00161
00162 static const char* value(const ::tk_draft_msgs::TKLines_<ContainerAllocator> &) { return value(); }
00163 };
00164
00165 template<class ContainerAllocator> struct HasHeader< ::tk_draft_msgs::TKLines_<ContainerAllocator> > : public TrueType {};
00166 template<class ContainerAllocator> struct HasHeader< const ::tk_draft_msgs::TKLines_<ContainerAllocator> > : public TrueType {};
00167 }
00168 }
00169
00170 namespace ros
00171 {
00172 namespace serialization
00173 {
00174
00175 template<class ContainerAllocator> struct Serializer< ::tk_draft_msgs::TKLines_<ContainerAllocator> >
00176 {
00177 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00178 {
00179 stream.next(m.header);
00180 stream.next(m.start);
00181 stream.next(m.destination);
00182 stream.next(m.color);
00183 }
00184
00185 ROS_DECLARE_ALLINONE_SERIALIZER;
00186 };
00187 }
00188 }
00189
00190 namespace ros
00191 {
00192 namespace message_operations
00193 {
00194
00195 template<class ContainerAllocator>
00196 struct Printer< ::tk_draft_msgs::TKLines_<ContainerAllocator> >
00197 {
00198 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::tk_draft_msgs::TKLines_<ContainerAllocator> & v)
00199 {
00200 s << indent << "header: ";
00201 s << std::endl;
00202 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00203 s << indent << "start[]" << std::endl;
00204 for (size_t i = 0; i < v.start.size(); ++i)
00205 {
00206 s << indent << " start[" << i << "]: ";
00207 s << std::endl;
00208 s << indent;
00209 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.start[i]);
00210 }
00211 s << indent << "destination[]" << std::endl;
00212 for (size_t i = 0; i < v.destination.size(); ++i)
00213 {
00214 s << indent << " destination[" << i << "]: ";
00215 s << std::endl;
00216 s << indent;
00217 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.destination[i]);
00218 }
00219 s << indent << "color[]" << std::endl;
00220 for (size_t i = 0; i < v.color.size(); ++i)
00221 {
00222 s << indent << " color[" << i << "]: ";
00223 s << std::endl;
00224 s << indent;
00225 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.color[i]);
00226 }
00227 }
00228 };
00229
00230
00231 }
00232 }
00233
00234 #endif // TK_DRAFT_MSGS_MESSAGE_TKLINES_H
00235