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