IrSourceInfo.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-joystick_drivers/doc_stacks/2013-12-28_17-05-07.632680/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   typedef boost::shared_ptr< ::wiimote::IrSourceInfo_<ContainerAllocator> > Ptr;
00049   typedef boost::shared_ptr< ::wiimote::IrSourceInfo_<ContainerAllocator>  const> ConstPtr;
00050   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 }; // struct IrSourceInfo
00052 typedef  ::wiimote::IrSourceInfo_<std::allocator<void> > IrSourceInfo;
00053 
00054 typedef boost::shared_ptr< ::wiimote::IrSourceInfo> IrSourceInfoPtr;
00055 typedef boost::shared_ptr< ::wiimote::IrSourceInfo const> IrSourceInfoConstPtr;
00056 
00057 
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const  ::wiimote::IrSourceInfo_<ContainerAllocator> & v)
00060 {
00061   ros::message_operations::Printer< ::wiimote::IrSourceInfo_<ContainerAllocator> >::stream(s, "", v);
00062   return s;}
00063 
00064 } // namespace wiimote
00065 
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::wiimote::IrSourceInfo_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::wiimote::IrSourceInfo_<ContainerAllocator>  const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::wiimote::IrSourceInfo_<ContainerAllocator> > {
00074   static const char* value() 
00075   {
00076     return "95274ca88b9f008b99984b9a61d2772e";
00077   }
00078 
00079   static const char* value(const  ::wiimote::IrSourceInfo_<ContainerAllocator> &) { return value(); } 
00080   static const uint64_t static_value1 = 0x95274ca88b9f008bULL;
00081   static const uint64_t static_value2 = 0x99984b9a61d2772eULL;
00082 };
00083 
00084 template<class ContainerAllocator>
00085 struct DataType< ::wiimote::IrSourceInfo_<ContainerAllocator> > {
00086   static const char* value() 
00087   {
00088     return "wiimote/IrSourceInfo";
00089   }
00090 
00091   static const char* value(const  ::wiimote::IrSourceInfo_<ContainerAllocator> &) { return value(); } 
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct Definition< ::wiimote::IrSourceInfo_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "# Sensor data pertaining to the Wiimote infrared camera.\n\
00099 # This message contains data for one of the four infrared \n\
00100 # light sources that the camera detects.\n\
00101 #\n\
00102 # Each light is specified with a 2D position and \n\
00103 # a 'source magnitude' (ir_size). If the x dimension\n\
00104 # is set to INVALID_FLOAT, then no light was detected for \n\
00105 # the respective light. The Wiimote handles up to\n\
00106 # four light sources, and the wiimote_node.py software\n\
00107 # is written to that limit as well.\n\
00108 #\n\
00109 # I am unsure what the 'ir_size' values represent. \n\
00110 # They are described as 'source magnitude' in some places. I\n\
00111 # *assume* this is signal amplitude, but it's unclear. \n\
00112 # Note that current lowest level cwiid driver does not \n\
00113 # seem to pass the ir_size value to the cwiid Wiimote.c. \n\
00114 # For now this size will therefore be set INVALID\n\
00115 \n\
00116 float64 x \n\
00117 float64 y \n\
00118 int64 ir_size\n\
00119 \n\
00120 ";
00121   }
00122 
00123   static const char* value(const  ::wiimote::IrSourceInfo_<ContainerAllocator> &) { return value(); } 
00124 };
00125 
00126 template<class ContainerAllocator> struct IsFixedSize< ::wiimote::IrSourceInfo_<ContainerAllocator> > : public TrueType {};
00127 } // namespace message_traits
00128 } // namespace ros
00129 
00130 namespace ros
00131 {
00132 namespace serialization
00133 {
00134 
00135 template<class ContainerAllocator> struct Serializer< ::wiimote::IrSourceInfo_<ContainerAllocator> >
00136 {
00137   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00138   {
00139     stream.next(m.x);
00140     stream.next(m.y);
00141     stream.next(m.ir_size);
00142   }
00143 
00144   ROS_DECLARE_ALLINONE_SERIALIZER;
00145 }; // struct IrSourceInfo_
00146 } // namespace serialization
00147 } // namespace ros
00148 
00149 namespace ros
00150 {
00151 namespace message_operations
00152 {
00153 
00154 template<class ContainerAllocator>
00155 struct Printer< ::wiimote::IrSourceInfo_<ContainerAllocator> >
00156 {
00157   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::wiimote::IrSourceInfo_<ContainerAllocator> & v) 
00158   {
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 << "ir_size: ";
00164     Printer<int64_t>::stream(s, indent + "  ", v.ir_size);
00165   }
00166 };
00167 
00168 
00169 } // namespace message_operations
00170 } // namespace ros
00171 
00172 #endif // WIIMOTE_MESSAGE_IRSOURCEINFO_H
00173 


wiimote
Author(s): Andreas Paepcke and Melonee Wise
autogenerated on Sat Dec 28 2013 17:06:50