Test.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-roslisp_support/doc_stacks/2014-04-23_10-26-12.146943/roslisp_support/roslisp_tutorials/msg/Test.msg */
00002 #ifndef ROSLISP_TUTORIALS_MESSAGE_TEST_H
00003 #define ROSLISP_TUTORIALS_MESSAGE_TEST_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 "roslisp_tutorials/Point.h"
00018 
00019 namespace roslisp_tutorials
00020 {
00021 template <class ContainerAllocator>
00022 struct Test_ {
00023   typedef Test_<ContainerAllocator> Type;
00024 
00025   Test_()
00026   : location()
00027   , orientation()
00028   {
00029   }
00030 
00031   Test_(const ContainerAllocator& _alloc)
00032   : location()
00033   , orientation(_alloc)
00034   {
00035     location.assign( ::roslisp_tutorials::Point_<ContainerAllocator> (_alloc));
00036   }
00037 
00038   typedef boost::array< ::roslisp_tutorials::Point_<ContainerAllocator> , 2>  _location_type;
00039   boost::array< ::roslisp_tutorials::Point_<ContainerAllocator> , 2>  location;
00040 
00041   typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  _orientation_type;
00042   std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  orientation;
00043 
00044 
00045   typedef boost::shared_ptr< ::roslisp_tutorials::Test_<ContainerAllocator> > Ptr;
00046   typedef boost::shared_ptr< ::roslisp_tutorials::Test_<ContainerAllocator>  const> ConstPtr;
00047   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 }; // struct Test
00049 typedef  ::roslisp_tutorials::Test_<std::allocator<void> > Test;
00050 
00051 typedef boost::shared_ptr< ::roslisp_tutorials::Test> TestPtr;
00052 typedef boost::shared_ptr< ::roslisp_tutorials::Test const> TestConstPtr;
00053 
00054 
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const  ::roslisp_tutorials::Test_<ContainerAllocator> & v)
00057 {
00058   ros::message_operations::Printer< ::roslisp_tutorials::Test_<ContainerAllocator> >::stream(s, "", v);
00059   return s;}
00060 
00061 } // namespace roslisp_tutorials
00062 
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::roslisp_tutorials::Test_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::roslisp_tutorials::Test_<ContainerAllocator>  const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::roslisp_tutorials::Test_<ContainerAllocator> > {
00071   static const char* value() 
00072   {
00073     return "c56ee95e9378267df41b719464b064be";
00074   }
00075 
00076   static const char* value(const  ::roslisp_tutorials::Test_<ContainerAllocator> &) { return value(); } 
00077   static const uint64_t static_value1 = 0xc56ee95e9378267dULL;
00078   static const uint64_t static_value2 = 0xf41b719464b064beULL;
00079 };
00080 
00081 template<class ContainerAllocator>
00082 struct DataType< ::roslisp_tutorials::Test_<ContainerAllocator> > {
00083   static const char* value() 
00084   {
00085     return "roslisp_tutorials/Test";
00086   }
00087 
00088   static const char* value(const  ::roslisp_tutorials::Test_<ContainerAllocator> &) { return value(); } 
00089 };
00090 
00091 template<class ContainerAllocator>
00092 struct Definition< ::roslisp_tutorials::Test_<ContainerAllocator> > {
00093   static const char* value() 
00094   {
00095     return "Point[2] location\n\
00096 int32[] orientation\n\
00097 ================================================================================\n\
00098 MSG: roslisp_tutorials/Point\n\
00099 float32 x\n\
00100 float32 y\n\
00101 float32 z\n\
00102 \n\
00103 ";
00104   }
00105 
00106   static const char* value(const  ::roslisp_tutorials::Test_<ContainerAllocator> &) { return value(); } 
00107 };
00108 
00109 } // namespace message_traits
00110 } // namespace ros
00111 
00112 namespace ros
00113 {
00114 namespace serialization
00115 {
00116 
00117 template<class ContainerAllocator> struct Serializer< ::roslisp_tutorials::Test_<ContainerAllocator> >
00118 {
00119   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00120   {
00121     stream.next(m.location);
00122     stream.next(m.orientation);
00123   }
00124 
00125   ROS_DECLARE_ALLINONE_SERIALIZER;
00126 }; // struct Test_
00127 } // namespace serialization
00128 } // namespace ros
00129 
00130 namespace ros
00131 {
00132 namespace message_operations
00133 {
00134 
00135 template<class ContainerAllocator>
00136 struct Printer< ::roslisp_tutorials::Test_<ContainerAllocator> >
00137 {
00138   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::roslisp_tutorials::Test_<ContainerAllocator> & v) 
00139   {
00140     s << indent << "location[]" << std::endl;
00141     for (size_t i = 0; i < v.location.size(); ++i)
00142     {
00143       s << indent << "  location[" << i << "]: ";
00144       s << std::endl;
00145       s << indent;
00146       Printer< ::roslisp_tutorials::Point_<ContainerAllocator> >::stream(s, indent + "    ", v.location[i]);
00147     }
00148     s << indent << "orientation[]" << std::endl;
00149     for (size_t i = 0; i < v.orientation.size(); ++i)
00150     {
00151       s << indent << "  orientation[" << i << "]: ";
00152       Printer<int32_t>::stream(s, indent + "  ", v.orientation[i]);
00153     }
00154   }
00155 };
00156 
00157 
00158 } // namespace message_operations
00159 } // namespace ros
00160 
00161 #endif // ROSLISP_TUTORIALS_MESSAGE_TEST_H
00162 


roslisp_tutorials
Author(s): Bhaskara Marthi
autogenerated on Wed Apr 23 2014 10:28:02