$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-flirtlib_features/doc_stacks/2013-03-01_15-30-29.334793/flirtlib_features/flirtlib_ros/msg/ExecutiveState.msg */ 00002 #ifndef FLIRTLIB_ROS_MESSAGE_EXECUTIVESTATE_H 00003 #define FLIRTLIB_ROS_MESSAGE_EXECUTIVESTATE_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 flirtlib_ros 00019 { 00020 template <class ContainerAllocator> 00021 struct ExecutiveState_ { 00022 typedef ExecutiveState_<ContainerAllocator> Type; 00023 00024 ExecutiveState_() 00025 : publishing_localization(false) 00026 , localization_badness(0.0) 00027 , successful_navs(0) 00028 { 00029 } 00030 00031 ExecutiveState_(const ContainerAllocator& _alloc) 00032 : publishing_localization(false) 00033 , localization_badness(0.0) 00034 , successful_navs(0) 00035 { 00036 } 00037 00038 typedef uint8_t _publishing_localization_type; 00039 uint8_t publishing_localization; 00040 00041 typedef float _localization_badness_type; 00042 float localization_badness; 00043 00044 typedef uint32_t _successful_navs_type; 00045 uint32_t successful_navs; 00046 00047 00048 private: 00049 static const char* __s_getDataType_() { return "flirtlib_ros/ExecutiveState"; } 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 "87a76fce09087102a8a2c11f3e8fb6be"; } 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 "# Will the node publish localization messages to reset amcl if possible?\n\ 00064 bool publishing_localization\n\ 00065 \n\ 00066 # How bad the current localization is\n\ 00067 float32 localization_badness\n\ 00068 \n\ 00069 # How many successful navigations have been observed so far\n\ 00070 uint32 successful_navs\n\ 00071 "; } 00072 public: 00073 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00074 00075 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00076 00077 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00078 { 00079 ros::serialization::OStream stream(write_ptr, 1000000000); 00080 ros::serialization::serialize(stream, publishing_localization); 00081 ros::serialization::serialize(stream, localization_badness); 00082 ros::serialization::serialize(stream, successful_navs); 00083 return stream.getData(); 00084 } 00085 00086 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00087 { 00088 ros::serialization::IStream stream(read_ptr, 1000000000); 00089 ros::serialization::deserialize(stream, publishing_localization); 00090 ros::serialization::deserialize(stream, localization_badness); 00091 ros::serialization::deserialize(stream, successful_navs); 00092 return stream.getData(); 00093 } 00094 00095 ROS_DEPRECATED virtual uint32_t serializationLength() const 00096 { 00097 uint32_t size = 0; 00098 size += ros::serialization::serializationLength(publishing_localization); 00099 size += ros::serialization::serializationLength(localization_badness); 00100 size += ros::serialization::serializationLength(successful_navs); 00101 return size; 00102 } 00103 00104 typedef boost::shared_ptr< ::flirtlib_ros::ExecutiveState_<ContainerAllocator> > Ptr; 00105 typedef boost::shared_ptr< ::flirtlib_ros::ExecutiveState_<ContainerAllocator> const> ConstPtr; 00106 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00107 }; // struct ExecutiveState 00108 typedef ::flirtlib_ros::ExecutiveState_<std::allocator<void> > ExecutiveState; 00109 00110 typedef boost::shared_ptr< ::flirtlib_ros::ExecutiveState> ExecutiveStatePtr; 00111 typedef boost::shared_ptr< ::flirtlib_ros::ExecutiveState const> ExecutiveStateConstPtr; 00112 00113 00114 template<typename ContainerAllocator> 00115 std::ostream& operator<<(std::ostream& s, const ::flirtlib_ros::ExecutiveState_<ContainerAllocator> & v) 00116 { 00117 ros::message_operations::Printer< ::flirtlib_ros::ExecutiveState_<ContainerAllocator> >::stream(s, "", v); 00118 return s;} 00119 00120 } // namespace flirtlib_ros 00121 00122 namespace ros 00123 { 00124 namespace message_traits 00125 { 00126 template<class ContainerAllocator> struct IsMessage< ::flirtlib_ros::ExecutiveState_<ContainerAllocator> > : public TrueType {}; 00127 template<class ContainerAllocator> struct IsMessage< ::flirtlib_ros::ExecutiveState_<ContainerAllocator> const> : public TrueType {}; 00128 template<class ContainerAllocator> 00129 struct MD5Sum< ::flirtlib_ros::ExecutiveState_<ContainerAllocator> > { 00130 static const char* value() 00131 { 00132 return "87a76fce09087102a8a2c11f3e8fb6be"; 00133 } 00134 00135 static const char* value(const ::flirtlib_ros::ExecutiveState_<ContainerAllocator> &) { return value(); } 00136 static const uint64_t static_value1 = 0x87a76fce09087102ULL; 00137 static const uint64_t static_value2 = 0xa8a2c11f3e8fb6beULL; 00138 }; 00139 00140 template<class ContainerAllocator> 00141 struct DataType< ::flirtlib_ros::ExecutiveState_<ContainerAllocator> > { 00142 static const char* value() 00143 { 00144 return "flirtlib_ros/ExecutiveState"; 00145 } 00146 00147 static const char* value(const ::flirtlib_ros::ExecutiveState_<ContainerAllocator> &) { return value(); } 00148 }; 00149 00150 template<class ContainerAllocator> 00151 struct Definition< ::flirtlib_ros::ExecutiveState_<ContainerAllocator> > { 00152 static const char* value() 00153 { 00154 return "# Will the node publish localization messages to reset amcl if possible?\n\ 00155 bool publishing_localization\n\ 00156 \n\ 00157 # How bad the current localization is\n\ 00158 float32 localization_badness\n\ 00159 \n\ 00160 # How many successful navigations have been observed so far\n\ 00161 uint32 successful_navs\n\ 00162 "; 00163 } 00164 00165 static const char* value(const ::flirtlib_ros::ExecutiveState_<ContainerAllocator> &) { return value(); } 00166 }; 00167 00168 template<class ContainerAllocator> struct IsFixedSize< ::flirtlib_ros::ExecutiveState_<ContainerAllocator> > : public TrueType {}; 00169 } // namespace message_traits 00170 } // namespace ros 00171 00172 namespace ros 00173 { 00174 namespace serialization 00175 { 00176 00177 template<class ContainerAllocator> struct Serializer< ::flirtlib_ros::ExecutiveState_<ContainerAllocator> > 00178 { 00179 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00180 { 00181 stream.next(m.publishing_localization); 00182 stream.next(m.localization_badness); 00183 stream.next(m.successful_navs); 00184 } 00185 00186 ROS_DECLARE_ALLINONE_SERIALIZER; 00187 }; // struct ExecutiveState_ 00188 } // namespace serialization 00189 } // namespace ros 00190 00191 namespace ros 00192 { 00193 namespace message_operations 00194 { 00195 00196 template<class ContainerAllocator> 00197 struct Printer< ::flirtlib_ros::ExecutiveState_<ContainerAllocator> > 00198 { 00199 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::flirtlib_ros::ExecutiveState_<ContainerAllocator> & v) 00200 { 00201 s << indent << "publishing_localization: "; 00202 Printer<uint8_t>::stream(s, indent + " ", v.publishing_localization); 00203 s << indent << "localization_badness: "; 00204 Printer<float>::stream(s, indent + " ", v.localization_badness); 00205 s << indent << "successful_navs: "; 00206 Printer<uint32_t>::stream(s, indent + " ", v.successful_navs); 00207 } 00208 }; 00209 00210 00211 } // namespace message_operations 00212 } // namespace ros 00213 00214 #endif // FLIRTLIB_ROS_MESSAGE_EXECUTIVESTATE_H 00215