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