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