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