Touch.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-jsk-ros-pkg/doc_stacks/2013-03-23_12-16-27.483192/jsk-ros-pkg/jsk_smart_apps/jsk_gui_msgs/msg/Touch.msg */
00002 #ifndef JSK_GUI_MSGS_MESSAGE_TOUCH_H
00003 #define JSK_GUI_MSGS_MESSAGE_TOUCH_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 
00018 namespace jsk_gui_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct Touch_ {
00022   typedef Touch_<ContainerAllocator> Type;
00023 
00024   Touch_()
00025   : finger_id(0)
00026   , x(0.0)
00027   , y(0.0)
00028   , image_width(0)
00029   , image_height(0)
00030   {
00031   }
00032 
00033   Touch_(const ContainerAllocator& _alloc)
00034   : finger_id(0)
00035   , x(0.0)
00036   , y(0.0)
00037   , image_width(0)
00038   , image_height(0)
00039   {
00040   }
00041 
00042   typedef int64_t _finger_id_type;
00043   int64_t finger_id;
00044 
00045   typedef double _x_type;
00046   double x;
00047 
00048   typedef double _y_type;
00049   double y;
00050 
00051   typedef int64_t _image_width_type;
00052   int64_t image_width;
00053 
00054   typedef int64_t _image_height_type;
00055   int64_t image_height;
00056 
00057 
00058   typedef boost::shared_ptr< ::jsk_gui_msgs::Touch_<ContainerAllocator> > Ptr;
00059   typedef boost::shared_ptr< ::jsk_gui_msgs::Touch_<ContainerAllocator>  const> ConstPtr;
00060   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00061 }; // struct Touch
00062 typedef  ::jsk_gui_msgs::Touch_<std::allocator<void> > Touch;
00063 
00064 typedef boost::shared_ptr< ::jsk_gui_msgs::Touch> TouchPtr;
00065 typedef boost::shared_ptr< ::jsk_gui_msgs::Touch const> TouchConstPtr;
00066 
00067 
00068 template<typename ContainerAllocator>
00069 std::ostream& operator<<(std::ostream& s, const  ::jsk_gui_msgs::Touch_<ContainerAllocator> & v)
00070 {
00071   ros::message_operations::Printer< ::jsk_gui_msgs::Touch_<ContainerAllocator> >::stream(s, "", v);
00072   return s;}
00073 
00074 } // namespace jsk_gui_msgs
00075 
00076 namespace ros
00077 {
00078 namespace message_traits
00079 {
00080 template<class ContainerAllocator> struct IsMessage< ::jsk_gui_msgs::Touch_<ContainerAllocator> > : public TrueType {};
00081 template<class ContainerAllocator> struct IsMessage< ::jsk_gui_msgs::Touch_<ContainerAllocator>  const> : public TrueType {};
00082 template<class ContainerAllocator>
00083 struct MD5Sum< ::jsk_gui_msgs::Touch_<ContainerAllocator> > {
00084   static const char* value() 
00085   {
00086     return "d96a284d39fcc410f375ac68fd380177";
00087   }
00088 
00089   static const char* value(const  ::jsk_gui_msgs::Touch_<ContainerAllocator> &) { return value(); } 
00090   static const uint64_t static_value1 = 0xd96a284d39fcc410ULL;
00091   static const uint64_t static_value2 = 0xf375ac68fd380177ULL;
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct DataType< ::jsk_gui_msgs::Touch_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "jsk_gui_msgs/Touch";
00099   }
00100 
00101   static const char* value(const  ::jsk_gui_msgs::Touch_<ContainerAllocator> &) { return value(); } 
00102 };
00103 
00104 template<class ContainerAllocator>
00105 struct Definition< ::jsk_gui_msgs::Touch_<ContainerAllocator> > {
00106   static const char* value() 
00107   {
00108     return "# finger_id\n\
00109 int64 finger_id\n\
00110 # touch point(screen point)\n\
00111 float64 x\n\
00112 float64 y\n\
00113 # based image size (usually not needed)\n\
00114 int64 image_width\n\
00115 int64 image_height\n\
00116 ";
00117   }
00118 
00119   static const char* value(const  ::jsk_gui_msgs::Touch_<ContainerAllocator> &) { return value(); } 
00120 };
00121 
00122 template<class ContainerAllocator> struct IsFixedSize< ::jsk_gui_msgs::Touch_<ContainerAllocator> > : public TrueType {};
00123 } // namespace message_traits
00124 } // namespace ros
00125 
00126 namespace ros
00127 {
00128 namespace serialization
00129 {
00130 
00131 template<class ContainerAllocator> struct Serializer< ::jsk_gui_msgs::Touch_<ContainerAllocator> >
00132 {
00133   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00134   {
00135     stream.next(m.finger_id);
00136     stream.next(m.x);
00137     stream.next(m.y);
00138     stream.next(m.image_width);
00139     stream.next(m.image_height);
00140   }
00141 
00142   ROS_DECLARE_ALLINONE_SERIALIZER;
00143 }; // struct Touch_
00144 } // namespace serialization
00145 } // namespace ros
00146 
00147 namespace ros
00148 {
00149 namespace message_operations
00150 {
00151 
00152 template<class ContainerAllocator>
00153 struct Printer< ::jsk_gui_msgs::Touch_<ContainerAllocator> >
00154 {
00155   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::jsk_gui_msgs::Touch_<ContainerAllocator> & v) 
00156   {
00157     s << indent << "finger_id: ";
00158     Printer<int64_t>::stream(s, indent + "  ", v.finger_id);
00159     s << indent << "x: ";
00160     Printer<double>::stream(s, indent + "  ", v.x);
00161     s << indent << "y: ";
00162     Printer<double>::stream(s, indent + "  ", v.y);
00163     s << indent << "image_width: ";
00164     Printer<int64_t>::stream(s, indent + "  ", v.image_width);
00165     s << indent << "image_height: ";
00166     Printer<int64_t>::stream(s, indent + "  ", v.image_height);
00167   }
00168 };
00169 
00170 
00171 } // namespace message_operations
00172 } // namespace ros
00173 
00174 #endif // JSK_GUI_MSGS_MESSAGE_TOUCH_H
00175 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


jsk_gui_msgs
Author(s): chen
autogenerated on Sat Mar 23 2013 16:13:09