Tablet.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/Tablet.msg */
00002 #ifndef JSK_GUI_MSGS_MESSAGE_TABLET_H
00003 #define JSK_GUI_MSGS_MESSAGE_TABLET_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 "jsk_gui_msgs/Action.h"
00019 #include "jsk_gui_msgs/DeviceSensor.h"
00020 #include "jsk_gui_msgs/Touch.h"
00021 
00022 namespace jsk_gui_msgs
00023 {
00024 template <class ContainerAllocator>
00025 struct Tablet_ {
00026   typedef Tablet_<ContainerAllocator> Type;
00027 
00028   Tablet_()
00029   : header()
00030   , hardware_name()
00031   , hardware_id()
00032   , action()
00033   , sensor()
00034   , touches()
00035   {
00036   }
00037 
00038   Tablet_(const ContainerAllocator& _alloc)
00039   : header(_alloc)
00040   , hardware_name(_alloc)
00041   , hardware_id(_alloc)
00042   , action(_alloc)
00043   , sensor(_alloc)
00044   , touches(_alloc)
00045   {
00046   }
00047 
00048   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00049    ::std_msgs::Header_<ContainerAllocator>  header;
00050 
00051   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _hardware_name_type;
00052   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  hardware_name;
00053 
00054   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _hardware_id_type;
00055   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  hardware_id;
00056 
00057   typedef  ::jsk_gui_msgs::Action_<ContainerAllocator>  _action_type;
00058    ::jsk_gui_msgs::Action_<ContainerAllocator>  action;
00059 
00060   typedef  ::jsk_gui_msgs::DeviceSensor_<ContainerAllocator>  _sensor_type;
00061    ::jsk_gui_msgs::DeviceSensor_<ContainerAllocator>  sensor;
00062 
00063   typedef std::vector< ::jsk_gui_msgs::Touch_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::jsk_gui_msgs::Touch_<ContainerAllocator> >::other >  _touches_type;
00064   std::vector< ::jsk_gui_msgs::Touch_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::jsk_gui_msgs::Touch_<ContainerAllocator> >::other >  touches;
00065 
00066 
00067   typedef boost::shared_ptr< ::jsk_gui_msgs::Tablet_<ContainerAllocator> > Ptr;
00068   typedef boost::shared_ptr< ::jsk_gui_msgs::Tablet_<ContainerAllocator>  const> ConstPtr;
00069   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00070 }; // struct Tablet
00071 typedef  ::jsk_gui_msgs::Tablet_<std::allocator<void> > Tablet;
00072 
00073 typedef boost::shared_ptr< ::jsk_gui_msgs::Tablet> TabletPtr;
00074 typedef boost::shared_ptr< ::jsk_gui_msgs::Tablet const> TabletConstPtr;
00075 
00076 
00077 template<typename ContainerAllocator>
00078 std::ostream& operator<<(std::ostream& s, const  ::jsk_gui_msgs::Tablet_<ContainerAllocator> & v)
00079 {
00080   ros::message_operations::Printer< ::jsk_gui_msgs::Tablet_<ContainerAllocator> >::stream(s, "", v);
00081   return s;}
00082 
00083 } // namespace jsk_gui_msgs
00084 
00085 namespace ros
00086 {
00087 namespace message_traits
00088 {
00089 template<class ContainerAllocator> struct IsMessage< ::jsk_gui_msgs::Tablet_<ContainerAllocator> > : public TrueType {};
00090 template<class ContainerAllocator> struct IsMessage< ::jsk_gui_msgs::Tablet_<ContainerAllocator>  const> : public TrueType {};
00091 template<class ContainerAllocator>
00092 struct MD5Sum< ::jsk_gui_msgs::Tablet_<ContainerAllocator> > {
00093   static const char* value() 
00094   {
00095     return "0bab196c7b214826d8c27d7bd5f924f6";
00096   }
00097 
00098   static const char* value(const  ::jsk_gui_msgs::Tablet_<ContainerAllocator> &) { return value(); } 
00099   static const uint64_t static_value1 = 0x0bab196c7b214826ULL;
00100   static const uint64_t static_value2 = 0xd8c27d7bd5f924f6ULL;
00101 };
00102 
00103 template<class ContainerAllocator>
00104 struct DataType< ::jsk_gui_msgs::Tablet_<ContainerAllocator> > {
00105   static const char* value() 
00106   {
00107     return "jsk_gui_msgs/Tablet";
00108   }
00109 
00110   static const char* value(const  ::jsk_gui_msgs::Tablet_<ContainerAllocator> &) { return value(); } 
00111 };
00112 
00113 template<class ContainerAllocator>
00114 struct Definition< ::jsk_gui_msgs::Tablet_<ContainerAllocator> > {
00115   static const char* value() 
00116   {
00117     return "Header header\n\
00118 # hardware_namel: iPad, Android, other mobile\n\
00119 string hardware_name\n\
00120 string hardware_id\n\
00121 Action action\n\
00122 DeviceSensor sensor\n\
00123 Touch[] touches\n\
00124 ================================================================================\n\
00125 MSG: std_msgs/Header\n\
00126 # Standard metadata for higher-level stamped data types.\n\
00127 # This is generally used to communicate timestamped data \n\
00128 # in a particular coordinate frame.\n\
00129 # \n\
00130 # sequence ID: consecutively increasing ID \n\
00131 uint32 seq\n\
00132 #Two-integer timestamp that is expressed as:\n\
00133 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00134 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00135 # time-handling sugar is provided by the client library\n\
00136 time stamp\n\
00137 #Frame this data is associated with\n\
00138 # 0: no frame\n\
00139 # 1: global frame\n\
00140 string frame_id\n\
00141 \n\
00142 ================================================================================\n\
00143 MSG: jsk_gui_msgs/Action\n\
00144 byte RARMID=0\n\
00145 byte LARMID=1\n\
00146 \n\
00147 # task: push, pick, open, slide, MoveNeck, MoveBase\n\
00148 string task_name\n\
00149 \n\
00150 # selection: button names\n\
00151 # string selection_name\n\
00152 \n\
00153 # arm: :rarm, :lsrm\n\
00154 int64 arm_id\n\
00155 \n\
00156 # state of touch: touch, pick, pinch, sweep\n\
00157 # for debugging\n\
00158 string state\n\
00159 # value of state\n\
00160 float64 state_value\n\
00161 \n\
00162 # direction: up, down, left, right\n\
00163 string direction\n\
00164 # value of direction, degree\n\
00165 float64 direction_value\n\
00166 \n\
00167 int64 touch_x\n\
00168 int64 touch_y\n\
00169 \n\
00170 # Example\n\
00171 #  push: touches[0].x, touches[0].y, task_name, arm_id\n\
00172 #  open: touches[0 1 2].x, touches[0 1 2].y, task_name, arm_id\n\
00173 #  slide: touches[0 1 2].x, touches[0 1 2].y, task_name, arm_id\n\
00174 #  move_neck: task_name, direction, direction_value\n\
00175 #  move_base: task_name, direction, direction_value\n\
00176 ================================================================================\n\
00177 MSG: jsk_gui_msgs/DeviceSensor\n\
00178 float64 temperature\n\
00179 float64 relative_humidity\n\
00180 float64 light\n\
00181 float64 pressure\n\
00182 float64 proximity\n\
00183 \n\
00184 \n\
00185 \n\
00186 \n\
00187 ================================================================================\n\
00188 MSG: jsk_gui_msgs/Touch\n\
00189 # finger_id\n\
00190 int64 finger_id\n\
00191 # touch point(screen point)\n\
00192 float64 x\n\
00193 float64 y\n\
00194 # based image size (usually not needed)\n\
00195 int64 image_width\n\
00196 int64 image_height\n\
00197 ";
00198   }
00199 
00200   static const char* value(const  ::jsk_gui_msgs::Tablet_<ContainerAllocator> &) { return value(); } 
00201 };
00202 
00203 template<class ContainerAllocator> struct HasHeader< ::jsk_gui_msgs::Tablet_<ContainerAllocator> > : public TrueType {};
00204 template<class ContainerAllocator> struct HasHeader< const ::jsk_gui_msgs::Tablet_<ContainerAllocator> > : public TrueType {};
00205 } // namespace message_traits
00206 } // namespace ros
00207 
00208 namespace ros
00209 {
00210 namespace serialization
00211 {
00212 
00213 template<class ContainerAllocator> struct Serializer< ::jsk_gui_msgs::Tablet_<ContainerAllocator> >
00214 {
00215   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00216   {
00217     stream.next(m.header);
00218     stream.next(m.hardware_name);
00219     stream.next(m.hardware_id);
00220     stream.next(m.action);
00221     stream.next(m.sensor);
00222     stream.next(m.touches);
00223   }
00224 
00225   ROS_DECLARE_ALLINONE_SERIALIZER;
00226 }; // struct Tablet_
00227 } // namespace serialization
00228 } // namespace ros
00229 
00230 namespace ros
00231 {
00232 namespace message_operations
00233 {
00234 
00235 template<class ContainerAllocator>
00236 struct Printer< ::jsk_gui_msgs::Tablet_<ContainerAllocator> >
00237 {
00238   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::jsk_gui_msgs::Tablet_<ContainerAllocator> & v) 
00239   {
00240     s << indent << "header: ";
00241 s << std::endl;
00242     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00243     s << indent << "hardware_name: ";
00244     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.hardware_name);
00245     s << indent << "hardware_id: ";
00246     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.hardware_id);
00247     s << indent << "action: ";
00248 s << std::endl;
00249     Printer< ::jsk_gui_msgs::Action_<ContainerAllocator> >::stream(s, indent + "  ", v.action);
00250     s << indent << "sensor: ";
00251 s << std::endl;
00252     Printer< ::jsk_gui_msgs::DeviceSensor_<ContainerAllocator> >::stream(s, indent + "  ", v.sensor);
00253     s << indent << "touches[]" << std::endl;
00254     for (size_t i = 0; i < v.touches.size(); ++i)
00255     {
00256       s << indent << "  touches[" << i << "]: ";
00257       s << std::endl;
00258       s << indent;
00259       Printer< ::jsk_gui_msgs::Touch_<ContainerAllocator> >::stream(s, indent + "    ", v.touches[i]);
00260     }
00261   }
00262 };
00263 
00264 
00265 } // namespace message_operations
00266 } // namespace ros
00267 
00268 #endif // JSK_GUI_MSGS_MESSAGE_TABLET_H
00269 
 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