00001
00002 #ifndef BOND_MESSAGE_CONSTANTS_H
00003 #define BOND_MESSAGE_CONSTANTS_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013
00014 namespace bond
00015 {
00016 template <class ContainerAllocator>
00017 struct Constants_ : public ros::Message
00018 {
00019 typedef Constants_<ContainerAllocator> Type;
00020
00021 Constants_()
00022 {
00023 }
00024
00025 Constants_(const ContainerAllocator& _alloc)
00026 {
00027 }
00028
00029 static const float DEAD_PUBLISH_PERIOD;
00030 static const float DEFAULT_CONNECT_TIMEOUT;
00031 static const float DEFAULT_HEARTBEAT_TIMEOUT;
00032 static const float DEFAULT_DISCONNECT_TIMEOUT;
00033 static const float DEFAULT_HEARTBEAT_PERIOD;
00034 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > DISABLE_HEARTBEAT_TIMEOUT_PARAM;
00035
00036 private:
00037 static const char* __s_getDataType_() { return "bond/Constants"; }
00038 public:
00039 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00040
00041 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00042
00043 private:
00044 static const char* __s_getMD5Sum_() { return "6fc594dc1d7bd7919077042712f8c8b0"; }
00045 public:
00046 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00047
00048 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00049
00050 private:
00051 static const char* __s_getMessageDefinition_() { return "float32 DEAD_PUBLISH_PERIOD = 0.05\n\
00052 float32 DEFAULT_CONNECT_TIMEOUT = 10.0\n\
00053 float32 DEFAULT_HEARTBEAT_TIMEOUT = 4.0\n\
00054 float32 DEFAULT_DISCONNECT_TIMEOUT = 2.0\n\
00055 float32 DEFAULT_HEARTBEAT_PERIOD = 1.0\n\
00056 \n\
00057 string DISABLE_HEARTBEAT_TIMEOUT_PARAM=/bond_disable_heartbeat_timeout\n\
00058 "; }
00059 public:
00060 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00061
00062 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00063
00064 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00065 {
00066 ros::serialization::OStream stream(write_ptr, 1000000000);
00067 return stream.getData();
00068 }
00069
00070 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00071 {
00072 ros::serialization::IStream stream(read_ptr, 1000000000);
00073 return stream.getData();
00074 }
00075
00076 ROS_DEPRECATED virtual uint32_t serializationLength() const
00077 {
00078 uint32_t size = 0;
00079 return size;
00080 }
00081
00082 typedef boost::shared_ptr< ::bond::Constants_<ContainerAllocator> > Ptr;
00083 typedef boost::shared_ptr< ::bond::Constants_<ContainerAllocator> const> ConstPtr;
00084 };
00085 typedef ::bond::Constants_<std::allocator<void> > Constants;
00086
00087 typedef boost::shared_ptr< ::bond::Constants> ConstantsPtr;
00088 typedef boost::shared_ptr< ::bond::Constants const> ConstantsConstPtr;
00089
00090 template<typename ContainerAllocator> const float Constants_<ContainerAllocator>::DEAD_PUBLISH_PERIOD = 0.05;
00091 template<typename ContainerAllocator> const float Constants_<ContainerAllocator>::DEFAULT_CONNECT_TIMEOUT = 10.0;
00092 template<typename ContainerAllocator> const float Constants_<ContainerAllocator>::DEFAULT_HEARTBEAT_TIMEOUT = 4.0;
00093 template<typename ContainerAllocator> const float Constants_<ContainerAllocator>::DEFAULT_DISCONNECT_TIMEOUT = 2.0;
00094 template<typename ContainerAllocator> const float Constants_<ContainerAllocator>::DEFAULT_HEARTBEAT_PERIOD = 1.0;
00095 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > Constants_<ContainerAllocator>::DISABLE_HEARTBEAT_TIMEOUT_PARAM = "/bond_disable_heartbeat_timeout";
00096
00097 template<typename ContainerAllocator>
00098 std::ostream& operator<<(std::ostream& s, const ::bond::Constants_<ContainerAllocator> & v)
00099 {
00100 ros::message_operations::Printer< ::bond::Constants_<ContainerAllocator> >::stream(s, "", v);
00101 return s;}
00102
00103 }
00104
00105 namespace ros
00106 {
00107 namespace message_traits
00108 {
00109 template<class ContainerAllocator>
00110 struct MD5Sum< ::bond::Constants_<ContainerAllocator> > {
00111 static const char* value()
00112 {
00113 return "6fc594dc1d7bd7919077042712f8c8b0";
00114 }
00115
00116 static const char* value(const ::bond::Constants_<ContainerAllocator> &) { return value(); }
00117 static const uint64_t static_value1 = 0x6fc594dc1d7bd791ULL;
00118 static const uint64_t static_value2 = 0x9077042712f8c8b0ULL;
00119 };
00120
00121 template<class ContainerAllocator>
00122 struct DataType< ::bond::Constants_<ContainerAllocator> > {
00123 static const char* value()
00124 {
00125 return "bond/Constants";
00126 }
00127
00128 static const char* value(const ::bond::Constants_<ContainerAllocator> &) { return value(); }
00129 };
00130
00131 template<class ContainerAllocator>
00132 struct Definition< ::bond::Constants_<ContainerAllocator> > {
00133 static const char* value()
00134 {
00135 return "float32 DEAD_PUBLISH_PERIOD = 0.05\n\
00136 float32 DEFAULT_CONNECT_TIMEOUT = 10.0\n\
00137 float32 DEFAULT_HEARTBEAT_TIMEOUT = 4.0\n\
00138 float32 DEFAULT_DISCONNECT_TIMEOUT = 2.0\n\
00139 float32 DEFAULT_HEARTBEAT_PERIOD = 1.0\n\
00140 \n\
00141 string DISABLE_HEARTBEAT_TIMEOUT_PARAM=/bond_disable_heartbeat_timeout\n\
00142 ";
00143 }
00144
00145 static const char* value(const ::bond::Constants_<ContainerAllocator> &) { return value(); }
00146 };
00147
00148 template<class ContainerAllocator> struct IsFixedSize< ::bond::Constants_<ContainerAllocator> > : public TrueType {};
00149 }
00150 }
00151
00152 namespace ros
00153 {
00154 namespace serialization
00155 {
00156
00157 template<class ContainerAllocator> struct Serializer< ::bond::Constants_<ContainerAllocator> >
00158 {
00159 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00160 {
00161 }
00162
00163 ROS_DECLARE_ALLINONE_SERIALIZER;
00164 };
00165 }
00166 }
00167
00168 namespace ros
00169 {
00170 namespace message_operations
00171 {
00172
00173 template<class ContainerAllocator>
00174 struct Printer< ::bond::Constants_<ContainerAllocator> >
00175 {
00176 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::bond::Constants_<ContainerAllocator> & v)
00177 {
00178 }
00179 };
00180
00181
00182 }
00183 }
00184
00185 #endif // BOND_MESSAGE_CONSTANTS_H
00186