$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-applanix_driver/doc_stacks/2013-03-01_14-05-02.457261/applanix_driver/applanix_msgs/msg/LoggingStatus.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_LOGGINGSTATUS_H 00003 #define APPLANIX_MSGS_MESSAGE_LOGGINGSTATUS_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 "applanix_msgs/TimeDistance.h" 00018 00019 namespace applanix_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct LoggingStatus_ { 00023 typedef LoggingStatus_<ContainerAllocator> Type; 00024 00025 LoggingStatus_() 00026 : td() 00027 , disk_kb_remaining(0) 00028 , disk_kb_logged(0) 00029 , disk_time_remaining(0) 00030 , disk_kb_total(0) 00031 , state(0) 00032 { 00033 } 00034 00035 LoggingStatus_(const ContainerAllocator& _alloc) 00036 : td(_alloc) 00037 , disk_kb_remaining(0) 00038 , disk_kb_logged(0) 00039 , disk_time_remaining(0) 00040 , disk_kb_total(0) 00041 , state(0) 00042 { 00043 } 00044 00045 typedef ::applanix_msgs::TimeDistance_<ContainerAllocator> _td_type; 00046 ::applanix_msgs::TimeDistance_<ContainerAllocator> td; 00047 00048 typedef uint32_t _disk_kb_remaining_type; 00049 uint32_t disk_kb_remaining; 00050 00051 typedef uint32_t _disk_kb_logged_type; 00052 uint32_t disk_kb_logged; 00053 00054 typedef uint32_t _disk_time_remaining_type; 00055 uint32_t disk_time_remaining; 00056 00057 typedef uint32_t _disk_kb_total_type; 00058 uint32_t disk_kb_total; 00059 00060 typedef uint8_t _state_type; 00061 uint8_t state; 00062 00063 enum { STATE_STANDBY = 0 }; 00064 enum { STATE_LOGGING = 1 }; 00065 enum { STATE_BUFFERING = 2 }; 00066 enum { STATE_INVALID = 255 }; 00067 00068 private: 00069 static const char* __s_getDataType_() { return "applanix_msgs/LoggingStatus"; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00072 00073 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00074 00075 private: 00076 static const char* __s_getMD5Sum_() { return "bc37af667689cff6ff70d20f8053fa45"; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00079 00080 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00081 00082 private: 00083 static const char* __s_getMessageDefinition_() { return "TimeDistance td\n\ 00084 \n\ 00085 uint32 disk_kb_remaining\n\ 00086 uint32 disk_kb_logged\n\ 00087 uint32 disk_time_remaining\n\ 00088 uint32 disk_kb_total\n\ 00089 \n\ 00090 uint8 STATE_STANDBY=0\n\ 00091 uint8 STATE_LOGGING=1\n\ 00092 uint8 STATE_BUFFERING=2\n\ 00093 uint8 STATE_INVALID=255\n\ 00094 uint8 state\n\ 00095 \n\ 00096 ================================================================================\n\ 00097 MSG: applanix_msgs/TimeDistance\n\ 00098 float64 time1\n\ 00099 float64 time2\n\ 00100 float64 distance\n\ 00101 uint8 time_types\n\ 00102 uint8 distance_type\n\ 00103 \n\ 00104 "; } 00105 public: 00106 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00107 00108 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00109 00110 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00111 { 00112 ros::serialization::OStream stream(write_ptr, 1000000000); 00113 ros::serialization::serialize(stream, td); 00114 ros::serialization::serialize(stream, disk_kb_remaining); 00115 ros::serialization::serialize(stream, disk_kb_logged); 00116 ros::serialization::serialize(stream, disk_time_remaining); 00117 ros::serialization::serialize(stream, disk_kb_total); 00118 ros::serialization::serialize(stream, state); 00119 return stream.getData(); 00120 } 00121 00122 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00123 { 00124 ros::serialization::IStream stream(read_ptr, 1000000000); 00125 ros::serialization::deserialize(stream, td); 00126 ros::serialization::deserialize(stream, disk_kb_remaining); 00127 ros::serialization::deserialize(stream, disk_kb_logged); 00128 ros::serialization::deserialize(stream, disk_time_remaining); 00129 ros::serialization::deserialize(stream, disk_kb_total); 00130 ros::serialization::deserialize(stream, state); 00131 return stream.getData(); 00132 } 00133 00134 ROS_DEPRECATED virtual uint32_t serializationLength() const 00135 { 00136 uint32_t size = 0; 00137 size += ros::serialization::serializationLength(td); 00138 size += ros::serialization::serializationLength(disk_kb_remaining); 00139 size += ros::serialization::serializationLength(disk_kb_logged); 00140 size += ros::serialization::serializationLength(disk_time_remaining); 00141 size += ros::serialization::serializationLength(disk_kb_total); 00142 size += ros::serialization::serializationLength(state); 00143 return size; 00144 } 00145 00146 typedef boost::shared_ptr< ::applanix_msgs::LoggingStatus_<ContainerAllocator> > Ptr; 00147 typedef boost::shared_ptr< ::applanix_msgs::LoggingStatus_<ContainerAllocator> const> ConstPtr; 00148 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00149 }; // struct LoggingStatus 00150 typedef ::applanix_msgs::LoggingStatus_<std::allocator<void> > LoggingStatus; 00151 00152 typedef boost::shared_ptr< ::applanix_msgs::LoggingStatus> LoggingStatusPtr; 00153 typedef boost::shared_ptr< ::applanix_msgs::LoggingStatus const> LoggingStatusConstPtr; 00154 00155 00156 template<typename ContainerAllocator> 00157 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::LoggingStatus_<ContainerAllocator> & v) 00158 { 00159 ros::message_operations::Printer< ::applanix_msgs::LoggingStatus_<ContainerAllocator> >::stream(s, "", v); 00160 return s;} 00161 00162 } // namespace applanix_msgs 00163 00164 namespace ros 00165 { 00166 namespace message_traits 00167 { 00168 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::LoggingStatus_<ContainerAllocator> > : public TrueType {}; 00169 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::LoggingStatus_<ContainerAllocator> const> : public TrueType {}; 00170 template<class ContainerAllocator> 00171 struct MD5Sum< ::applanix_msgs::LoggingStatus_<ContainerAllocator> > { 00172 static const char* value() 00173 { 00174 return "bc37af667689cff6ff70d20f8053fa45"; 00175 } 00176 00177 static const char* value(const ::applanix_msgs::LoggingStatus_<ContainerAllocator> &) { return value(); } 00178 static const uint64_t static_value1 = 0xbc37af667689cff6ULL; 00179 static const uint64_t static_value2 = 0xff70d20f8053fa45ULL; 00180 }; 00181 00182 template<class ContainerAllocator> 00183 struct DataType< ::applanix_msgs::LoggingStatus_<ContainerAllocator> > { 00184 static const char* value() 00185 { 00186 return "applanix_msgs/LoggingStatus"; 00187 } 00188 00189 static const char* value(const ::applanix_msgs::LoggingStatus_<ContainerAllocator> &) { return value(); } 00190 }; 00191 00192 template<class ContainerAllocator> 00193 struct Definition< ::applanix_msgs::LoggingStatus_<ContainerAllocator> > { 00194 static const char* value() 00195 { 00196 return "TimeDistance td\n\ 00197 \n\ 00198 uint32 disk_kb_remaining\n\ 00199 uint32 disk_kb_logged\n\ 00200 uint32 disk_time_remaining\n\ 00201 uint32 disk_kb_total\n\ 00202 \n\ 00203 uint8 STATE_STANDBY=0\n\ 00204 uint8 STATE_LOGGING=1\n\ 00205 uint8 STATE_BUFFERING=2\n\ 00206 uint8 STATE_INVALID=255\n\ 00207 uint8 state\n\ 00208 \n\ 00209 ================================================================================\n\ 00210 MSG: applanix_msgs/TimeDistance\n\ 00211 float64 time1\n\ 00212 float64 time2\n\ 00213 float64 distance\n\ 00214 uint8 time_types\n\ 00215 uint8 distance_type\n\ 00216 \n\ 00217 "; 00218 } 00219 00220 static const char* value(const ::applanix_msgs::LoggingStatus_<ContainerAllocator> &) { return value(); } 00221 }; 00222 00223 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::LoggingStatus_<ContainerAllocator> > : public TrueType {}; 00224 } // namespace message_traits 00225 } // namespace ros 00226 00227 namespace ros 00228 { 00229 namespace serialization 00230 { 00231 00232 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::LoggingStatus_<ContainerAllocator> > 00233 { 00234 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00235 { 00236 stream.next(m.td); 00237 stream.next(m.disk_kb_remaining); 00238 stream.next(m.disk_kb_logged); 00239 stream.next(m.disk_time_remaining); 00240 stream.next(m.disk_kb_total); 00241 stream.next(m.state); 00242 } 00243 00244 ROS_DECLARE_ALLINONE_SERIALIZER; 00245 }; // struct LoggingStatus_ 00246 } // namespace serialization 00247 } // namespace ros 00248 00249 namespace ros 00250 { 00251 namespace message_operations 00252 { 00253 00254 template<class ContainerAllocator> 00255 struct Printer< ::applanix_msgs::LoggingStatus_<ContainerAllocator> > 00256 { 00257 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::LoggingStatus_<ContainerAllocator> & v) 00258 { 00259 s << indent << "td: "; 00260 s << std::endl; 00261 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td); 00262 s << indent << "disk_kb_remaining: "; 00263 Printer<uint32_t>::stream(s, indent + " ", v.disk_kb_remaining); 00264 s << indent << "disk_kb_logged: "; 00265 Printer<uint32_t>::stream(s, indent + " ", v.disk_kb_logged); 00266 s << indent << "disk_time_remaining: "; 00267 Printer<uint32_t>::stream(s, indent + " ", v.disk_time_remaining); 00268 s << indent << "disk_kb_total: "; 00269 Printer<uint32_t>::stream(s, indent + " ", v.disk_kb_total); 00270 s << indent << "state: "; 00271 Printer<uint8_t>::stream(s, indent + " ", v.state); 00272 } 00273 }; 00274 00275 00276 } // namespace message_operations 00277 } // namespace ros 00278 00279 #endif // APPLANIX_MSGS_MESSAGE_LOGGINGSTATUS_H 00280