00001
00002 #ifndef ART_MSGS_MESSAGE_CARCONTROL_H
00003 #define ART_MSGS_MESSAGE_CARCONTROL_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
00014 namespace art_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct CarControl_ : public ros::Message
00018 {
00019 typedef CarControl_<ContainerAllocator> Type;
00020
00021 CarControl_()
00022 : velocity(0.0)
00023 , angle(0.0)
00024 {
00025 }
00026
00027 CarControl_(const ContainerAllocator& _alloc)
00028 : velocity(0.0)
00029 , angle(0.0)
00030 {
00031 }
00032
00033 typedef float _velocity_type;
00034 float velocity;
00035
00036 typedef float _angle_type;
00037 float angle;
00038
00039
00040 private:
00041 static const char* __s_getDataType_() { return "art_msgs/CarControl"; }
00042 public:
00043 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00044
00045 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00046
00047 private:
00048 static const char* __s_getMD5Sum_() { return "23ee9ebc4f65684302501539608c3833"; }
00049 public:
00050 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00051
00052 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00053
00054 private:
00055 static const char* __s_getMessageDefinition_() { return "# car control command\n\
00056 # $Id: CarControl.msg 1161 2011-03-26 02:10:49Z jack.oquin $\n\
00057 \n\
00058 float32 velocity # forward velocity (m/s), negative is reverse\n\
00059 float32 angle # steering angle (degrees)\n\
00060 \n\
00061 "; }
00062 public:
00063 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00064
00065 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00066
00067 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00068 {
00069 ros::serialization::OStream stream(write_ptr, 1000000000);
00070 ros::serialization::serialize(stream, velocity);
00071 ros::serialization::serialize(stream, angle);
00072 return stream.getData();
00073 }
00074
00075 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00076 {
00077 ros::serialization::IStream stream(read_ptr, 1000000000);
00078 ros::serialization::deserialize(stream, velocity);
00079 ros::serialization::deserialize(stream, angle);
00080 return stream.getData();
00081 }
00082
00083 ROS_DEPRECATED virtual uint32_t serializationLength() const
00084 {
00085 uint32_t size = 0;
00086 size += ros::serialization::serializationLength(velocity);
00087 size += ros::serialization::serializationLength(angle);
00088 return size;
00089 }
00090
00091 typedef boost::shared_ptr< ::art_msgs::CarControl_<ContainerAllocator> > Ptr;
00092 typedef boost::shared_ptr< ::art_msgs::CarControl_<ContainerAllocator> const> ConstPtr;
00093 };
00094 typedef ::art_msgs::CarControl_<std::allocator<void> > CarControl;
00095
00096 typedef boost::shared_ptr< ::art_msgs::CarControl> CarControlPtr;
00097 typedef boost::shared_ptr< ::art_msgs::CarControl const> CarControlConstPtr;
00098
00099
00100 template<typename ContainerAllocator>
00101 std::ostream& operator<<(std::ostream& s, const ::art_msgs::CarControl_<ContainerAllocator> & v)
00102 {
00103 ros::message_operations::Printer< ::art_msgs::CarControl_<ContainerAllocator> >::stream(s, "", v);
00104 return s;}
00105
00106 }
00107
00108 namespace ros
00109 {
00110 namespace message_traits
00111 {
00112 template<class ContainerAllocator>
00113 struct MD5Sum< ::art_msgs::CarControl_<ContainerAllocator> > {
00114 static const char* value()
00115 {
00116 return "23ee9ebc4f65684302501539608c3833";
00117 }
00118
00119 static const char* value(const ::art_msgs::CarControl_<ContainerAllocator> &) { return value(); }
00120 static const uint64_t static_value1 = 0x23ee9ebc4f656843ULL;
00121 static const uint64_t static_value2 = 0x02501539608c3833ULL;
00122 };
00123
00124 template<class ContainerAllocator>
00125 struct DataType< ::art_msgs::CarControl_<ContainerAllocator> > {
00126 static const char* value()
00127 {
00128 return "art_msgs/CarControl";
00129 }
00130
00131 static const char* value(const ::art_msgs::CarControl_<ContainerAllocator> &) { return value(); }
00132 };
00133
00134 template<class ContainerAllocator>
00135 struct Definition< ::art_msgs::CarControl_<ContainerAllocator> > {
00136 static const char* value()
00137 {
00138 return "# car control command\n\
00139 # $Id: CarControl.msg 1161 2011-03-26 02:10:49Z jack.oquin $\n\
00140 \n\
00141 float32 velocity # forward velocity (m/s), negative is reverse\n\
00142 float32 angle # steering angle (degrees)\n\
00143 \n\
00144 ";
00145 }
00146
00147 static const char* value(const ::art_msgs::CarControl_<ContainerAllocator> &) { return value(); }
00148 };
00149
00150 template<class ContainerAllocator> struct IsFixedSize< ::art_msgs::CarControl_<ContainerAllocator> > : public TrueType {};
00151 }
00152 }
00153
00154 namespace ros
00155 {
00156 namespace serialization
00157 {
00158
00159 template<class ContainerAllocator> struct Serializer< ::art_msgs::CarControl_<ContainerAllocator> >
00160 {
00161 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00162 {
00163 stream.next(m.velocity);
00164 stream.next(m.angle);
00165 }
00166
00167 ROS_DECLARE_ALLINONE_SERIALIZER;
00168 };
00169 }
00170 }
00171
00172 namespace ros
00173 {
00174 namespace message_operations
00175 {
00176
00177 template<class ContainerAllocator>
00178 struct Printer< ::art_msgs::CarControl_<ContainerAllocator> >
00179 {
00180 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::CarControl_<ContainerAllocator> & v)
00181 {
00182 s << indent << "velocity: ";
00183 Printer<float>::stream(s, indent + " ", v.velocity);
00184 s << indent << "angle: ";
00185 Printer<float>::stream(s, indent + " ", v.angle);
00186 }
00187 };
00188
00189
00190 }
00191 }
00192
00193 #endif // ART_MSGS_MESSAGE_CARCONTROL_H
00194