00001
00002 #ifndef TURTLEBOT_CALIBRATION_MESSAGE_SCANANGLE_H
00003 #define TURTLEBOT_CALIBRATION_MESSAGE_SCANANGLE_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 turtlebot_calibration
00016 {
00017 template <class ContainerAllocator>
00018 struct ScanAngle_ : public ros::Message
00019 {
00020 typedef ScanAngle_<ContainerAllocator> Type;
00021
00022 ScanAngle_()
00023 : header()
00024 , scan_angle(0.0)
00025 {
00026 }
00027
00028 ScanAngle_(const ContainerAllocator& _alloc)
00029 : header(_alloc)
00030 , scan_angle(0.0)
00031 {
00032 }
00033
00034 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00035 ::std_msgs::Header_<ContainerAllocator> header;
00036
00037 typedef double _scan_angle_type;
00038 double scan_angle;
00039
00040
00041 private:
00042 static const char* __s_getDataType_() { return "turtlebot_calibration/ScanAngle"; }
00043 public:
00044 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00045
00046 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00047
00048 private:
00049 static const char* __s_getMD5Sum_() { return "06e2c839dc5c7f5c13ac09a8b4ff0a6a"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00052
00053 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00054
00055 private:
00056 static const char* __s_getMessageDefinition_() { return "Header header\n\
00057 float64 scan_angle\n\
00058 ================================================================================\n\
00059 MSG: std_msgs/Header\n\
00060 # Standard metadata for higher-level stamped data types.\n\
00061 # This is generally used to communicate timestamped data \n\
00062 # in a particular coordinate frame.\n\
00063 # \n\
00064 # sequence ID: consecutively increasing ID \n\
00065 uint32 seq\n\
00066 #Two-integer timestamp that is expressed as:\n\
00067 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00068 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00069 # time-handling sugar is provided by the client library\n\
00070 time stamp\n\
00071 #Frame this data is associated with\n\
00072 # 0: no frame\n\
00073 # 1: global frame\n\
00074 string frame_id\n\
00075 \n\
00076 "; }
00077 public:
00078 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00079
00080 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00081
00082 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00083 {
00084 ros::serialization::OStream stream(write_ptr, 1000000000);
00085 ros::serialization::serialize(stream, header);
00086 ros::serialization::serialize(stream, scan_angle);
00087 return stream.getData();
00088 }
00089
00090 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00091 {
00092 ros::serialization::IStream stream(read_ptr, 1000000000);
00093 ros::serialization::deserialize(stream, header);
00094 ros::serialization::deserialize(stream, scan_angle);
00095 return stream.getData();
00096 }
00097
00098 ROS_DEPRECATED virtual uint32_t serializationLength() const
00099 {
00100 uint32_t size = 0;
00101 size += ros::serialization::serializationLength(header);
00102 size += ros::serialization::serializationLength(scan_angle);
00103 return size;
00104 }
00105
00106 typedef boost::shared_ptr< ::turtlebot_calibration::ScanAngle_<ContainerAllocator> > Ptr;
00107 typedef boost::shared_ptr< ::turtlebot_calibration::ScanAngle_<ContainerAllocator> const> ConstPtr;
00108 };
00109 typedef ::turtlebot_calibration::ScanAngle_<std::allocator<void> > ScanAngle;
00110
00111 typedef boost::shared_ptr< ::turtlebot_calibration::ScanAngle> ScanAnglePtr;
00112 typedef boost::shared_ptr< ::turtlebot_calibration::ScanAngle const> ScanAngleConstPtr;
00113
00114
00115 template<typename ContainerAllocator>
00116 std::ostream& operator<<(std::ostream& s, const ::turtlebot_calibration::ScanAngle_<ContainerAllocator> & v)
00117 {
00118 ros::message_operations::Printer< ::turtlebot_calibration::ScanAngle_<ContainerAllocator> >::stream(s, "", v);
00119 return s;}
00120
00121 }
00122
00123 namespace ros
00124 {
00125 namespace message_traits
00126 {
00127 template<class ContainerAllocator>
00128 struct MD5Sum< ::turtlebot_calibration::ScanAngle_<ContainerAllocator> > {
00129 static const char* value()
00130 {
00131 return "06e2c839dc5c7f5c13ac09a8b4ff0a6a";
00132 }
00133
00134 static const char* value(const ::turtlebot_calibration::ScanAngle_<ContainerAllocator> &) { return value(); }
00135 static const uint64_t static_value1 = 0x06e2c839dc5c7f5cULL;
00136 static const uint64_t static_value2 = 0x13ac09a8b4ff0a6aULL;
00137 };
00138
00139 template<class ContainerAllocator>
00140 struct DataType< ::turtlebot_calibration::ScanAngle_<ContainerAllocator> > {
00141 static const char* value()
00142 {
00143 return "turtlebot_calibration/ScanAngle";
00144 }
00145
00146 static const char* value(const ::turtlebot_calibration::ScanAngle_<ContainerAllocator> &) { return value(); }
00147 };
00148
00149 template<class ContainerAllocator>
00150 struct Definition< ::turtlebot_calibration::ScanAngle_<ContainerAllocator> > {
00151 static const char* value()
00152 {
00153 return "Header header\n\
00154 float64 scan_angle\n\
00155 ================================================================================\n\
00156 MSG: std_msgs/Header\n\
00157 # Standard metadata for higher-level stamped data types.\n\
00158 # This is generally used to communicate timestamped data \n\
00159 # in a particular coordinate frame.\n\
00160 # \n\
00161 # sequence ID: consecutively increasing ID \n\
00162 uint32 seq\n\
00163 #Two-integer timestamp that is expressed as:\n\
00164 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00165 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00166 # time-handling sugar is provided by the client library\n\
00167 time stamp\n\
00168 #Frame this data is associated with\n\
00169 # 0: no frame\n\
00170 # 1: global frame\n\
00171 string frame_id\n\
00172 \n\
00173 ";
00174 }
00175
00176 static const char* value(const ::turtlebot_calibration::ScanAngle_<ContainerAllocator> &) { return value(); }
00177 };
00178
00179 template<class ContainerAllocator> struct HasHeader< ::turtlebot_calibration::ScanAngle_<ContainerAllocator> > : public TrueType {};
00180 template<class ContainerAllocator> struct HasHeader< const ::turtlebot_calibration::ScanAngle_<ContainerAllocator> > : public TrueType {};
00181 }
00182 }
00183
00184 namespace ros
00185 {
00186 namespace serialization
00187 {
00188
00189 template<class ContainerAllocator> struct Serializer< ::turtlebot_calibration::ScanAngle_<ContainerAllocator> >
00190 {
00191 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00192 {
00193 stream.next(m.header);
00194 stream.next(m.scan_angle);
00195 }
00196
00197 ROS_DECLARE_ALLINONE_SERIALIZER;
00198 };
00199 }
00200 }
00201
00202 namespace ros
00203 {
00204 namespace message_operations
00205 {
00206
00207 template<class ContainerAllocator>
00208 struct Printer< ::turtlebot_calibration::ScanAngle_<ContainerAllocator> >
00209 {
00210 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::turtlebot_calibration::ScanAngle_<ContainerAllocator> & v)
00211 {
00212 s << indent << "header: ";
00213 s << std::endl;
00214 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00215 s << indent << "scan_angle: ";
00216 Printer<double>::stream(s, indent + " ", v.scan_angle);
00217 }
00218 };
00219
00220
00221 }
00222 }
00223
00224 #endif // TURTLEBOT_CALIBRATION_MESSAGE_SCANANGLE_H
00225