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