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