Go to the documentation of this file.00001
00002 #ifndef JSK_GUI_MSGS_MESSAGE_ANDROIDSENSOR_H
00003 #define JSK_GUI_MSGS_MESSAGE_ANDROIDSENSOR_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 AndroidSensor_ {
00022 typedef AndroidSensor_<ContainerAllocator> Type;
00023
00024 AndroidSensor_()
00025 : accel_x(0.0)
00026 , accel_y(0.0)
00027 , accel_z(0.0)
00028 , orientation_x(0.0)
00029 , orientation_y(0.0)
00030 , orientation_z(0.0)
00031 {
00032 }
00033
00034 AndroidSensor_(const ContainerAllocator& _alloc)
00035 : accel_x(0.0)
00036 , accel_y(0.0)
00037 , accel_z(0.0)
00038 , orientation_x(0.0)
00039 , orientation_y(0.0)
00040 , orientation_z(0.0)
00041 {
00042 }
00043
00044 typedef double _accel_x_type;
00045 double accel_x;
00046
00047 typedef double _accel_y_type;
00048 double accel_y;
00049
00050 typedef double _accel_z_type;
00051 double accel_z;
00052
00053 typedef double _orientation_x_type;
00054 double orientation_x;
00055
00056 typedef double _orientation_y_type;
00057 double orientation_y;
00058
00059 typedef double _orientation_z_type;
00060 double orientation_z;
00061
00062
00063 typedef boost::shared_ptr< ::jsk_gui_msgs::AndroidSensor_<ContainerAllocator> > Ptr;
00064 typedef boost::shared_ptr< ::jsk_gui_msgs::AndroidSensor_<ContainerAllocator> const> ConstPtr;
00065 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00066 };
00067 typedef ::jsk_gui_msgs::AndroidSensor_<std::allocator<void> > AndroidSensor;
00068
00069 typedef boost::shared_ptr< ::jsk_gui_msgs::AndroidSensor> AndroidSensorPtr;
00070 typedef boost::shared_ptr< ::jsk_gui_msgs::AndroidSensor const> AndroidSensorConstPtr;
00071
00072
00073 template<typename ContainerAllocator>
00074 std::ostream& operator<<(std::ostream& s, const ::jsk_gui_msgs::AndroidSensor_<ContainerAllocator> & v)
00075 {
00076 ros::message_operations::Printer< ::jsk_gui_msgs::AndroidSensor_<ContainerAllocator> >::stream(s, "", v);
00077 return s;}
00078
00079 }
00080
00081 namespace ros
00082 {
00083 namespace message_traits
00084 {
00085 template<class ContainerAllocator> struct IsMessage< ::jsk_gui_msgs::AndroidSensor_<ContainerAllocator> > : public TrueType {};
00086 template<class ContainerAllocator> struct IsMessage< ::jsk_gui_msgs::AndroidSensor_<ContainerAllocator> const> : public TrueType {};
00087 template<class ContainerAllocator>
00088 struct MD5Sum< ::jsk_gui_msgs::AndroidSensor_<ContainerAllocator> > {
00089 static const char* value()
00090 {
00091 return "d832dbe3be7e7f061d963f2188f1a407";
00092 }
00093
00094 static const char* value(const ::jsk_gui_msgs::AndroidSensor_<ContainerAllocator> &) { return value(); }
00095 static const uint64_t static_value1 = 0xd832dbe3be7e7f06ULL;
00096 static const uint64_t static_value2 = 0x1d963f2188f1a407ULL;
00097 };
00098
00099 template<class ContainerAllocator>
00100 struct DataType< ::jsk_gui_msgs::AndroidSensor_<ContainerAllocator> > {
00101 static const char* value()
00102 {
00103 return "jsk_gui_msgs/AndroidSensor";
00104 }
00105
00106 static const char* value(const ::jsk_gui_msgs::AndroidSensor_<ContainerAllocator> &) { return value(); }
00107 };
00108
00109 template<class ContainerAllocator>
00110 struct Definition< ::jsk_gui_msgs::AndroidSensor_<ContainerAllocator> > {
00111 static const char* value()
00112 {
00113 return "# sonsor for Tablet\n\
00114 float64 accel_x\n\
00115 float64 accel_y\n\
00116 float64 accel_z\n\
00117 float64 orientation_x\n\
00118 float64 orientation_y\n\
00119 float64 orientation_z\n\
00120 \n\
00121 \n\
00122 \n\
00123 ";
00124 }
00125
00126 static const char* value(const ::jsk_gui_msgs::AndroidSensor_<ContainerAllocator> &) { return value(); }
00127 };
00128
00129 template<class ContainerAllocator> struct IsFixedSize< ::jsk_gui_msgs::AndroidSensor_<ContainerAllocator> > : public TrueType {};
00130 }
00131 }
00132
00133 namespace ros
00134 {
00135 namespace serialization
00136 {
00137
00138 template<class ContainerAllocator> struct Serializer< ::jsk_gui_msgs::AndroidSensor_<ContainerAllocator> >
00139 {
00140 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00141 {
00142 stream.next(m.accel_x);
00143 stream.next(m.accel_y);
00144 stream.next(m.accel_z);
00145 stream.next(m.orientation_x);
00146 stream.next(m.orientation_y);
00147 stream.next(m.orientation_z);
00148 }
00149
00150 ROS_DECLARE_ALLINONE_SERIALIZER;
00151 };
00152 }
00153 }
00154
00155 namespace ros
00156 {
00157 namespace message_operations
00158 {
00159
00160 template<class ContainerAllocator>
00161 struct Printer< ::jsk_gui_msgs::AndroidSensor_<ContainerAllocator> >
00162 {
00163 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::jsk_gui_msgs::AndroidSensor_<ContainerAllocator> & v)
00164 {
00165 s << indent << "accel_x: ";
00166 Printer<double>::stream(s, indent + " ", v.accel_x);
00167 s << indent << "accel_y: ";
00168 Printer<double>::stream(s, indent + " ", v.accel_y);
00169 s << indent << "accel_z: ";
00170 Printer<double>::stream(s, indent + " ", v.accel_z);
00171 s << indent << "orientation_x: ";
00172 Printer<double>::stream(s, indent + " ", v.orientation_x);
00173 s << indent << "orientation_y: ";
00174 Printer<double>::stream(s, indent + " ", v.orientation_y);
00175 s << indent << "orientation_z: ";
00176 Printer<double>::stream(s, indent + " ", v.orientation_z);
00177 }
00178 };
00179
00180
00181 }
00182 }
00183
00184 #endif // JSK_GUI_MSGS_MESSAGE_ANDROIDSENSOR_H
00185