$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-p2os/doc_stacks/2013-03-01_16-19-23.450784/p2os/p2os_driver/msg/PTZState.msg */ 00002 #ifndef P2OS_DRIVER_MESSAGE_PTZSTATE_H 00003 #define P2OS_DRIVER_MESSAGE_PTZSTATE_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 00018 namespace p2os_driver 00019 { 00020 template <class ContainerAllocator> 00021 struct PTZState_ { 00022 typedef PTZState_<ContainerAllocator> Type; 00023 00024 PTZState_() 00025 : pan(0) 00026 , tilt(0) 00027 , zoom(0) 00028 , relative(false) 00029 { 00030 } 00031 00032 PTZState_(const ContainerAllocator& _alloc) 00033 : pan(0) 00034 , tilt(0) 00035 , zoom(0) 00036 , relative(false) 00037 { 00038 } 00039 00040 typedef int32_t _pan_type; 00041 int32_t pan; 00042 00043 typedef int32_t _tilt_type; 00044 int32_t tilt; 00045 00046 typedef int32_t _zoom_type; 00047 int32_t zoom; 00048 00049 typedef uint8_t _relative_type; 00050 uint8_t relative; 00051 00052 00053 private: 00054 static const char* __s_getDataType_() { return "p2os_driver/PTZState"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00057 00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00059 00060 private: 00061 static const char* __s_getMD5Sum_() { return "1f71ce2a42b32376ea869eb051358045"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00064 00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00066 00067 private: 00068 static const char* __s_getMessageDefinition_() { return "int32 pan\n\ 00069 int32 tilt\n\ 00070 int32 zoom\n\ 00071 bool relative\n\ 00072 \n\ 00073 "; } 00074 public: 00075 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00076 00077 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00078 00079 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00080 { 00081 ros::serialization::OStream stream(write_ptr, 1000000000); 00082 ros::serialization::serialize(stream, pan); 00083 ros::serialization::serialize(stream, tilt); 00084 ros::serialization::serialize(stream, zoom); 00085 ros::serialization::serialize(stream, relative); 00086 return stream.getData(); 00087 } 00088 00089 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00090 { 00091 ros::serialization::IStream stream(read_ptr, 1000000000); 00092 ros::serialization::deserialize(stream, pan); 00093 ros::serialization::deserialize(stream, tilt); 00094 ros::serialization::deserialize(stream, zoom); 00095 ros::serialization::deserialize(stream, relative); 00096 return stream.getData(); 00097 } 00098 00099 ROS_DEPRECATED virtual uint32_t serializationLength() const 00100 { 00101 uint32_t size = 0; 00102 size += ros::serialization::serializationLength(pan); 00103 size += ros::serialization::serializationLength(tilt); 00104 size += ros::serialization::serializationLength(zoom); 00105 size += ros::serialization::serializationLength(relative); 00106 return size; 00107 } 00108 00109 typedef boost::shared_ptr< ::p2os_driver::PTZState_<ContainerAllocator> > Ptr; 00110 typedef boost::shared_ptr< ::p2os_driver::PTZState_<ContainerAllocator> const> ConstPtr; 00111 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00112 }; // struct PTZState 00113 typedef ::p2os_driver::PTZState_<std::allocator<void> > PTZState; 00114 00115 typedef boost::shared_ptr< ::p2os_driver::PTZState> PTZStatePtr; 00116 typedef boost::shared_ptr< ::p2os_driver::PTZState const> PTZStateConstPtr; 00117 00118 00119 template<typename ContainerAllocator> 00120 std::ostream& operator<<(std::ostream& s, const ::p2os_driver::PTZState_<ContainerAllocator> & v) 00121 { 00122 ros::message_operations::Printer< ::p2os_driver::PTZState_<ContainerAllocator> >::stream(s, "", v); 00123 return s;} 00124 00125 } // namespace p2os_driver 00126 00127 namespace ros 00128 { 00129 namespace message_traits 00130 { 00131 template<class ContainerAllocator> struct IsMessage< ::p2os_driver::PTZState_<ContainerAllocator> > : public TrueType {}; 00132 template<class ContainerAllocator> struct IsMessage< ::p2os_driver::PTZState_<ContainerAllocator> const> : public TrueType {}; 00133 template<class ContainerAllocator> 00134 struct MD5Sum< ::p2os_driver::PTZState_<ContainerAllocator> > { 00135 static const char* value() 00136 { 00137 return "1f71ce2a42b32376ea869eb051358045"; 00138 } 00139 00140 static const char* value(const ::p2os_driver::PTZState_<ContainerAllocator> &) { return value(); } 00141 static const uint64_t static_value1 = 0x1f71ce2a42b32376ULL; 00142 static const uint64_t static_value2 = 0xea869eb051358045ULL; 00143 }; 00144 00145 template<class ContainerAllocator> 00146 struct DataType< ::p2os_driver::PTZState_<ContainerAllocator> > { 00147 static const char* value() 00148 { 00149 return "p2os_driver/PTZState"; 00150 } 00151 00152 static const char* value(const ::p2os_driver::PTZState_<ContainerAllocator> &) { return value(); } 00153 }; 00154 00155 template<class ContainerAllocator> 00156 struct Definition< ::p2os_driver::PTZState_<ContainerAllocator> > { 00157 static const char* value() 00158 { 00159 return "int32 pan\n\ 00160 int32 tilt\n\ 00161 int32 zoom\n\ 00162 bool relative\n\ 00163 \n\ 00164 "; 00165 } 00166 00167 static const char* value(const ::p2os_driver::PTZState_<ContainerAllocator> &) { return value(); } 00168 }; 00169 00170 template<class ContainerAllocator> struct IsFixedSize< ::p2os_driver::PTZState_<ContainerAllocator> > : public TrueType {}; 00171 } // namespace message_traits 00172 } // namespace ros 00173 00174 namespace ros 00175 { 00176 namespace serialization 00177 { 00178 00179 template<class ContainerAllocator> struct Serializer< ::p2os_driver::PTZState_<ContainerAllocator> > 00180 { 00181 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00182 { 00183 stream.next(m.pan); 00184 stream.next(m.tilt); 00185 stream.next(m.zoom); 00186 stream.next(m.relative); 00187 } 00188 00189 ROS_DECLARE_ALLINONE_SERIALIZER; 00190 }; // struct PTZState_ 00191 } // namespace serialization 00192 } // namespace ros 00193 00194 namespace ros 00195 { 00196 namespace message_operations 00197 { 00198 00199 template<class ContainerAllocator> 00200 struct Printer< ::p2os_driver::PTZState_<ContainerAllocator> > 00201 { 00202 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::p2os_driver::PTZState_<ContainerAllocator> & v) 00203 { 00204 s << indent << "pan: "; 00205 Printer<int32_t>::stream(s, indent + " ", v.pan); 00206 s << indent << "tilt: "; 00207 Printer<int32_t>::stream(s, indent + " ", v.tilt); 00208 s << indent << "zoom: "; 00209 Printer<int32_t>::stream(s, indent + " ", v.zoom); 00210 s << indent << "relative: "; 00211 Printer<uint8_t>::stream(s, indent + " ", v.relative); 00212 } 00213 }; 00214 00215 00216 } // namespace message_operations 00217 } // namespace ros 00218 00219 #endif // P2OS_DRIVER_MESSAGE_PTZSTATE_H 00220