00001
00002 #ifndef CLEARPATH_BASE_MESSAGE_DIFFERENTIALOUTPUT_H
00003 #define CLEARPATH_BASE_MESSAGE_DIFFERENTIALOUTPUT_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 clearpath_base
00020 {
00021 template <class ContainerAllocator>
00022 struct DifferentialOutput_ {
00023 typedef DifferentialOutput_<ContainerAllocator> Type;
00024
00025 DifferentialOutput_()
00026 : header()
00027 , left(0.0)
00028 , right(0.0)
00029 {
00030 }
00031
00032 DifferentialOutput_(const ContainerAllocator& _alloc)
00033 : header(_alloc)
00034 , left(0.0)
00035 , right(0.0)
00036 {
00037 }
00038
00039 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00040 ::std_msgs::Header_<ContainerAllocator> header;
00041
00042 typedef double _left_type;
00043 double left;
00044
00045 typedef double _right_type;
00046 double right;
00047
00048
00049 private:
00050 static const char* __s_getDataType_() { return "clearpath_base/DifferentialOutput"; }
00051 public:
00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00053
00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00055
00056 private:
00057 static const char* __s_getMD5Sum_() { return "8f32685125452f5bdf68130369af5296"; }
00058 public:
00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00060
00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00062
00063 private:
00064 static const char* __s_getMessageDefinition_() { return "Header header\n\
00065 float64 left\n\
00066 float64 right\n\
00067 \n\
00068 ================================================================================\n\
00069 MSG: std_msgs/Header\n\
00070 # Standard metadata for higher-level stamped data types.\n\
00071 # This is generally used to communicate timestamped data \n\
00072 # in a particular coordinate frame.\n\
00073 # \n\
00074 # sequence ID: consecutively increasing ID \n\
00075 uint32 seq\n\
00076 #Two-integer timestamp that is expressed as:\n\
00077 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00078 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00079 # time-handling sugar is provided by the client library\n\
00080 time stamp\n\
00081 #Frame this data is associated with\n\
00082 # 0: no frame\n\
00083 # 1: global frame\n\
00084 string frame_id\n\
00085 \n\
00086 "; }
00087 public:
00088 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00089
00090 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00091
00092 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00093 {
00094 ros::serialization::OStream stream(write_ptr, 1000000000);
00095 ros::serialization::serialize(stream, header);
00096 ros::serialization::serialize(stream, left);
00097 ros::serialization::serialize(stream, right);
00098 return stream.getData();
00099 }
00100
00101 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00102 {
00103 ros::serialization::IStream stream(read_ptr, 1000000000);
00104 ros::serialization::deserialize(stream, header);
00105 ros::serialization::deserialize(stream, left);
00106 ros::serialization::deserialize(stream, right);
00107 return stream.getData();
00108 }
00109
00110 ROS_DEPRECATED virtual uint32_t serializationLength() const
00111 {
00112 uint32_t size = 0;
00113 size += ros::serialization::serializationLength(header);
00114 size += ros::serialization::serializationLength(left);
00115 size += ros::serialization::serializationLength(right);
00116 return size;
00117 }
00118
00119 typedef boost::shared_ptr< ::clearpath_base::DifferentialOutput_<ContainerAllocator> > Ptr;
00120 typedef boost::shared_ptr< ::clearpath_base::DifferentialOutput_<ContainerAllocator> const> ConstPtr;
00121 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00122 };
00123 typedef ::clearpath_base::DifferentialOutput_<std::allocator<void> > DifferentialOutput;
00124
00125 typedef boost::shared_ptr< ::clearpath_base::DifferentialOutput> DifferentialOutputPtr;
00126 typedef boost::shared_ptr< ::clearpath_base::DifferentialOutput const> DifferentialOutputConstPtr;
00127
00128
00129 template<typename ContainerAllocator>
00130 std::ostream& operator<<(std::ostream& s, const ::clearpath_base::DifferentialOutput_<ContainerAllocator> & v)
00131 {
00132 ros::message_operations::Printer< ::clearpath_base::DifferentialOutput_<ContainerAllocator> >::stream(s, "", v);
00133 return s;}
00134
00135 }
00136
00137 namespace ros
00138 {
00139 namespace message_traits
00140 {
00141 template<class ContainerAllocator> struct IsMessage< ::clearpath_base::DifferentialOutput_<ContainerAllocator> > : public TrueType {};
00142 template<class ContainerAllocator> struct IsMessage< ::clearpath_base::DifferentialOutput_<ContainerAllocator> const> : public TrueType {};
00143 template<class ContainerAllocator>
00144 struct MD5Sum< ::clearpath_base::DifferentialOutput_<ContainerAllocator> > {
00145 static const char* value()
00146 {
00147 return "8f32685125452f5bdf68130369af5296";
00148 }
00149
00150 static const char* value(const ::clearpath_base::DifferentialOutput_<ContainerAllocator> &) { return value(); }
00151 static const uint64_t static_value1 = 0x8f32685125452f5bULL;
00152 static const uint64_t static_value2 = 0xdf68130369af5296ULL;
00153 };
00154
00155 template<class ContainerAllocator>
00156 struct DataType< ::clearpath_base::DifferentialOutput_<ContainerAllocator> > {
00157 static const char* value()
00158 {
00159 return "clearpath_base/DifferentialOutput";
00160 }
00161
00162 static const char* value(const ::clearpath_base::DifferentialOutput_<ContainerAllocator> &) { return value(); }
00163 };
00164
00165 template<class ContainerAllocator>
00166 struct Definition< ::clearpath_base::DifferentialOutput_<ContainerAllocator> > {
00167 static const char* value()
00168 {
00169 return "Header header\n\
00170 float64 left\n\
00171 float64 right\n\
00172 \n\
00173 ================================================================================\n\
00174 MSG: std_msgs/Header\n\
00175 # Standard metadata for higher-level stamped data types.\n\
00176 # This is generally used to communicate timestamped data \n\
00177 # in a particular coordinate frame.\n\
00178 # \n\
00179 # sequence ID: consecutively increasing ID \n\
00180 uint32 seq\n\
00181 #Two-integer timestamp that is expressed as:\n\
00182 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00183 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00184 # time-handling sugar is provided by the client library\n\
00185 time stamp\n\
00186 #Frame this data is associated with\n\
00187 # 0: no frame\n\
00188 # 1: global frame\n\
00189 string frame_id\n\
00190 \n\
00191 ";
00192 }
00193
00194 static const char* value(const ::clearpath_base::DifferentialOutput_<ContainerAllocator> &) { return value(); }
00195 };
00196
00197 template<class ContainerAllocator> struct HasHeader< ::clearpath_base::DifferentialOutput_<ContainerAllocator> > : public TrueType {};
00198 template<class ContainerAllocator> struct HasHeader< const ::clearpath_base::DifferentialOutput_<ContainerAllocator> > : public TrueType {};
00199 }
00200 }
00201
00202 namespace ros
00203 {
00204 namespace serialization
00205 {
00206
00207 template<class ContainerAllocator> struct Serializer< ::clearpath_base::DifferentialOutput_<ContainerAllocator> >
00208 {
00209 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00210 {
00211 stream.next(m.header);
00212 stream.next(m.left);
00213 stream.next(m.right);
00214 }
00215
00216 ROS_DECLARE_ALLINONE_SERIALIZER;
00217 };
00218 }
00219 }
00220
00221 namespace ros
00222 {
00223 namespace message_operations
00224 {
00225
00226 template<class ContainerAllocator>
00227 struct Printer< ::clearpath_base::DifferentialOutput_<ContainerAllocator> >
00228 {
00229 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::clearpath_base::DifferentialOutput_<ContainerAllocator> & v)
00230 {
00231 s << indent << "header: ";
00232 s << std::endl;
00233 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00234 s << indent << "left: ";
00235 Printer<double>::stream(s, indent + " ", v.left);
00236 s << indent << "right: ";
00237 Printer<double>::stream(s, indent + " ", v.right);
00238 }
00239 };
00240
00241
00242 }
00243 }
00244
00245 #endif // CLEARPATH_BASE_MESSAGE_DIFFERENTIALOUTPUT_H
00246