$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/RCData.msg */ 00002 #ifndef ASCTEC_MSGS_MESSAGE_RCDATA_H 00003 #define ASCTEC_MSGS_MESSAGE_RCDATA_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 RCData_ { 00023 typedef RCData_<ContainerAllocator> Type; 00024 00025 RCData_() 00026 : header() 00027 , channels_in() 00028 , channels_out() 00029 , lock(0) 00030 { 00031 channels_in.assign(0); 00032 channels_out.assign(0); 00033 } 00034 00035 RCData_(const ContainerAllocator& _alloc) 00036 : header(_alloc) 00037 , channels_in() 00038 , channels_out() 00039 , lock(0) 00040 { 00041 channels_in.assign(0); 00042 channels_out.assign(0); 00043 } 00044 00045 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00046 ::std_msgs::Header_<ContainerAllocator> header; 00047 00048 typedef boost::array<int16_t, 8> _channels_in_type; 00049 boost::array<int16_t, 8> channels_in; 00050 00051 typedef boost::array<int16_t, 8> _channels_out_type; 00052 boost::array<int16_t, 8> channels_out; 00053 00054 typedef int16_t _lock_type; 00055 int16_t lock; 00056 00057 00058 ROS_DEPRECATED uint32_t get_channels_in_size() const { return (uint32_t)channels_in.size(); } 00059 ROS_DEPRECATED uint32_t get_channels_out_size() const { return (uint32_t)channels_out.size(); } 00060 private: 00061 static const char* __s_getDataType_() { return "asctec_msgs/RCData"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00064 00065 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00066 00067 private: 00068 static const char* __s_getMD5Sum_() { return "d486363e6033911606202acafb1bc1a0"; } 00069 public: 00070 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00071 00072 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00073 00074 private: 00075 static const char* __s_getMessageDefinition_() { return "# Software License Agreement (BSD License)\n\ 00076 #\n\ 00077 # Copyright (c) 2010\n\ 00078 # William Morris <morris@ee.ccny.cuny.edu>\n\ 00079 # Ivan Dryanovski <ivan.dryanovski@gmail.com>\n\ 00080 # All rights reserved.\n\ 00081 #\n\ 00082 # Redistribution and use in source and binary forms, with or without\n\ 00083 # modification, are permitted provided that the following conditions\n\ 00084 # are met:\n\ 00085 #\n\ 00086 # * Redistributions of source code must retain the above copyright\n\ 00087 # notice, this list of conditions and the following disclaimer.\n\ 00088 # * Redistributions in binary form must reproduce the above\n\ 00089 # copyright notice, this list of conditions and the following\n\ 00090 # disclaimer in the documentation and/or other materials provided\n\ 00091 # with the distribution.\n\ 00092 # * Neither the name of CCNY Robotics Lab nor the names of its\n\ 00093 # contributors may be used to endorse or promote products derived\n\ 00094 # from this software without specific prior written permission.\n\ 00095 #\n\ 00096 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\ 00097 # \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n\ 00098 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n\ 00099 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n\ 00100 # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n\ 00101 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n\ 00102 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n\ 00103 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n\ 00104 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n\ 00105 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\n\ 00106 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n\ 00107 # POSSIBILITY OF SUCH DAMAGE.\n\ 00108 \n\ 00109 # struct RC_DATA\n\ 00110 # {\n\ 00111 # //channels as read from R/C receiver\n\ 00112 # unsigned short channels_in[8];\n\ 00113 # //channels bias free, remapped and scaled to 0..4095\n\ 00114 # unsigned short channels_out[8];\n\ 00115 # //Indicator for valid R/C receiption\n\ 00116 # unsigned char lock;\n\ 00117 # };\n\ 00118 Header header\n\ 00119 # channels as read from R/C receiver\n\ 00120 int16[8] channels_in\n\ 00121 \n\ 00122 #channels bias free, remapped and scaled to 0..4095\n\ 00123 int16[8] channels_out\n\ 00124 \n\ 00125 #indicator for valid R/C receiption\n\ 00126 int16 lock\n\ 00127 \n\ 00128 ================================================================================\n\ 00129 MSG: std_msgs/Header\n\ 00130 # Standard metadata for higher-level stamped data types.\n\ 00131 # This is generally used to communicate timestamped data \n\ 00132 # in a particular coordinate frame.\n\ 00133 # \n\ 00134 # sequence ID: consecutively increasing ID \n\ 00135 uint32 seq\n\ 00136 #Two-integer timestamp that is expressed as:\n\ 00137 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00138 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00139 # time-handling sugar is provided by the client library\n\ 00140 time stamp\n\ 00141 #Frame this data is associated with\n\ 00142 # 0: no frame\n\ 00143 # 1: global frame\n\ 00144 string frame_id\n\ 00145 \n\ 00146 "; } 00147 public: 00148 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00149 00150 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00151 00152 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00153 { 00154 ros::serialization::OStream stream(write_ptr, 1000000000); 00155 ros::serialization::serialize(stream, header); 00156 ros::serialization::serialize(stream, channels_in); 00157 ros::serialization::serialize(stream, channels_out); 00158 ros::serialization::serialize(stream, lock); 00159 return stream.getData(); 00160 } 00161 00162 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00163 { 00164 ros::serialization::IStream stream(read_ptr, 1000000000); 00165 ros::serialization::deserialize(stream, header); 00166 ros::serialization::deserialize(stream, channels_in); 00167 ros::serialization::deserialize(stream, channels_out); 00168 ros::serialization::deserialize(stream, lock); 00169 return stream.getData(); 00170 } 00171 00172 ROS_DEPRECATED virtual uint32_t serializationLength() const 00173 { 00174 uint32_t size = 0; 00175 size += ros::serialization::serializationLength(header); 00176 size += ros::serialization::serializationLength(channels_in); 00177 size += ros::serialization::serializationLength(channels_out); 00178 size += ros::serialization::serializationLength(lock); 00179 return size; 00180 } 00181 00182 typedef boost::shared_ptr< ::asctec_msgs::RCData_<ContainerAllocator> > Ptr; 00183 typedef boost::shared_ptr< ::asctec_msgs::RCData_<ContainerAllocator> const> ConstPtr; 00184 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00185 }; // struct RCData 00186 typedef ::asctec_msgs::RCData_<std::allocator<void> > RCData; 00187 00188 typedef boost::shared_ptr< ::asctec_msgs::RCData> RCDataPtr; 00189 typedef boost::shared_ptr< ::asctec_msgs::RCData const> RCDataConstPtr; 00190 00191 00192 template<typename ContainerAllocator> 00193 std::ostream& operator<<(std::ostream& s, const ::asctec_msgs::RCData_<ContainerAllocator> & v) 00194 { 00195 ros::message_operations::Printer< ::asctec_msgs::RCData_<ContainerAllocator> >::stream(s, "", v); 00196 return s;} 00197 00198 } // namespace asctec_msgs 00199 00200 namespace ros 00201 { 00202 namespace message_traits 00203 { 00204 template<class ContainerAllocator> struct IsMessage< ::asctec_msgs::RCData_<ContainerAllocator> > : public TrueType {}; 00205 template<class ContainerAllocator> struct IsMessage< ::asctec_msgs::RCData_<ContainerAllocator> const> : public TrueType {}; 00206 template<class ContainerAllocator> 00207 struct MD5Sum< ::asctec_msgs::RCData_<ContainerAllocator> > { 00208 static const char* value() 00209 { 00210 return "d486363e6033911606202acafb1bc1a0"; 00211 } 00212 00213 static const char* value(const ::asctec_msgs::RCData_<ContainerAllocator> &) { return value(); } 00214 static const uint64_t static_value1 = 0xd486363e60339116ULL; 00215 static const uint64_t static_value2 = 0x06202acafb1bc1a0ULL; 00216 }; 00217 00218 template<class ContainerAllocator> 00219 struct DataType< ::asctec_msgs::RCData_<ContainerAllocator> > { 00220 static const char* value() 00221 { 00222 return "asctec_msgs/RCData"; 00223 } 00224 00225 static const char* value(const ::asctec_msgs::RCData_<ContainerAllocator> &) { return value(); } 00226 }; 00227 00228 template<class ContainerAllocator> 00229 struct Definition< ::asctec_msgs::RCData_<ContainerAllocator> > { 00230 static const char* value() 00231 { 00232 return "# Software License Agreement (BSD License)\n\ 00233 #\n\ 00234 # Copyright (c) 2010\n\ 00235 # William Morris <morris@ee.ccny.cuny.edu>\n\ 00236 # Ivan Dryanovski <ivan.dryanovski@gmail.com>\n\ 00237 # All rights reserved.\n\ 00238 #\n\ 00239 # Redistribution and use in source and binary forms, with or without\n\ 00240 # modification, are permitted provided that the following conditions\n\ 00241 # are met:\n\ 00242 #\n\ 00243 # * Redistributions of source code must retain the above copyright\n\ 00244 # notice, this list of conditions and the following disclaimer.\n\ 00245 # * Redistributions in binary form must reproduce the above\n\ 00246 # copyright notice, this list of conditions and the following\n\ 00247 # disclaimer in the documentation and/or other materials provided\n\ 00248 # with the distribution.\n\ 00249 # * Neither the name of CCNY Robotics Lab nor the names of its\n\ 00250 # contributors may be used to endorse or promote products derived\n\ 00251 # from this software without specific prior written permission.\n\ 00252 #\n\ 00253 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\ 00254 # \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n\ 00255 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n\ 00256 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n\ 00257 # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n\ 00258 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n\ 00259 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n\ 00260 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n\ 00261 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n\ 00262 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\n\ 00263 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n\ 00264 # POSSIBILITY OF SUCH DAMAGE.\n\ 00265 \n\ 00266 # struct RC_DATA\n\ 00267 # {\n\ 00268 # //channels as read from R/C receiver\n\ 00269 # unsigned short channels_in[8];\n\ 00270 # //channels bias free, remapped and scaled to 0..4095\n\ 00271 # unsigned short channels_out[8];\n\ 00272 # //Indicator for valid R/C receiption\n\ 00273 # unsigned char lock;\n\ 00274 # };\n\ 00275 Header header\n\ 00276 # channels as read from R/C receiver\n\ 00277 int16[8] channels_in\n\ 00278 \n\ 00279 #channels bias free, remapped and scaled to 0..4095\n\ 00280 int16[8] channels_out\n\ 00281 \n\ 00282 #indicator for valid R/C receiption\n\ 00283 int16 lock\n\ 00284 \n\ 00285 ================================================================================\n\ 00286 MSG: std_msgs/Header\n\ 00287 # Standard metadata for higher-level stamped data types.\n\ 00288 # This is generally used to communicate timestamped data \n\ 00289 # in a particular coordinate frame.\n\ 00290 # \n\ 00291 # sequence ID: consecutively increasing ID \n\ 00292 uint32 seq\n\ 00293 #Two-integer timestamp that is expressed as:\n\ 00294 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00295 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00296 # time-handling sugar is provided by the client library\n\ 00297 time stamp\n\ 00298 #Frame this data is associated with\n\ 00299 # 0: no frame\n\ 00300 # 1: global frame\n\ 00301 string frame_id\n\ 00302 \n\ 00303 "; 00304 } 00305 00306 static const char* value(const ::asctec_msgs::RCData_<ContainerAllocator> &) { return value(); } 00307 }; 00308 00309 template<class ContainerAllocator> struct HasHeader< ::asctec_msgs::RCData_<ContainerAllocator> > : public TrueType {}; 00310 template<class ContainerAllocator> struct HasHeader< const ::asctec_msgs::RCData_<ContainerAllocator> > : public TrueType {}; 00311 } // namespace message_traits 00312 } // namespace ros 00313 00314 namespace ros 00315 { 00316 namespace serialization 00317 { 00318 00319 template<class ContainerAllocator> struct Serializer< ::asctec_msgs::RCData_<ContainerAllocator> > 00320 { 00321 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00322 { 00323 stream.next(m.header); 00324 stream.next(m.channels_in); 00325 stream.next(m.channels_out); 00326 stream.next(m.lock); 00327 } 00328 00329 ROS_DECLARE_ALLINONE_SERIALIZER; 00330 }; // struct RCData_ 00331 } // namespace serialization 00332 } // namespace ros 00333 00334 namespace ros 00335 { 00336 namespace message_operations 00337 { 00338 00339 template<class ContainerAllocator> 00340 struct Printer< ::asctec_msgs::RCData_<ContainerAllocator> > 00341 { 00342 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::asctec_msgs::RCData_<ContainerAllocator> & v) 00343 { 00344 s << indent << "header: "; 00345 s << std::endl; 00346 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00347 s << indent << "channels_in[]" << std::endl; 00348 for (size_t i = 0; i < v.channels_in.size(); ++i) 00349 { 00350 s << indent << " channels_in[" << i << "]: "; 00351 Printer<int16_t>::stream(s, indent + " ", v.channels_in[i]); 00352 } 00353 s << indent << "channels_out[]" << std::endl; 00354 for (size_t i = 0; i < v.channels_out.size(); ++i) 00355 { 00356 s << indent << " channels_out[" << i << "]: "; 00357 Printer<int16_t>::stream(s, indent + " ", v.channels_out[i]); 00358 } 00359 s << indent << "lock: "; 00360 Printer<int16_t>::stream(s, indent + " ", v.lock); 00361 } 00362 }; 00363 00364 00365 } // namespace message_operations 00366 } // namespace ros 00367 00368 #endif // ASCTEC_MSGS_MESSAGE_RCDATA_H 00369