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