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