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