$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-shadow_robot/doc_stacks/2013-03-02_13-32-28.994675/shadow_robot/sr_robot_msgs/msg/ShadowPST.msg */ 00002 #ifndef SR_ROBOT_MSGS_MESSAGE_SHADOWPST_H 00003 #define SR_ROBOT_MSGS_MESSAGE_SHADOWPST_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 #include "std_msgs/Header.h" 00018 00019 namespace sr_robot_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct ShadowPST_ { 00023 typedef ShadowPST_<ContainerAllocator> Type; 00024 00025 ShadowPST_() 00026 : header() 00027 , pressure() 00028 , temperature() 00029 { 00030 } 00031 00032 ShadowPST_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , pressure(_alloc) 00035 , temperature(_alloc) 00036 { 00037 } 00038 00039 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00040 ::std_msgs::Header_<ContainerAllocator> header; 00041 00042 typedef std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other > _pressure_type; 00043 std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other > pressure; 00044 00045 typedef std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other > _temperature_type; 00046 std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other > temperature; 00047 00048 00049 ROS_DEPRECATED uint32_t get_pressure_size() const { return (uint32_t)pressure.size(); } 00050 ROS_DEPRECATED void set_pressure_size(uint32_t size) { pressure.resize((size_t)size); } 00051 ROS_DEPRECATED void get_pressure_vec(std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other > & vec) const { vec = this->pressure; } 00052 ROS_DEPRECATED void set_pressure_vec(const std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other > & vec) { this->pressure = vec; } 00053 ROS_DEPRECATED uint32_t get_temperature_size() const { return (uint32_t)temperature.size(); } 00054 ROS_DEPRECATED void set_temperature_size(uint32_t size) { temperature.resize((size_t)size); } 00055 ROS_DEPRECATED void get_temperature_vec(std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other > & vec) const { vec = this->temperature; } 00056 ROS_DEPRECATED void set_temperature_vec(const std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other > & vec) { this->temperature = vec; } 00057 private: 00058 static const char* __s_getDataType_() { return "sr_robot_msgs/ShadowPST"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00061 00062 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00063 00064 private: 00065 static const char* __s_getMD5Sum_() { return "ab86b3368a7316c12291b90583e1910e"; } 00066 public: 00067 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00068 00069 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00070 00071 private: 00072 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00073 int16[] pressure\n\ 00074 int16[] temperature\n\ 00075 \n\ 00076 ================================================================================\n\ 00077 MSG: std_msgs/Header\n\ 00078 # Standard metadata for higher-level stamped data types.\n\ 00079 # This is generally used to communicate timestamped data \n\ 00080 # in a particular coordinate frame.\n\ 00081 # \n\ 00082 # sequence ID: consecutively increasing ID \n\ 00083 uint32 seq\n\ 00084 #Two-integer timestamp that is expressed as:\n\ 00085 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00086 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00087 # time-handling sugar is provided by the client library\n\ 00088 time stamp\n\ 00089 #Frame this data is associated with\n\ 00090 # 0: no frame\n\ 00091 # 1: global frame\n\ 00092 string frame_id\n\ 00093 \n\ 00094 "; } 00095 public: 00096 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00097 00098 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00099 00100 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00101 { 00102 ros::serialization::OStream stream(write_ptr, 1000000000); 00103 ros::serialization::serialize(stream, header); 00104 ros::serialization::serialize(stream, pressure); 00105 ros::serialization::serialize(stream, temperature); 00106 return stream.getData(); 00107 } 00108 00109 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00110 { 00111 ros::serialization::IStream stream(read_ptr, 1000000000); 00112 ros::serialization::deserialize(stream, header); 00113 ros::serialization::deserialize(stream, pressure); 00114 ros::serialization::deserialize(stream, temperature); 00115 return stream.getData(); 00116 } 00117 00118 ROS_DEPRECATED virtual uint32_t serializationLength() const 00119 { 00120 uint32_t size = 0; 00121 size += ros::serialization::serializationLength(header); 00122 size += ros::serialization::serializationLength(pressure); 00123 size += ros::serialization::serializationLength(temperature); 00124 return size; 00125 } 00126 00127 typedef boost::shared_ptr< ::sr_robot_msgs::ShadowPST_<ContainerAllocator> > Ptr; 00128 typedef boost::shared_ptr< ::sr_robot_msgs::ShadowPST_<ContainerAllocator> const> ConstPtr; 00129 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00130 }; // struct ShadowPST 00131 typedef ::sr_robot_msgs::ShadowPST_<std::allocator<void> > ShadowPST; 00132 00133 typedef boost::shared_ptr< ::sr_robot_msgs::ShadowPST> ShadowPSTPtr; 00134 typedef boost::shared_ptr< ::sr_robot_msgs::ShadowPST const> ShadowPSTConstPtr; 00135 00136 00137 template<typename ContainerAllocator> 00138 std::ostream& operator<<(std::ostream& s, const ::sr_robot_msgs::ShadowPST_<ContainerAllocator> & v) 00139 { 00140 ros::message_operations::Printer< ::sr_robot_msgs::ShadowPST_<ContainerAllocator> >::stream(s, "", v); 00141 return s;} 00142 00143 } // namespace sr_robot_msgs 00144 00145 namespace ros 00146 { 00147 namespace message_traits 00148 { 00149 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::ShadowPST_<ContainerAllocator> > : public TrueType {}; 00150 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::ShadowPST_<ContainerAllocator> const> : public TrueType {}; 00151 template<class ContainerAllocator> 00152 struct MD5Sum< ::sr_robot_msgs::ShadowPST_<ContainerAllocator> > { 00153 static const char* value() 00154 { 00155 return "ab86b3368a7316c12291b90583e1910e"; 00156 } 00157 00158 static const char* value(const ::sr_robot_msgs::ShadowPST_<ContainerAllocator> &) { return value(); } 00159 static const uint64_t static_value1 = 0xab86b3368a7316c1ULL; 00160 static const uint64_t static_value2 = 0x2291b90583e1910eULL; 00161 }; 00162 00163 template<class ContainerAllocator> 00164 struct DataType< ::sr_robot_msgs::ShadowPST_<ContainerAllocator> > { 00165 static const char* value() 00166 { 00167 return "sr_robot_msgs/ShadowPST"; 00168 } 00169 00170 static const char* value(const ::sr_robot_msgs::ShadowPST_<ContainerAllocator> &) { return value(); } 00171 }; 00172 00173 template<class ContainerAllocator> 00174 struct Definition< ::sr_robot_msgs::ShadowPST_<ContainerAllocator> > { 00175 static const char* value() 00176 { 00177 return "Header header\n\ 00178 int16[] pressure\n\ 00179 int16[] temperature\n\ 00180 \n\ 00181 ================================================================================\n\ 00182 MSG: std_msgs/Header\n\ 00183 # Standard metadata for higher-level stamped data types.\n\ 00184 # This is generally used to communicate timestamped data \n\ 00185 # in a particular coordinate frame.\n\ 00186 # \n\ 00187 # sequence ID: consecutively increasing ID \n\ 00188 uint32 seq\n\ 00189 #Two-integer timestamp that is expressed as:\n\ 00190 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00191 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00192 # time-handling sugar is provided by the client library\n\ 00193 time stamp\n\ 00194 #Frame this data is associated with\n\ 00195 # 0: no frame\n\ 00196 # 1: global frame\n\ 00197 string frame_id\n\ 00198 \n\ 00199 "; 00200 } 00201 00202 static const char* value(const ::sr_robot_msgs::ShadowPST_<ContainerAllocator> &) { return value(); } 00203 }; 00204 00205 template<class ContainerAllocator> struct HasHeader< ::sr_robot_msgs::ShadowPST_<ContainerAllocator> > : public TrueType {}; 00206 template<class ContainerAllocator> struct HasHeader< const ::sr_robot_msgs::ShadowPST_<ContainerAllocator> > : public TrueType {}; 00207 } // namespace message_traits 00208 } // namespace ros 00209 00210 namespace ros 00211 { 00212 namespace serialization 00213 { 00214 00215 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::ShadowPST_<ContainerAllocator> > 00216 { 00217 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00218 { 00219 stream.next(m.header); 00220 stream.next(m.pressure); 00221 stream.next(m.temperature); 00222 } 00223 00224 ROS_DECLARE_ALLINONE_SERIALIZER; 00225 }; // struct ShadowPST_ 00226 } // namespace serialization 00227 } // namespace ros 00228 00229 namespace ros 00230 { 00231 namespace message_operations 00232 { 00233 00234 template<class ContainerAllocator> 00235 struct Printer< ::sr_robot_msgs::ShadowPST_<ContainerAllocator> > 00236 { 00237 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sr_robot_msgs::ShadowPST_<ContainerAllocator> & v) 00238 { 00239 s << indent << "header: "; 00240 s << std::endl; 00241 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00242 s << indent << "pressure[]" << std::endl; 00243 for (size_t i = 0; i < v.pressure.size(); ++i) 00244 { 00245 s << indent << " pressure[" << i << "]: "; 00246 Printer<int16_t>::stream(s, indent + " ", v.pressure[i]); 00247 } 00248 s << indent << "temperature[]" << std::endl; 00249 for (size_t i = 0; i < v.temperature.size(); ++i) 00250 { 00251 s << indent << " temperature[" << i << "]: "; 00252 Printer<int16_t>::stream(s, indent + " ", v.temperature[i]); 00253 } 00254 } 00255 }; 00256 00257 00258 } // namespace message_operations 00259 } // namespace ros 00260 00261 #endif // SR_ROBOT_MSGS_MESSAGE_SHADOWPST_H 00262