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