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