00001
00002 #ifndef DRIVER_BASE_MESSAGE_SENSORLEVELS_H
00003 #define DRIVER_BASE_MESSAGE_SENSORLEVELS_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
00014 namespace driver_base
00015 {
00016 template <class ContainerAllocator>
00017 struct SensorLevels_ : public ros::Message
00018 {
00019 typedef SensorLevels_<ContainerAllocator> Type;
00020
00021 SensorLevels_()
00022 {
00023 }
00024
00025 SensorLevels_(const ContainerAllocator& _alloc)
00026 {
00027 }
00028
00029 enum { RECONFIGURE_CLOSE = 3 };
00030 enum { RECONFIGURE_STOP = 1 };
00031 enum { RECONFIGURE_RUNNING = 0 };
00032
00033 private:
00034 static const char* __s_getDataType_() { return "driver_base/SensorLevels"; }
00035 public:
00036 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00037
00038 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00039
00040 private:
00041 static const char* __s_getMD5Sum_() { return "6322637bee96d5489db6e2127c47602c"; }
00042 public:
00043 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00044
00045 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00046
00047 private:
00048 static const char* __s_getMessageDefinition_() { return "byte RECONFIGURE_CLOSE = 3 # Parameters that need a sensor to be stopped completely when changed\n\
00049 byte RECONFIGURE_STOP = 1 # Parameters that need a sensor to stop streaming when changed\n\
00050 byte RECONFIGURE_RUNNING = 0 # Parameters that can be changed while a sensor is streaming\n\
00051 \n\
00052 "; }
00053 public:
00054 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00055
00056 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00057
00058 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00059 {
00060 ros::serialization::OStream stream(write_ptr, 1000000000);
00061 return stream.getData();
00062 }
00063
00064 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00065 {
00066 ros::serialization::IStream stream(read_ptr, 1000000000);
00067 return stream.getData();
00068 }
00069
00070 ROS_DEPRECATED virtual uint32_t serializationLength() const
00071 {
00072 uint32_t size = 0;
00073 return size;
00074 }
00075
00076 typedef boost::shared_ptr< ::driver_base::SensorLevels_<ContainerAllocator> > Ptr;
00077 typedef boost::shared_ptr< ::driver_base::SensorLevels_<ContainerAllocator> const> ConstPtr;
00078 };
00079 typedef ::driver_base::SensorLevels_<std::allocator<void> > SensorLevels;
00080
00081 typedef boost::shared_ptr< ::driver_base::SensorLevels> SensorLevelsPtr;
00082 typedef boost::shared_ptr< ::driver_base::SensorLevels const> SensorLevelsConstPtr;
00083
00084
00085 template<typename ContainerAllocator>
00086 std::ostream& operator<<(std::ostream& s, const ::driver_base::SensorLevels_<ContainerAllocator> & v)
00087 {
00088 ros::message_operations::Printer< ::driver_base::SensorLevels_<ContainerAllocator> >::stream(s, "", v);
00089 return s;}
00090
00091 }
00092
00093 namespace ros
00094 {
00095 namespace message_traits
00096 {
00097 template<class ContainerAllocator>
00098 struct MD5Sum< ::driver_base::SensorLevels_<ContainerAllocator> > {
00099 static const char* value()
00100 {
00101 return "6322637bee96d5489db6e2127c47602c";
00102 }
00103
00104 static const char* value(const ::driver_base::SensorLevels_<ContainerAllocator> &) { return value(); }
00105 static const uint64_t static_value1 = 0x6322637bee96d548ULL;
00106 static const uint64_t static_value2 = 0x9db6e2127c47602cULL;
00107 };
00108
00109 template<class ContainerAllocator>
00110 struct DataType< ::driver_base::SensorLevels_<ContainerAllocator> > {
00111 static const char* value()
00112 {
00113 return "driver_base/SensorLevels";
00114 }
00115
00116 static const char* value(const ::driver_base::SensorLevels_<ContainerAllocator> &) { return value(); }
00117 };
00118
00119 template<class ContainerAllocator>
00120 struct Definition< ::driver_base::SensorLevels_<ContainerAllocator> > {
00121 static const char* value()
00122 {
00123 return "byte RECONFIGURE_CLOSE = 3 # Parameters that need a sensor to be stopped completely when changed\n\
00124 byte RECONFIGURE_STOP = 1 # Parameters that need a sensor to stop streaming when changed\n\
00125 byte RECONFIGURE_RUNNING = 0 # Parameters that can be changed while a sensor is streaming\n\
00126 \n\
00127 ";
00128 }
00129
00130 static const char* value(const ::driver_base::SensorLevels_<ContainerAllocator> &) { return value(); }
00131 };
00132
00133 template<class ContainerAllocator> struct IsFixedSize< ::driver_base::SensorLevels_<ContainerAllocator> > : public TrueType {};
00134 }
00135 }
00136
00137 namespace ros
00138 {
00139 namespace serialization
00140 {
00141
00142 template<class ContainerAllocator> struct Serializer< ::driver_base::SensorLevels_<ContainerAllocator> >
00143 {
00144 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00145 {
00146 }
00147
00148 ROS_DECLARE_ALLINONE_SERIALIZER;
00149 };
00150 }
00151 }
00152
00153 namespace ros
00154 {
00155 namespace message_operations
00156 {
00157
00158 template<class ContainerAllocator>
00159 struct Printer< ::driver_base::SensorLevels_<ContainerAllocator> >
00160 {
00161 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::driver_base::SensorLevels_<ContainerAllocator> & v)
00162 {
00163 }
00164 };
00165
00166
00167 }
00168 }
00169
00170 #endif // DRIVER_BASE_MESSAGE_SENSORLEVELS_H
00171