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