$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-joystick_drivers/doc_stacks/2013-03-01_15-52-25.763642/joystick_drivers/wiimote/msg/IrSourceInfo.msg */ 00002 #ifndef WIIMOTE_MESSAGE_IRSOURCEINFO_H 00003 #define WIIMOTE_MESSAGE_IRSOURCEINFO_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 wiimote 00019 { 00020 template <class ContainerAllocator> 00021 struct IrSourceInfo_ { 00022 typedef IrSourceInfo_<ContainerAllocator> Type; 00023 00024 IrSourceInfo_() 00025 : x(0.0) 00026 , y(0.0) 00027 , ir_size(0) 00028 { 00029 } 00030 00031 IrSourceInfo_(const ContainerAllocator& _alloc) 00032 : x(0.0) 00033 , y(0.0) 00034 , ir_size(0) 00035 { 00036 } 00037 00038 typedef double _x_type; 00039 double x; 00040 00041 typedef double _y_type; 00042 double y; 00043 00044 typedef int64_t _ir_size_type; 00045 int64_t ir_size; 00046 00047 00048 private: 00049 static const char* __s_getDataType_() { return "wiimote/IrSourceInfo"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "95274ca88b9f008b99984b9a61d2772e"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getMessageDefinition_() { return "# Sensor data pertaining to the Wiimote infrared camera.\n\ 00064 # This message contains data for one of the four infrared \n\ 00065 # light sources that the camera detects.\n\ 00066 #\n\ 00067 # Each light is specified with a 2D position and \n\ 00068 # a 'source magnitude' (ir_size). If the x dimension\n\ 00069 # is set to INVALID_FLOAT, then no light was detected for \n\ 00070 # the respective light. The Wiimote handles up to\n\ 00071 # four light sources, and the wiimote_node.py software\n\ 00072 # is written to that limit as well.\n\ 00073 #\n\ 00074 # I am unsure what the 'ir_size' values represent. \n\ 00075 # They are described as 'source magnitude' in some places. I\n\ 00076 # *assume* this is signal amplitude, but it's unclear. \n\ 00077 # Note that current lowest level cwiid driver does not \n\ 00078 # seem to pass the ir_size value to the cwiid Wiimote.c. \n\ 00079 # For now this size will therefore be set INVALID\n\ 00080 \n\ 00081 float64 x \n\ 00082 float64 y \n\ 00083 int64 ir_size\n\ 00084 \n\ 00085 "; } 00086 public: 00087 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00088 00089 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00090 00091 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00092 { 00093 ros::serialization::OStream stream(write_ptr, 1000000000); 00094 ros::serialization::serialize(stream, x); 00095 ros::serialization::serialize(stream, y); 00096 ros::serialization::serialize(stream, ir_size); 00097 return stream.getData(); 00098 } 00099 00100 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00101 { 00102 ros::serialization::IStream stream(read_ptr, 1000000000); 00103 ros::serialization::deserialize(stream, x); 00104 ros::serialization::deserialize(stream, y); 00105 ros::serialization::deserialize(stream, ir_size); 00106 return stream.getData(); 00107 } 00108 00109 ROS_DEPRECATED virtual uint32_t serializationLength() const 00110 { 00111 uint32_t size = 0; 00112 size += ros::serialization::serializationLength(x); 00113 size += ros::serialization::serializationLength(y); 00114 size += ros::serialization::serializationLength(ir_size); 00115 return size; 00116 } 00117 00118 typedef boost::shared_ptr< ::wiimote::IrSourceInfo_<ContainerAllocator> > Ptr; 00119 typedef boost::shared_ptr< ::wiimote::IrSourceInfo_<ContainerAllocator> const> ConstPtr; 00120 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00121 }; // struct IrSourceInfo 00122 typedef ::wiimote::IrSourceInfo_<std::allocator<void> > IrSourceInfo; 00123 00124 typedef boost::shared_ptr< ::wiimote::IrSourceInfo> IrSourceInfoPtr; 00125 typedef boost::shared_ptr< ::wiimote::IrSourceInfo const> IrSourceInfoConstPtr; 00126 00127 00128 template<typename ContainerAllocator> 00129 std::ostream& operator<<(std::ostream& s, const ::wiimote::IrSourceInfo_<ContainerAllocator> & v) 00130 { 00131 ros::message_operations::Printer< ::wiimote::IrSourceInfo_<ContainerAllocator> >::stream(s, "", v); 00132 return s;} 00133 00134 } // namespace wiimote 00135 00136 namespace ros 00137 { 00138 namespace message_traits 00139 { 00140 template<class ContainerAllocator> struct IsMessage< ::wiimote::IrSourceInfo_<ContainerAllocator> > : public TrueType {}; 00141 template<class ContainerAllocator> struct IsMessage< ::wiimote::IrSourceInfo_<ContainerAllocator> const> : public TrueType {}; 00142 template<class ContainerAllocator> 00143 struct MD5Sum< ::wiimote::IrSourceInfo_<ContainerAllocator> > { 00144 static const char* value() 00145 { 00146 return "95274ca88b9f008b99984b9a61d2772e"; 00147 } 00148 00149 static const char* value(const ::wiimote::IrSourceInfo_<ContainerAllocator> &) { return value(); } 00150 static const uint64_t static_value1 = 0x95274ca88b9f008bULL; 00151 static const uint64_t static_value2 = 0x99984b9a61d2772eULL; 00152 }; 00153 00154 template<class ContainerAllocator> 00155 struct DataType< ::wiimote::IrSourceInfo_<ContainerAllocator> > { 00156 static const char* value() 00157 { 00158 return "wiimote/IrSourceInfo"; 00159 } 00160 00161 static const char* value(const ::wiimote::IrSourceInfo_<ContainerAllocator> &) { return value(); } 00162 }; 00163 00164 template<class ContainerAllocator> 00165 struct Definition< ::wiimote::IrSourceInfo_<ContainerAllocator> > { 00166 static const char* value() 00167 { 00168 return "# Sensor data pertaining to the Wiimote infrared camera.\n\ 00169 # This message contains data for one of the four infrared \n\ 00170 # light sources that the camera detects.\n\ 00171 #\n\ 00172 # Each light is specified with a 2D position and \n\ 00173 # a 'source magnitude' (ir_size). If the x dimension\n\ 00174 # is set to INVALID_FLOAT, then no light was detected for \n\ 00175 # the respective light. The Wiimote handles up to\n\ 00176 # four light sources, and the wiimote_node.py software\n\ 00177 # is written to that limit as well.\n\ 00178 #\n\ 00179 # I am unsure what the 'ir_size' values represent. \n\ 00180 # They are described as 'source magnitude' in some places. I\n\ 00181 # *assume* this is signal amplitude, but it's unclear. \n\ 00182 # Note that current lowest level cwiid driver does not \n\ 00183 # seem to pass the ir_size value to the cwiid Wiimote.c. \n\ 00184 # For now this size will therefore be set INVALID\n\ 00185 \n\ 00186 float64 x \n\ 00187 float64 y \n\ 00188 int64 ir_size\n\ 00189 \n\ 00190 "; 00191 } 00192 00193 static const char* value(const ::wiimote::IrSourceInfo_<ContainerAllocator> &) { return value(); } 00194 }; 00195 00196 template<class ContainerAllocator> struct IsFixedSize< ::wiimote::IrSourceInfo_<ContainerAllocator> > : public TrueType {}; 00197 } // namespace message_traits 00198 } // namespace ros 00199 00200 namespace ros 00201 { 00202 namespace serialization 00203 { 00204 00205 template<class ContainerAllocator> struct Serializer< ::wiimote::IrSourceInfo_<ContainerAllocator> > 00206 { 00207 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00208 { 00209 stream.next(m.x); 00210 stream.next(m.y); 00211 stream.next(m.ir_size); 00212 } 00213 00214 ROS_DECLARE_ALLINONE_SERIALIZER; 00215 }; // struct IrSourceInfo_ 00216 } // namespace serialization 00217 } // namespace ros 00218 00219 namespace ros 00220 { 00221 namespace message_operations 00222 { 00223 00224 template<class ContainerAllocator> 00225 struct Printer< ::wiimote::IrSourceInfo_<ContainerAllocator> > 00226 { 00227 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::wiimote::IrSourceInfo_<ContainerAllocator> & v) 00228 { 00229 s << indent << "x: "; 00230 Printer<double>::stream(s, indent + " ", v.x); 00231 s << indent << "y: "; 00232 Printer<double>::stream(s, indent + " ", v.y); 00233 s << indent << "ir_size: "; 00234 Printer<int64_t>::stream(s, indent + " ", v.ir_size); 00235 } 00236 }; 00237 00238 00239 } // namespace message_operations 00240 } // namespace ros 00241 00242 #endif // WIIMOTE_MESSAGE_IRSOURCEINFO_H 00243