$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/LearningCommand.msg */ 00002 #ifndef ART_MSGS_MESSAGE_LEARNINGCOMMAND_H 00003 #define ART_MSGS_MESSAGE_LEARNINGCOMMAND_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 art_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct LearningCommand_ { 00023 typedef LearningCommand_<ContainerAllocator> Type; 00024 00025 LearningCommand_() 00026 : header() 00027 , pilotActive(0) 00028 { 00029 } 00030 00031 LearningCommand_(const ContainerAllocator& _alloc) 00032 : header(_alloc) 00033 , pilotActive(0) 00034 { 00035 } 00036 00037 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00038 ::std_msgs::Header_<ContainerAllocator> header; 00039 00040 typedef int8_t _pilotActive_type; 00041 int8_t pilotActive; 00042 00043 00044 private: 00045 static const char* __s_getDataType_() { return "art_msgs/LearningCommand"; } 00046 public: 00047 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00048 00049 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00050 00051 private: 00052 static const char* __s_getMD5Sum_() { return "ddd1e597cd0c1d6b0d1497108b462a51"; } 00053 public: 00054 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00055 00056 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00057 00058 private: 00059 static const char* __s_getMessageDefinition_() { return "# Lets us turn on or off different modules using a message\n\ 00060 # For example, I can disable pilot for some parts of learning\n\ 00061 \n\ 00062 # $Id: LearningCommand.msg 644 2010-09-28 03:19:07Z jack.oquin $\n\ 00063 \n\ 00064 Header header\n\ 00065 int8 pilotActive\n\ 00066 \n\ 00067 ================================================================================\n\ 00068 MSG: std_msgs/Header\n\ 00069 # Standard metadata for higher-level stamped data types.\n\ 00070 # This is generally used to communicate timestamped data \n\ 00071 # in a particular coordinate frame.\n\ 00072 # \n\ 00073 # sequence ID: consecutively increasing ID \n\ 00074 uint32 seq\n\ 00075 #Two-integer timestamp that is expressed as:\n\ 00076 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00077 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00078 # time-handling sugar is provided by the client library\n\ 00079 time stamp\n\ 00080 #Frame this data is associated with\n\ 00081 # 0: no frame\n\ 00082 # 1: global frame\n\ 00083 string frame_id\n\ 00084 \n\ 00085 "; } 00086 public: 00087 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00088 00089 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00090 00091 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00092 { 00093 ros::serialization::OStream stream(write_ptr, 1000000000); 00094 ros::serialization::serialize(stream, header); 00095 ros::serialization::serialize(stream, pilotActive); 00096 return stream.getData(); 00097 } 00098 00099 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00100 { 00101 ros::serialization::IStream stream(read_ptr, 1000000000); 00102 ros::serialization::deserialize(stream, header); 00103 ros::serialization::deserialize(stream, pilotActive); 00104 return stream.getData(); 00105 } 00106 00107 ROS_DEPRECATED virtual uint32_t serializationLength() const 00108 { 00109 uint32_t size = 0; 00110 size += ros::serialization::serializationLength(header); 00111 size += ros::serialization::serializationLength(pilotActive); 00112 return size; 00113 } 00114 00115 typedef boost::shared_ptr< ::art_msgs::LearningCommand_<ContainerAllocator> > Ptr; 00116 typedef boost::shared_ptr< ::art_msgs::LearningCommand_<ContainerAllocator> const> ConstPtr; 00117 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00118 }; // struct LearningCommand 00119 typedef ::art_msgs::LearningCommand_<std::allocator<void> > LearningCommand; 00120 00121 typedef boost::shared_ptr< ::art_msgs::LearningCommand> LearningCommandPtr; 00122 typedef boost::shared_ptr< ::art_msgs::LearningCommand const> LearningCommandConstPtr; 00123 00124 00125 template<typename ContainerAllocator> 00126 std::ostream& operator<<(std::ostream& s, const ::art_msgs::LearningCommand_<ContainerAllocator> & v) 00127 { 00128 ros::message_operations::Printer< ::art_msgs::LearningCommand_<ContainerAllocator> >::stream(s, "", v); 00129 return s;} 00130 00131 } // namespace art_msgs 00132 00133 namespace ros 00134 { 00135 namespace message_traits 00136 { 00137 template<class ContainerAllocator> struct IsMessage< ::art_msgs::LearningCommand_<ContainerAllocator> > : public TrueType {}; 00138 template<class ContainerAllocator> struct IsMessage< ::art_msgs::LearningCommand_<ContainerAllocator> const> : public TrueType {}; 00139 template<class ContainerAllocator> 00140 struct MD5Sum< ::art_msgs::LearningCommand_<ContainerAllocator> > { 00141 static const char* value() 00142 { 00143 return "ddd1e597cd0c1d6b0d1497108b462a51"; 00144 } 00145 00146 static const char* value(const ::art_msgs::LearningCommand_<ContainerAllocator> &) { return value(); } 00147 static const uint64_t static_value1 = 0xddd1e597cd0c1d6bULL; 00148 static const uint64_t static_value2 = 0x0d1497108b462a51ULL; 00149 }; 00150 00151 template<class ContainerAllocator> 00152 struct DataType< ::art_msgs::LearningCommand_<ContainerAllocator> > { 00153 static const char* value() 00154 { 00155 return "art_msgs/LearningCommand"; 00156 } 00157 00158 static const char* value(const ::art_msgs::LearningCommand_<ContainerAllocator> &) { return value(); } 00159 }; 00160 00161 template<class ContainerAllocator> 00162 struct Definition< ::art_msgs::LearningCommand_<ContainerAllocator> > { 00163 static const char* value() 00164 { 00165 return "# Lets us turn on or off different modules using a message\n\ 00166 # For example, I can disable pilot for some parts of learning\n\ 00167 \n\ 00168 # $Id: LearningCommand.msg 644 2010-09-28 03:19:07Z jack.oquin $\n\ 00169 \n\ 00170 Header header\n\ 00171 int8 pilotActive\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 ::art_msgs::LearningCommand_<ContainerAllocator> &) { return value(); } 00195 }; 00196 00197 template<class ContainerAllocator> struct HasHeader< ::art_msgs::LearningCommand_<ContainerAllocator> > : public TrueType {}; 00198 template<class ContainerAllocator> struct HasHeader< const ::art_msgs::LearningCommand_<ContainerAllocator> > : public TrueType {}; 00199 } // namespace message_traits 00200 } // namespace ros 00201 00202 namespace ros 00203 { 00204 namespace serialization 00205 { 00206 00207 template<class ContainerAllocator> struct Serializer< ::art_msgs::LearningCommand_<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.pilotActive); 00213 } 00214 00215 ROS_DECLARE_ALLINONE_SERIALIZER; 00216 }; // struct LearningCommand_ 00217 } // namespace serialization 00218 } // namespace ros 00219 00220 namespace ros 00221 { 00222 namespace message_operations 00223 { 00224 00225 template<class ContainerAllocator> 00226 struct Printer< ::art_msgs::LearningCommand_<ContainerAllocator> > 00227 { 00228 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::LearningCommand_<ContainerAllocator> & v) 00229 { 00230 s << indent << "header: "; 00231 s << std::endl; 00232 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00233 s << indent << "pilotActive: "; 00234 Printer<int8_t>::stream(s, indent + " ", v.pilotActive); 00235 } 00236 }; 00237 00238 00239 } // namespace message_operations 00240 } // namespace ros 00241 00242 #endif // ART_MSGS_MESSAGE_LEARNINGCOMMAND_H 00243