00001
00002 #ifndef BRICS_ACTUATOR_MESSAGE_POISON_H
00003 #define BRICS_ACTUATOR_MESSAGE_POISON_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 brics_actuator
00015 {
00016 template <class ContainerAllocator>
00017 struct Poison_ : public ros::Message
00018 {
00019 typedef Poison_<ContainerAllocator> Type;
00020
00021 Poison_()
00022 : originator()
00023 , description()
00024 , qos(0.0)
00025 {
00026 }
00027
00028 Poison_(const ContainerAllocator& _alloc)
00029 : originator(_alloc)
00030 , description(_alloc)
00031 , qos(0.0)
00032 {
00033 }
00034
00035 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _originator_type;
00036 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > originator;
00037
00038 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _description_type;
00039 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > description;
00040
00041 typedef float _qos_type;
00042 float qos;
00043
00044
00045 private:
00046 static const char* __s_getDataType_() { return "brics_actuator/Poison"; }
00047 public:
00048 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00049
00050 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00051
00052 private:
00053 static const char* __s_getMD5Sum_() { return "b16420a6fd4cc18f64b776ee10e98bb0"; }
00054 public:
00055 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00056
00057 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00058
00059 private:
00060 static const char* __s_getMessageDefinition_() { return "string originator # node id\n\
00061 string description # encoding still an issue\n\
00062 float32 qos # reliability of the channel\n\
00063 # 0..1 where 1 means healthy\n\
00064 \n\
00065 "; }
00066 public:
00067 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00068
00069 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00070
00071 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00072 {
00073 ros::serialization::OStream stream(write_ptr, 1000000000);
00074 ros::serialization::serialize(stream, originator);
00075 ros::serialization::serialize(stream, description);
00076 ros::serialization::serialize(stream, qos);
00077 return stream.getData();
00078 }
00079
00080 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00081 {
00082 ros::serialization::IStream stream(read_ptr, 1000000000);
00083 ros::serialization::deserialize(stream, originator);
00084 ros::serialization::deserialize(stream, description);
00085 ros::serialization::deserialize(stream, qos);
00086 return stream.getData();
00087 }
00088
00089 ROS_DEPRECATED virtual uint32_t serializationLength() const
00090 {
00091 uint32_t size = 0;
00092 size += ros::serialization::serializationLength(originator);
00093 size += ros::serialization::serializationLength(description);
00094 size += ros::serialization::serializationLength(qos);
00095 return size;
00096 }
00097
00098 typedef boost::shared_ptr< ::brics_actuator::Poison_<ContainerAllocator> > Ptr;
00099 typedef boost::shared_ptr< ::brics_actuator::Poison_<ContainerAllocator> const> ConstPtr;
00100 };
00101 typedef ::brics_actuator::Poison_<std::allocator<void> > Poison;
00102
00103 typedef boost::shared_ptr< ::brics_actuator::Poison> PoisonPtr;
00104 typedef boost::shared_ptr< ::brics_actuator::Poison const> PoisonConstPtr;
00105
00106
00107 template<typename ContainerAllocator>
00108 std::ostream& operator<<(std::ostream& s, const ::brics_actuator::Poison_<ContainerAllocator> & v)
00109 {
00110 ros::message_operations::Printer< ::brics_actuator::Poison_<ContainerAllocator> >::stream(s, "", v);
00111 return s;}
00112
00113 }
00114
00115 namespace ros
00116 {
00117 namespace message_traits
00118 {
00119 template<class ContainerAllocator>
00120 struct MD5Sum< ::brics_actuator::Poison_<ContainerAllocator> > {
00121 static const char* value()
00122 {
00123 return "b16420a6fd4cc18f64b776ee10e98bb0";
00124 }
00125
00126 static const char* value(const ::brics_actuator::Poison_<ContainerAllocator> &) { return value(); }
00127 static const uint64_t static_value1 = 0xb16420a6fd4cc18fULL;
00128 static const uint64_t static_value2 = 0x64b776ee10e98bb0ULL;
00129 };
00130
00131 template<class ContainerAllocator>
00132 struct DataType< ::brics_actuator::Poison_<ContainerAllocator> > {
00133 static const char* value()
00134 {
00135 return "brics_actuator/Poison";
00136 }
00137
00138 static const char* value(const ::brics_actuator::Poison_<ContainerAllocator> &) { return value(); }
00139 };
00140
00141 template<class ContainerAllocator>
00142 struct Definition< ::brics_actuator::Poison_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "string originator # node id\n\
00146 string description # encoding still an issue\n\
00147 float32 qos # reliability of the channel\n\
00148 # 0..1 where 1 means healthy\n\
00149 \n\
00150 ";
00151 }
00152
00153 static const char* value(const ::brics_actuator::Poison_<ContainerAllocator> &) { return value(); }
00154 };
00155
00156 }
00157 }
00158
00159 namespace ros
00160 {
00161 namespace serialization
00162 {
00163
00164 template<class ContainerAllocator> struct Serializer< ::brics_actuator::Poison_<ContainerAllocator> >
00165 {
00166 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00167 {
00168 stream.next(m.originator);
00169 stream.next(m.description);
00170 stream.next(m.qos);
00171 }
00172
00173 ROS_DECLARE_ALLINONE_SERIALIZER;
00174 };
00175 }
00176 }
00177
00178 namespace ros
00179 {
00180 namespace message_operations
00181 {
00182
00183 template<class ContainerAllocator>
00184 struct Printer< ::brics_actuator::Poison_<ContainerAllocator> >
00185 {
00186 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::brics_actuator::Poison_<ContainerAllocator> & v)
00187 {
00188 s << indent << "originator: ";
00189 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.originator);
00190 s << indent << "description: ";
00191 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.description);
00192 s << indent << "qos: ";
00193 Printer<float>::stream(s, indent + " ", v.qos);
00194 }
00195 };
00196
00197
00198 }
00199 }
00200
00201 #endif // BRICS_ACTUATOR_MESSAGE_POISON_H
00202