TKSpline.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-kyb-mpg-ros-pkg/doc_stacks/2013-11-11_11-09-26.678778/telekyb_common/tk_draft_msgs/msg/TKSpline.msg */
00002 #ifndef TK_DRAFT_MSGS_MESSAGE_TKSPLINE_H
00003 #define TK_DRAFT_MSGS_MESSAGE_TKSPLINE_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 
00021 namespace tk_draft_msgs
00022 {
00023 template <class ContainerAllocator>
00024 struct TKSpline_ {
00025   typedef TKSpline_<ContainerAllocator> Type;
00026 
00027   TKSpline_()
00028   : header()
00029   , controlPoints()
00030   , knots()
00031   , indices()
00032   , order(0)
00033   , color()
00034   , nLines(0)
00035   {
00036   }
00037 
00038   TKSpline_(const ContainerAllocator& _alloc)
00039   : header(_alloc)
00040   , controlPoints(_alloc)
00041   , knots(_alloc)
00042   , indices(_alloc)
00043   , order(0)
00044   , color(_alloc)
00045   , nLines(0)
00046   {
00047   }
00048 
00049   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00050    ::std_msgs::Header_<ContainerAllocator>  header;
00051 
00052   typedef std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other >  _controlPoints_type;
00053   std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other >  controlPoints;
00054 
00055   typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other >  _knots_type;
00056   std::vector<double, typename ContainerAllocator::template rebind<double>::other >  knots;
00057 
00058   typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other >  _indices_type;
00059   std::vector<double, typename ContainerAllocator::template rebind<double>::other >  indices;
00060 
00061   typedef uint8_t _order_type;
00062   uint8_t order;
00063 
00064   typedef std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other >  _color_type;
00065   std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other >  color;
00066 
00067   typedef uint8_t _nLines_type;
00068   uint8_t nLines;
00069 
00070 
00071   typedef boost::shared_ptr< ::tk_draft_msgs::TKSpline_<ContainerAllocator> > Ptr;
00072   typedef boost::shared_ptr< ::tk_draft_msgs::TKSpline_<ContainerAllocator>  const> ConstPtr;
00073   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00074 }; // struct TKSpline
00075 typedef  ::tk_draft_msgs::TKSpline_<std::allocator<void> > TKSpline;
00076 
00077 typedef boost::shared_ptr< ::tk_draft_msgs::TKSpline> TKSplinePtr;
00078 typedef boost::shared_ptr< ::tk_draft_msgs::TKSpline const> TKSplineConstPtr;
00079 
00080 
00081 template<typename ContainerAllocator>
00082 std::ostream& operator<<(std::ostream& s, const  ::tk_draft_msgs::TKSpline_<ContainerAllocator> & v)
00083 {
00084   ros::message_operations::Printer< ::tk_draft_msgs::TKSpline_<ContainerAllocator> >::stream(s, "", v);
00085   return s;}
00086 
00087 } // namespace tk_draft_msgs
00088 
00089 namespace ros
00090 {
00091 namespace message_traits
00092 {
00093 template<class ContainerAllocator> struct IsMessage< ::tk_draft_msgs::TKSpline_<ContainerAllocator> > : public TrueType {};
00094 template<class ContainerAllocator> struct IsMessage< ::tk_draft_msgs::TKSpline_<ContainerAllocator>  const> : public TrueType {};
00095 template<class ContainerAllocator>
00096 struct MD5Sum< ::tk_draft_msgs::TKSpline_<ContainerAllocator> > {
00097   static const char* value() 
00098   {
00099     return "dcd11f4aea11a0b57993e79a0ab63167";
00100   }
00101 
00102   static const char* value(const  ::tk_draft_msgs::TKSpline_<ContainerAllocator> &) { return value(); } 
00103   static const uint64_t static_value1 = 0xdcd11f4aea11a0b5ULL;
00104   static const uint64_t static_value2 = 0x7993e79a0ab63167ULL;
00105 };
00106 
00107 template<class ContainerAllocator>
00108 struct DataType< ::tk_draft_msgs::TKSpline_<ContainerAllocator> > {
00109   static const char* value() 
00110   {
00111     return "tk_draft_msgs/TKSpline";
00112   }
00113 
00114   static const char* value(const  ::tk_draft_msgs::TKSpline_<ContainerAllocator> &) { return value(); } 
00115 };
00116 
00117 template<class ContainerAllocator>
00118 struct Definition< ::tk_draft_msgs::TKSpline_<ContainerAllocator> > {
00119   static const char* value() 
00120   {
00121     return "#\n\
00122 # Copyright 2011  Carlo Masone    \n\
00123 #\n\
00124 # This file is part of TeleKyb.\n\
00125 #\n\
00126 # TeleKyb is free software: you can redistribute it and/or modify\n\
00127 # it under the terms of the GNU General Public License as published by\n\
00128 # the Free Software Foundation, either version 3 of the License, or\n\
00129 # (at your option) any later version.\n\
00130 #\n\
00131 # TeleKyb is distributed in the hope that it will be useful,\n\
00132 # but WITHOUT ANY WARRANTY; without even the implied warranty of\n\
00133 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n\
00134 # GNU General Public License for more details.\n\
00135 #\n\
00136 # You should have received a copy of the GNU General Public License\n\
00137 # along with TeleKyb. If not, see <http://www.gnu.org/licenses/>.\n\
00138 \n\
00139 # Contains the set point for the low-lever controller of the gripper\n\
00140 \n\
00141 Header header\n\
00142 \n\
00143 # Points\n\
00144 geometry_msgs/Point[] controlPoints\n\
00145 \n\
00146 # Knots\n\
00147 float64[] knots\n\
00148 \n\
00149 # Indices of the portion of spline to draw\n\
00150 float64[] indices\n\
00151 \n\
00152 # Order\n\
00153 uint8 order\n\
00154 \n\
00155 # Color\n\
00156 geometry_msgs/Point[] color\n\
00157 \n\
00158 # Number of lines to be drawn to approximate the spline\n\
00159 uint8 nLines\n\
00160 \n\
00161 ================================================================================\n\
00162 MSG: std_msgs/Header\n\
00163 # Standard metadata for higher-level stamped data types.\n\
00164 # This is generally used to communicate timestamped data \n\
00165 # in a particular coordinate frame.\n\
00166 # \n\
00167 # sequence ID: consecutively increasing ID \n\
00168 uint32 seq\n\
00169 #Two-integer timestamp that is expressed as:\n\
00170 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00171 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00172 # time-handling sugar is provided by the client library\n\
00173 time stamp\n\
00174 #Frame this data is associated with\n\
00175 # 0: no frame\n\
00176 # 1: global frame\n\
00177 string frame_id\n\
00178 \n\
00179 ================================================================================\n\
00180 MSG: geometry_msgs/Point\n\
00181 # This contains the position of a point in free space\n\
00182 float64 x\n\
00183 float64 y\n\
00184 float64 z\n\
00185 \n\
00186 ";
00187   }
00188 
00189   static const char* value(const  ::tk_draft_msgs::TKSpline_<ContainerAllocator> &) { return value(); } 
00190 };
00191 
00192 template<class ContainerAllocator> struct HasHeader< ::tk_draft_msgs::TKSpline_<ContainerAllocator> > : public TrueType {};
00193 template<class ContainerAllocator> struct HasHeader< const ::tk_draft_msgs::TKSpline_<ContainerAllocator> > : public TrueType {};
00194 } // namespace message_traits
00195 } // namespace ros
00196 
00197 namespace ros
00198 {
00199 namespace serialization
00200 {
00201 
00202 template<class ContainerAllocator> struct Serializer< ::tk_draft_msgs::TKSpline_<ContainerAllocator> >
00203 {
00204   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00205   {
00206     stream.next(m.header);
00207     stream.next(m.controlPoints);
00208     stream.next(m.knots);
00209     stream.next(m.indices);
00210     stream.next(m.order);
00211     stream.next(m.color);
00212     stream.next(m.nLines);
00213   }
00214 
00215   ROS_DECLARE_ALLINONE_SERIALIZER;
00216 }; // struct TKSpline_
00217 } // namespace serialization
00218 } // namespace ros
00219 
00220 namespace ros
00221 {
00222 namespace message_operations
00223 {
00224 
00225 template<class ContainerAllocator>
00226 struct Printer< ::tk_draft_msgs::TKSpline_<ContainerAllocator> >
00227 {
00228   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::tk_draft_msgs::TKSpline_<ContainerAllocator> & v) 
00229   {
00230     s << indent << "header: ";
00231 s << std::endl;
00232     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00233     s << indent << "controlPoints[]" << std::endl;
00234     for (size_t i = 0; i < v.controlPoints.size(); ++i)
00235     {
00236       s << indent << "  controlPoints[" << i << "]: ";
00237       s << std::endl;
00238       s << indent;
00239       Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + "    ", v.controlPoints[i]);
00240     }
00241     s << indent << "knots[]" << std::endl;
00242     for (size_t i = 0; i < v.knots.size(); ++i)
00243     {
00244       s << indent << "  knots[" << i << "]: ";
00245       Printer<double>::stream(s, indent + "  ", v.knots[i]);
00246     }
00247     s << indent << "indices[]" << std::endl;
00248     for (size_t i = 0; i < v.indices.size(); ++i)
00249     {
00250       s << indent << "  indices[" << i << "]: ";
00251       Printer<double>::stream(s, indent + "  ", v.indices[i]);
00252     }
00253     s << indent << "order: ";
00254     Printer<uint8_t>::stream(s, indent + "  ", v.order);
00255     s << indent << "color[]" << std::endl;
00256     for (size_t i = 0; i < v.color.size(); ++i)
00257     {
00258       s << indent << "  color[" << i << "]: ";
00259       s << std::endl;
00260       s << indent;
00261       Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + "    ", v.color[i]);
00262     }
00263     s << indent << "nLines: ";
00264     Printer<uint8_t>::stream(s, indent + "  ", v.nLines);
00265   }
00266 };
00267 
00268 
00269 } // namespace message_operations
00270 } // namespace ros
00271 
00272 #endif // TK_DRAFT_MSGS_MESSAGE_TKSPLINE_H
00273 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


tk_draft_msgs
Author(s): Martin Riedel
autogenerated on Mon Nov 11 2013 11:12:57