SensorState.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-ros_arduino_bridge/doc_stacks/2014-10-06_06-49-53.402575/ros_arduino_bridge/ros_arduino_msgs/msg/SensorState.msg */
00002 #ifndef ROS_ARDUINO_MSGS_MESSAGE_SENSORSTATE_H
00003 #define ROS_ARDUINO_MSGS_MESSAGE_SENSORSTATE_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 
00019 namespace ros_arduino_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct SensorState_ {
00023   typedef SensorState_<ContainerAllocator> Type;
00024 
00025   SensorState_()
00026   : header()
00027   , name()
00028   , value()
00029   {
00030   }
00031 
00032   SensorState_(const ContainerAllocator& _alloc)
00033   : header(_alloc)
00034   , name(_alloc)
00035   , value(_alloc)
00036   {
00037   }
00038 
00039   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00040    ::std_msgs::Header_<ContainerAllocator>  header;
00041 
00042   typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  _name_type;
00043   std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  name;
00044 
00045   typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other >  _value_type;
00046   std::vector<float, typename ContainerAllocator::template rebind<float>::other >  value;
00047 
00048 
00049   typedef boost::shared_ptr< ::ros_arduino_msgs::SensorState_<ContainerAllocator> > Ptr;
00050   typedef boost::shared_ptr< ::ros_arduino_msgs::SensorState_<ContainerAllocator>  const> ConstPtr;
00051   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00052 }; // struct SensorState
00053 typedef  ::ros_arduino_msgs::SensorState_<std::allocator<void> > SensorState;
00054 
00055 typedef boost::shared_ptr< ::ros_arduino_msgs::SensorState> SensorStatePtr;
00056 typedef boost::shared_ptr< ::ros_arduino_msgs::SensorState const> SensorStateConstPtr;
00057 
00058 
00059 template<typename ContainerAllocator>
00060 std::ostream& operator<<(std::ostream& s, const  ::ros_arduino_msgs::SensorState_<ContainerAllocator> & v)
00061 {
00062   ros::message_operations::Printer< ::ros_arduino_msgs::SensorState_<ContainerAllocator> >::stream(s, "", v);
00063   return s;}
00064 
00065 } // namespace ros_arduino_msgs
00066 
00067 namespace ros
00068 {
00069 namespace message_traits
00070 {
00071 template<class ContainerAllocator> struct IsMessage< ::ros_arduino_msgs::SensorState_<ContainerAllocator> > : public TrueType {};
00072 template<class ContainerAllocator> struct IsMessage< ::ros_arduino_msgs::SensorState_<ContainerAllocator>  const> : public TrueType {};
00073 template<class ContainerAllocator>
00074 struct MD5Sum< ::ros_arduino_msgs::SensorState_<ContainerAllocator> > {
00075   static const char* value() 
00076   {
00077     return "c775d5ae64f1f355fcb3c88b89468dd0";
00078   }
00079 
00080   static const char* value(const  ::ros_arduino_msgs::SensorState_<ContainerAllocator> &) { return value(); } 
00081   static const uint64_t static_value1 = 0xc775d5ae64f1f355ULL;
00082   static const uint64_t static_value2 = 0xfcb3c88b89468dd0ULL;
00083 };
00084 
00085 template<class ContainerAllocator>
00086 struct DataType< ::ros_arduino_msgs::SensorState_<ContainerAllocator> > {
00087   static const char* value() 
00088   {
00089     return "ros_arduino_msgs/SensorState";
00090   }
00091 
00092   static const char* value(const  ::ros_arduino_msgs::SensorState_<ContainerAllocator> &) { return value(); } 
00093 };
00094 
00095 template<class ContainerAllocator>
00096 struct Definition< ::ros_arduino_msgs::SensorState_<ContainerAllocator> > {
00097   static const char* value() 
00098   {
00099     return "Header header\n\
00100 \n\
00101 string[] name\n\
00102 float32[] value\n\
00103 \n\
00104 ================================================================================\n\
00105 MSG: std_msgs/Header\n\
00106 # Standard metadata for higher-level stamped data types.\n\
00107 # This is generally used to communicate timestamped data \n\
00108 # in a particular coordinate frame.\n\
00109 # \n\
00110 # sequence ID: consecutively increasing ID \n\
00111 uint32 seq\n\
00112 #Two-integer timestamp that is expressed as:\n\
00113 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00114 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00115 # time-handling sugar is provided by the client library\n\
00116 time stamp\n\
00117 #Frame this data is associated with\n\
00118 # 0: no frame\n\
00119 # 1: global frame\n\
00120 string frame_id\n\
00121 \n\
00122 ";
00123   }
00124 
00125   static const char* value(const  ::ros_arduino_msgs::SensorState_<ContainerAllocator> &) { return value(); } 
00126 };
00127 
00128 template<class ContainerAllocator> struct HasHeader< ::ros_arduino_msgs::SensorState_<ContainerAllocator> > : public TrueType {};
00129 template<class ContainerAllocator> struct HasHeader< const ::ros_arduino_msgs::SensorState_<ContainerAllocator> > : public TrueType {};
00130 } // namespace message_traits
00131 } // namespace ros
00132 
00133 namespace ros
00134 {
00135 namespace serialization
00136 {
00137 
00138 template<class ContainerAllocator> struct Serializer< ::ros_arduino_msgs::SensorState_<ContainerAllocator> >
00139 {
00140   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00141   {
00142     stream.next(m.header);
00143     stream.next(m.name);
00144     stream.next(m.value);
00145   }
00146 
00147   ROS_DECLARE_ALLINONE_SERIALIZER;
00148 }; // struct SensorState_
00149 } // namespace serialization
00150 } // namespace ros
00151 
00152 namespace ros
00153 {
00154 namespace message_operations
00155 {
00156 
00157 template<class ContainerAllocator>
00158 struct Printer< ::ros_arduino_msgs::SensorState_<ContainerAllocator> >
00159 {
00160   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::ros_arduino_msgs::SensorState_<ContainerAllocator> & v) 
00161   {
00162     s << indent << "header: ";
00163 s << std::endl;
00164     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00165     s << indent << "name[]" << std::endl;
00166     for (size_t i = 0; i < v.name.size(); ++i)
00167     {
00168       s << indent << "  name[" << i << "]: ";
00169       Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.name[i]);
00170     }
00171     s << indent << "value[]" << std::endl;
00172     for (size_t i = 0; i < v.value.size(); ++i)
00173     {
00174       s << indent << "  value[" << i << "]: ";
00175       Printer<float>::stream(s, indent + "  ", v.value[i]);
00176     }
00177   }
00178 };
00179 
00180 
00181 } // namespace message_operations
00182 } // namespace ros
00183 
00184 #endif // ROS_ARDUINO_MSGS_MESSAGE_SENSORSTATE_H
00185 


ros_arduino_msgs
Author(s): Patrick Goebel
autogenerated on Mon Oct 6 2014 06:51:43