$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-asctec_drivers/doc_stacks/2013-03-05_11-30-36.379198/asctec_drivers/asctec_msgs/msg/LLStatus.msg */ 00002 #ifndef ASCTEC_MSGS_MESSAGE_LLSTATUS_H 00003 #define ASCTEC_MSGS_MESSAGE_LLSTATUS_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 asctec_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct LLStatus_ { 00023 typedef LLStatus_<ContainerAllocator> Type; 00024 00025 LLStatus_() 00026 : header() 00027 , battery_voltage_1(0) 00028 , battery_voltage_2(0) 00029 , status(0) 00030 , cpu_load(0) 00031 , compass_enabled(0) 00032 , chksum_error(0) 00033 , flying(0) 00034 , motors_on(0) 00035 , flightMode(0) 00036 , up_time(0) 00037 { 00038 } 00039 00040 LLStatus_(const ContainerAllocator& _alloc) 00041 : header(_alloc) 00042 , battery_voltage_1(0) 00043 , battery_voltage_2(0) 00044 , status(0) 00045 , cpu_load(0) 00046 , compass_enabled(0) 00047 , chksum_error(0) 00048 , flying(0) 00049 , motors_on(0) 00050 , flightMode(0) 00051 , up_time(0) 00052 { 00053 } 00054 00055 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00056 ::std_msgs::Header_<ContainerAllocator> header; 00057 00058 typedef int16_t _battery_voltage_1_type; 00059 int16_t battery_voltage_1; 00060 00061 typedef int16_t _battery_voltage_2_type; 00062 int16_t battery_voltage_2; 00063 00064 typedef int16_t _status_type; 00065 int16_t status; 00066 00067 typedef int16_t _cpu_load_type; 00068 int16_t cpu_load; 00069 00070 typedef int8_t _compass_enabled_type; 00071 int8_t compass_enabled; 00072 00073 typedef int8_t _chksum_error_type; 00074 int8_t chksum_error; 00075 00076 typedef int8_t _flying_type; 00077 int8_t flying; 00078 00079 typedef int8_t _motors_on_type; 00080 int8_t motors_on; 00081 00082 typedef int16_t _flightMode_type; 00083 int16_t flightMode; 00084 00085 typedef int16_t _up_time_type; 00086 int16_t up_time; 00087 00088 00089 private: 00090 static const char* __s_getDataType_() { return "asctec_msgs/LLStatus"; } 00091 public: 00092 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00093 00094 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00095 00096 private: 00097 static const char* __s_getMD5Sum_() { return "e0dae36eea5774367686a40e1843c5e2"; } 00098 public: 00099 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00100 00101 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00102 00103 private: 00104 static const char* __s_getMessageDefinition_() { return "# Software License Agreement (BSD License)\n\ 00105 #\n\ 00106 # Copyright (c) 2010\n\ 00107 # William Morris <morris@ee.ccny.cuny.edu>\n\ 00108 # Ivan Dryanovski <ivan.dryanovski@gmail.com>\n\ 00109 # All rights reserved.\n\ 00110 #\n\ 00111 # Redistribution and use in source and binary forms, with or without\n\ 00112 # modification, are permitted provided that the following conditions\n\ 00113 # are met:\n\ 00114 #\n\ 00115 # * Redistributions of source code must retain the above copyright\n\ 00116 # notice, this list of conditions and the following disclaimer.\n\ 00117 # * Redistributions in binary form must reproduce the above\n\ 00118 # copyright notice, this list of conditions and the following\n\ 00119 # disclaimer in the documentation and/or other materials provided\n\ 00120 # with the distribution.\n\ 00121 # * Neither the name of CCNY Robotics Lab nor the names of its\n\ 00122 # contributors may be used to endorse or promote products derived\n\ 00123 # from this software without specific prior written permission.\n\ 00124 #\n\ 00125 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\ 00126 # \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n\ 00127 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n\ 00128 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n\ 00129 # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n\ 00130 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n\ 00131 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n\ 00132 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n\ 00133 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n\ 00134 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\n\ 00135 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n\ 00136 # POSSIBILITY OF SUCH DAMAGE.\n\ 00137 \n\ 00138 Header header\n\ 00139 # battery voltages in mV\n\ 00140 int16 battery_voltage_1\n\ 00141 int16 battery_voltage_2\n\ 00142 # dont care\n\ 00143 int16 status\n\ 00144 # Controller cycles per second (should be about 1000)\n\ 00145 int16 cpu_load\n\ 00146 # dont care\n\ 00147 int8 compass_enabled\n\ 00148 int8 chksum_error\n\ 00149 int8 flying\n\ 00150 int8 motors_on\n\ 00151 int16 flightMode\n\ 00152 # Time motors are turning\n\ 00153 int16 up_time\n\ 00154 \n\ 00155 \n\ 00156 ================================================================================\n\ 00157 MSG: std_msgs/Header\n\ 00158 # Standard metadata for higher-level stamped data types.\n\ 00159 # This is generally used to communicate timestamped data \n\ 00160 # in a particular coordinate frame.\n\ 00161 # \n\ 00162 # sequence ID: consecutively increasing ID \n\ 00163 uint32 seq\n\ 00164 #Two-integer timestamp that is expressed as:\n\ 00165 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00166 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00167 # time-handling sugar is provided by the client library\n\ 00168 time stamp\n\ 00169 #Frame this data is associated with\n\ 00170 # 0: no frame\n\ 00171 # 1: global frame\n\ 00172 string frame_id\n\ 00173 \n\ 00174 "; } 00175 public: 00176 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00177 00178 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00179 00180 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00181 { 00182 ros::serialization::OStream stream(write_ptr, 1000000000); 00183 ros::serialization::serialize(stream, header); 00184 ros::serialization::serialize(stream, battery_voltage_1); 00185 ros::serialization::serialize(stream, battery_voltage_2); 00186 ros::serialization::serialize(stream, status); 00187 ros::serialization::serialize(stream, cpu_load); 00188 ros::serialization::serialize(stream, compass_enabled); 00189 ros::serialization::serialize(stream, chksum_error); 00190 ros::serialization::serialize(stream, flying); 00191 ros::serialization::serialize(stream, motors_on); 00192 ros::serialization::serialize(stream, flightMode); 00193 ros::serialization::serialize(stream, up_time); 00194 return stream.getData(); 00195 } 00196 00197 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00198 { 00199 ros::serialization::IStream stream(read_ptr, 1000000000); 00200 ros::serialization::deserialize(stream, header); 00201 ros::serialization::deserialize(stream, battery_voltage_1); 00202 ros::serialization::deserialize(stream, battery_voltage_2); 00203 ros::serialization::deserialize(stream, status); 00204 ros::serialization::deserialize(stream, cpu_load); 00205 ros::serialization::deserialize(stream, compass_enabled); 00206 ros::serialization::deserialize(stream, chksum_error); 00207 ros::serialization::deserialize(stream, flying); 00208 ros::serialization::deserialize(stream, motors_on); 00209 ros::serialization::deserialize(stream, flightMode); 00210 ros::serialization::deserialize(stream, up_time); 00211 return stream.getData(); 00212 } 00213 00214 ROS_DEPRECATED virtual uint32_t serializationLength() const 00215 { 00216 uint32_t size = 0; 00217 size += ros::serialization::serializationLength(header); 00218 size += ros::serialization::serializationLength(battery_voltage_1); 00219 size += ros::serialization::serializationLength(battery_voltage_2); 00220 size += ros::serialization::serializationLength(status); 00221 size += ros::serialization::serializationLength(cpu_load); 00222 size += ros::serialization::serializationLength(compass_enabled); 00223 size += ros::serialization::serializationLength(chksum_error); 00224 size += ros::serialization::serializationLength(flying); 00225 size += ros::serialization::serializationLength(motors_on); 00226 size += ros::serialization::serializationLength(flightMode); 00227 size += ros::serialization::serializationLength(up_time); 00228 return size; 00229 } 00230 00231 typedef boost::shared_ptr< ::asctec_msgs::LLStatus_<ContainerAllocator> > Ptr; 00232 typedef boost::shared_ptr< ::asctec_msgs::LLStatus_<ContainerAllocator> const> ConstPtr; 00233 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00234 }; // struct LLStatus 00235 typedef ::asctec_msgs::LLStatus_<std::allocator<void> > LLStatus; 00236 00237 typedef boost::shared_ptr< ::asctec_msgs::LLStatus> LLStatusPtr; 00238 typedef boost::shared_ptr< ::asctec_msgs::LLStatus const> LLStatusConstPtr; 00239 00240 00241 template<typename ContainerAllocator> 00242 std::ostream& operator<<(std::ostream& s, const ::asctec_msgs::LLStatus_<ContainerAllocator> & v) 00243 { 00244 ros::message_operations::Printer< ::asctec_msgs::LLStatus_<ContainerAllocator> >::stream(s, "", v); 00245 return s;} 00246 00247 } // namespace asctec_msgs 00248 00249 namespace ros 00250 { 00251 namespace message_traits 00252 { 00253 template<class ContainerAllocator> struct IsMessage< ::asctec_msgs::LLStatus_<ContainerAllocator> > : public TrueType {}; 00254 template<class ContainerAllocator> struct IsMessage< ::asctec_msgs::LLStatus_<ContainerAllocator> const> : public TrueType {}; 00255 template<class ContainerAllocator> 00256 struct MD5Sum< ::asctec_msgs::LLStatus_<ContainerAllocator> > { 00257 static const char* value() 00258 { 00259 return "e0dae36eea5774367686a40e1843c5e2"; 00260 } 00261 00262 static const char* value(const ::asctec_msgs::LLStatus_<ContainerAllocator> &) { return value(); } 00263 static const uint64_t static_value1 = 0xe0dae36eea577436ULL; 00264 static const uint64_t static_value2 = 0x7686a40e1843c5e2ULL; 00265 }; 00266 00267 template<class ContainerAllocator> 00268 struct DataType< ::asctec_msgs::LLStatus_<ContainerAllocator> > { 00269 static const char* value() 00270 { 00271 return "asctec_msgs/LLStatus"; 00272 } 00273 00274 static const char* value(const ::asctec_msgs::LLStatus_<ContainerAllocator> &) { return value(); } 00275 }; 00276 00277 template<class ContainerAllocator> 00278 struct Definition< ::asctec_msgs::LLStatus_<ContainerAllocator> > { 00279 static const char* value() 00280 { 00281 return "# Software License Agreement (BSD License)\n\ 00282 #\n\ 00283 # Copyright (c) 2010\n\ 00284 # William Morris <morris@ee.ccny.cuny.edu>\n\ 00285 # Ivan Dryanovski <ivan.dryanovski@gmail.com>\n\ 00286 # All rights reserved.\n\ 00287 #\n\ 00288 # Redistribution and use in source and binary forms, with or without\n\ 00289 # modification, are permitted provided that the following conditions\n\ 00290 # are met:\n\ 00291 #\n\ 00292 # * Redistributions of source code must retain the above copyright\n\ 00293 # notice, this list of conditions and the following disclaimer.\n\ 00294 # * Redistributions in binary form must reproduce the above\n\ 00295 # copyright notice, this list of conditions and the following\n\ 00296 # disclaimer in the documentation and/or other materials provided\n\ 00297 # with the distribution.\n\ 00298 # * Neither the name of CCNY Robotics Lab nor the names of its\n\ 00299 # contributors may be used to endorse or promote products derived\n\ 00300 # from this software without specific prior written permission.\n\ 00301 #\n\ 00302 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\ 00303 # \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n\ 00304 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n\ 00305 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n\ 00306 # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n\ 00307 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n\ 00308 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n\ 00309 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n\ 00310 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n\ 00311 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\n\ 00312 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n\ 00313 # POSSIBILITY OF SUCH DAMAGE.\n\ 00314 \n\ 00315 Header header\n\ 00316 # battery voltages in mV\n\ 00317 int16 battery_voltage_1\n\ 00318 int16 battery_voltage_2\n\ 00319 # dont care\n\ 00320 int16 status\n\ 00321 # Controller cycles per second (should be about 1000)\n\ 00322 int16 cpu_load\n\ 00323 # dont care\n\ 00324 int8 compass_enabled\n\ 00325 int8 chksum_error\n\ 00326 int8 flying\n\ 00327 int8 motors_on\n\ 00328 int16 flightMode\n\ 00329 # Time motors are turning\n\ 00330 int16 up_time\n\ 00331 \n\ 00332 \n\ 00333 ================================================================================\n\ 00334 MSG: std_msgs/Header\n\ 00335 # Standard metadata for higher-level stamped data types.\n\ 00336 # This is generally used to communicate timestamped data \n\ 00337 # in a particular coordinate frame.\n\ 00338 # \n\ 00339 # sequence ID: consecutively increasing ID \n\ 00340 uint32 seq\n\ 00341 #Two-integer timestamp that is expressed as:\n\ 00342 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00343 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00344 # time-handling sugar is provided by the client library\n\ 00345 time stamp\n\ 00346 #Frame this data is associated with\n\ 00347 # 0: no frame\n\ 00348 # 1: global frame\n\ 00349 string frame_id\n\ 00350 \n\ 00351 "; 00352 } 00353 00354 static const char* value(const ::asctec_msgs::LLStatus_<ContainerAllocator> &) { return value(); } 00355 }; 00356 00357 template<class ContainerAllocator> struct HasHeader< ::asctec_msgs::LLStatus_<ContainerAllocator> > : public TrueType {}; 00358 template<class ContainerAllocator> struct HasHeader< const ::asctec_msgs::LLStatus_<ContainerAllocator> > : public TrueType {}; 00359 } // namespace message_traits 00360 } // namespace ros 00361 00362 namespace ros 00363 { 00364 namespace serialization 00365 { 00366 00367 template<class ContainerAllocator> struct Serializer< ::asctec_msgs::LLStatus_<ContainerAllocator> > 00368 { 00369 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00370 { 00371 stream.next(m.header); 00372 stream.next(m.battery_voltage_1); 00373 stream.next(m.battery_voltage_2); 00374 stream.next(m.status); 00375 stream.next(m.cpu_load); 00376 stream.next(m.compass_enabled); 00377 stream.next(m.chksum_error); 00378 stream.next(m.flying); 00379 stream.next(m.motors_on); 00380 stream.next(m.flightMode); 00381 stream.next(m.up_time); 00382 } 00383 00384 ROS_DECLARE_ALLINONE_SERIALIZER; 00385 }; // struct LLStatus_ 00386 } // namespace serialization 00387 } // namespace ros 00388 00389 namespace ros 00390 { 00391 namespace message_operations 00392 { 00393 00394 template<class ContainerAllocator> 00395 struct Printer< ::asctec_msgs::LLStatus_<ContainerAllocator> > 00396 { 00397 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::asctec_msgs::LLStatus_<ContainerAllocator> & v) 00398 { 00399 s << indent << "header: "; 00400 s << std::endl; 00401 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00402 s << indent << "battery_voltage_1: "; 00403 Printer<int16_t>::stream(s, indent + " ", v.battery_voltage_1); 00404 s << indent << "battery_voltage_2: "; 00405 Printer<int16_t>::stream(s, indent + " ", v.battery_voltage_2); 00406 s << indent << "status: "; 00407 Printer<int16_t>::stream(s, indent + " ", v.status); 00408 s << indent << "cpu_load: "; 00409 Printer<int16_t>::stream(s, indent + " ", v.cpu_load); 00410 s << indent << "compass_enabled: "; 00411 Printer<int8_t>::stream(s, indent + " ", v.compass_enabled); 00412 s << indent << "chksum_error: "; 00413 Printer<int8_t>::stream(s, indent + " ", v.chksum_error); 00414 s << indent << "flying: "; 00415 Printer<int8_t>::stream(s, indent + " ", v.flying); 00416 s << indent << "motors_on: "; 00417 Printer<int8_t>::stream(s, indent + " ", v.motors_on); 00418 s << indent << "flightMode: "; 00419 Printer<int16_t>::stream(s, indent + " ", v.flightMode); 00420 s << indent << "up_time: "; 00421 Printer<int16_t>::stream(s, indent + " ", v.up_time); 00422 } 00423 }; 00424 00425 00426 } // namespace message_operations 00427 } // namespace ros 00428 00429 #endif // ASCTEC_MSGS_MESSAGE_LLSTATUS_H 00430