Go to the documentation of this file.00001
00002
00003
00004
00005 #ifndef OPENREROC_PWM_MESSAGE_OPENREROC_PWM_H
00006 #define OPENREROC_PWM_MESSAGE_OPENREROC_PWM_H
00007
00008
00009 #include <string>
00010 #include <vector>
00011 #include <map>
00012
00013 #include <ros/types.h>
00014 #include <ros/serialization.h>
00015 #include <ros/builtin_message_traits.h>
00016 #include <ros/message_operations.h>
00017
00018
00019 namespace openreroc_pwm
00020 {
00021 template <class ContainerAllocator>
00022 struct openreroc_pwm_
00023 {
00024 typedef openreroc_pwm_<ContainerAllocator> Type;
00025
00026 openreroc_pwm_()
00027 : dir_left(0)
00028 , para_left(0)
00029 , dir_right(0)
00030 , para_right(0) {
00031 }
00032 openreroc_pwm_(const ContainerAllocator& _alloc)
00033 : dir_left(0)
00034 , para_left(0)
00035 , dir_right(0)
00036 , para_right(0) {
00037 }
00038
00039
00040
00041 typedef uint8_t _dir_left_type;
00042 _dir_left_type dir_left;
00043
00044 typedef uint16_t _para_left_type;
00045 _para_left_type para_left;
00046
00047 typedef uint8_t _dir_right_type;
00048 _dir_right_type dir_right;
00049
00050 typedef uint16_t _para_right_type;
00051 _para_right_type para_right;
00052
00053
00054
00055
00056 typedef boost::shared_ptr< ::openreroc_pwm::openreroc_pwm_<ContainerAllocator> > Ptr;
00057 typedef boost::shared_ptr< ::openreroc_pwm::openreroc_pwm_<ContainerAllocator> const> ConstPtr;
00058
00059 };
00060
00061 typedef ::openreroc_pwm::openreroc_pwm_<std::allocator<void> > openreroc_pwm;
00062
00063 typedef boost::shared_ptr< ::openreroc_pwm::openreroc_pwm > openreroc_pwmPtr;
00064 typedef boost::shared_ptr< ::openreroc_pwm::openreroc_pwm const> openreroc_pwmConstPtr;
00065
00066
00067
00068
00069
00070 template<typename ContainerAllocator>
00071 std::ostream& operator<<(std::ostream& s, const ::openreroc_pwm::openreroc_pwm_<ContainerAllocator> & v)
00072 {
00073 ros::message_operations::Printer< ::openreroc_pwm::openreroc_pwm_<ContainerAllocator> >::stream(s, "", v);
00074 return s;
00075 }
00076
00077 }
00078
00079 namespace ros
00080 {
00081 namespace message_traits
00082 {
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094 template <class ContainerAllocator>
00095 struct IsFixedSize< ::openreroc_pwm::openreroc_pwm_<ContainerAllocator> >
00096 : TrueType
00097 { };
00098
00099 template <class ContainerAllocator>
00100 struct IsFixedSize< ::openreroc_pwm::openreroc_pwm_<ContainerAllocator> const>
00101 : TrueType
00102 { };
00103
00104 template <class ContainerAllocator>
00105 struct IsMessage< ::openreroc_pwm::openreroc_pwm_<ContainerAllocator> >
00106 : TrueType
00107 { };
00108
00109 template <class ContainerAllocator>
00110 struct IsMessage< ::openreroc_pwm::openreroc_pwm_<ContainerAllocator> const>
00111 : TrueType
00112 { };
00113
00114 template <class ContainerAllocator>
00115 struct HasHeader< ::openreroc_pwm::openreroc_pwm_<ContainerAllocator> >
00116 : FalseType
00117 { };
00118
00119 template <class ContainerAllocator>
00120 struct HasHeader< ::openreroc_pwm::openreroc_pwm_<ContainerAllocator> const>
00121 : FalseType
00122 { };
00123
00124
00125 template<class ContainerAllocator>
00126 struct MD5Sum< ::openreroc_pwm::openreroc_pwm_<ContainerAllocator> >
00127 {
00128 static const char* value()
00129 {
00130 return "ed3c0bb8fb3ec1d8a462796b904dc121";
00131 }
00132
00133 static const char* value(const ::openreroc_pwm::openreroc_pwm_<ContainerAllocator>&) { return value(); }
00134 static const uint64_t static_value1 = 0xed3c0bb8fb3ec1d8ULL;
00135 static const uint64_t static_value2 = 0xa462796b904dc121ULL;
00136 };
00137
00138 template<class ContainerAllocator>
00139 struct DataType< ::openreroc_pwm::openreroc_pwm_<ContainerAllocator> >
00140 {
00141 static const char* value()
00142 {
00143 return "openreroc_pwm/openreroc_pwm";
00144 }
00145
00146 static const char* value(const ::openreroc_pwm::openreroc_pwm_<ContainerAllocator>&) { return value(); }
00147 };
00148
00149 template<class ContainerAllocator>
00150 struct Definition< ::openreroc_pwm::openreroc_pwm_<ContainerAllocator> >
00151 {
00152 static const char* value()
00153 {
00154 return "uint8 dir_left\n\
00155 uint16 para_left\n\
00156 uint8 dir_right\n\
00157 uint16 para_right\n\
00158 ";
00159 }
00160
00161 static const char* value(const ::openreroc_pwm::openreroc_pwm_<ContainerAllocator>&) { return value(); }
00162 };
00163
00164 }
00165 }
00166
00167 namespace ros
00168 {
00169 namespace serialization
00170 {
00171
00172 template<class ContainerAllocator> struct Serializer< ::openreroc_pwm::openreroc_pwm_<ContainerAllocator> >
00173 {
00174 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00175 {
00176 stream.next(m.dir_left);
00177 stream.next(m.para_left);
00178 stream.next(m.dir_right);
00179 stream.next(m.para_right);
00180 }
00181
00182 ROS_DECLARE_ALLINONE_SERIALIZER;
00183 };
00184
00185 }
00186 }
00187
00188 namespace ros
00189 {
00190 namespace message_operations
00191 {
00192
00193 template<class ContainerAllocator>
00194 struct Printer< ::openreroc_pwm::openreroc_pwm_<ContainerAllocator> >
00195 {
00196 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::openreroc_pwm::openreroc_pwm_<ContainerAllocator>& v)
00197 {
00198 s << indent << "dir_left: ";
00199 Printer<uint8_t>::stream(s, indent + " ", v.dir_left);
00200 s << indent << "para_left: ";
00201 Printer<uint16_t>::stream(s, indent + " ", v.para_left);
00202 s << indent << "dir_right: ";
00203 Printer<uint8_t>::stream(s, indent + " ", v.dir_right);
00204 s << indent << "para_right: ";
00205 Printer<uint16_t>::stream(s, indent + " ", v.para_right);
00206 }
00207 };
00208
00209 }
00210 }
00211
00212 #endif // OPENREROC_PWM_MESSAGE_OPENREROC_PWM_H