00001
00002 #ifndef ETHERCAT_TRIGGER_CONTROLLERS_MESSAGE_MULTIWAVEFORMTRANSITION_H
00003 #define ETHERCAT_TRIGGER_CONTROLLERS_MESSAGE_MULTIWAVEFORMTRANSITION_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 ethercat_trigger_controllers
00015 {
00016 template <class ContainerAllocator>
00017 struct MultiWaveformTransition_ : public ros::Message
00018 {
00019 typedef MultiWaveformTransition_<ContainerAllocator> Type;
00020
00021 MultiWaveformTransition_()
00022 : time(0.0)
00023 , value(0)
00024 , topic()
00025 {
00026 }
00027
00028 MultiWaveformTransition_(const ContainerAllocator& _alloc)
00029 : time(0.0)
00030 , value(0)
00031 , topic(_alloc)
00032 {
00033 }
00034
00035 typedef double _time_type;
00036 double time;
00037
00038 typedef uint32_t _value_type;
00039 uint32_t value;
00040
00041 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _topic_type;
00042 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > topic;
00043
00044
00045 private:
00046 static const char* __s_getDataType_() { return "ethercat_trigger_controllers/MultiWaveformTransition"; }
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 "bdd47e5d1c3d77473af2df9833a0608a"; }
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 "# Used to specify a transition in the SetMultiWaveform service.\n\
00061 \n\
00062 float64 time # Transition time after start of period.\n\
00063 uint32 value # Value of the digital output after the transition time.\n\
00064 string topic # Topic to publish the transition timestamp to, or empty string if the transition should not be published.\n\
00065 \n\
00066 "; }
00067 public:
00068 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00069
00070 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00071
00072 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00073 {
00074 ros::serialization::OStream stream(write_ptr, 1000000000);
00075 ros::serialization::serialize(stream, time);
00076 ros::serialization::serialize(stream, value);
00077 ros::serialization::serialize(stream, topic);
00078 return stream.getData();
00079 }
00080
00081 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00082 {
00083 ros::serialization::IStream stream(read_ptr, 1000000000);
00084 ros::serialization::deserialize(stream, time);
00085 ros::serialization::deserialize(stream, value);
00086 ros::serialization::deserialize(stream, topic);
00087 return stream.getData();
00088 }
00089
00090 ROS_DEPRECATED virtual uint32_t serializationLength() const
00091 {
00092 uint32_t size = 0;
00093 size += ros::serialization::serializationLength(time);
00094 size += ros::serialization::serializationLength(value);
00095 size += ros::serialization::serializationLength(topic);
00096 return size;
00097 }
00098
00099 typedef boost::shared_ptr< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> > Ptr;
00100 typedef boost::shared_ptr< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> const> ConstPtr;
00101 };
00102 typedef ::ethercat_trigger_controllers::MultiWaveformTransition_<std::allocator<void> > MultiWaveformTransition;
00103
00104 typedef boost::shared_ptr< ::ethercat_trigger_controllers::MultiWaveformTransition> MultiWaveformTransitionPtr;
00105 typedef boost::shared_ptr< ::ethercat_trigger_controllers::MultiWaveformTransition const> MultiWaveformTransitionConstPtr;
00106
00107
00108 template<typename ContainerAllocator>
00109 std::ostream& operator<<(std::ostream& s, const ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> & v)
00110 {
00111 ros::message_operations::Printer< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> >::stream(s, "", v);
00112 return s;}
00113
00114 }
00115
00116 namespace ros
00117 {
00118 namespace message_traits
00119 {
00120 template<class ContainerAllocator>
00121 struct MD5Sum< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> > {
00122 static const char* value()
00123 {
00124 return "bdd47e5d1c3d77473af2df9833a0608a";
00125 }
00126
00127 static const char* value(const ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> &) { return value(); }
00128 static const uint64_t static_value1 = 0xbdd47e5d1c3d7747ULL;
00129 static const uint64_t static_value2 = 0x3af2df9833a0608aULL;
00130 };
00131
00132 template<class ContainerAllocator>
00133 struct DataType< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> > {
00134 static const char* value()
00135 {
00136 return "ethercat_trigger_controllers/MultiWaveformTransition";
00137 }
00138
00139 static const char* value(const ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> &) { return value(); }
00140 };
00141
00142 template<class ContainerAllocator>
00143 struct Definition< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> > {
00144 static const char* value()
00145 {
00146 return "# Used to specify a transition in the SetMultiWaveform service.\n\
00147 \n\
00148 float64 time # Transition time after start of period.\n\
00149 uint32 value # Value of the digital output after the transition time.\n\
00150 string topic # Topic to publish the transition timestamp to, or empty string if the transition should not be published.\n\
00151 \n\
00152 ";
00153 }
00154
00155 static const char* value(const ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> &) { return value(); }
00156 };
00157
00158 }
00159 }
00160
00161 namespace ros
00162 {
00163 namespace serialization
00164 {
00165
00166 template<class ContainerAllocator> struct Serializer< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> >
00167 {
00168 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00169 {
00170 stream.next(m.time);
00171 stream.next(m.value);
00172 stream.next(m.topic);
00173 }
00174
00175 ROS_DECLARE_ALLINONE_SERIALIZER;
00176 };
00177 }
00178 }
00179
00180 namespace ros
00181 {
00182 namespace message_operations
00183 {
00184
00185 template<class ContainerAllocator>
00186 struct Printer< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> >
00187 {
00188 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> & v)
00189 {
00190 s << indent << "time: ";
00191 Printer<double>::stream(s, indent + " ", v.time);
00192 s << indent << "value: ";
00193 Printer<uint32_t>::stream(s, indent + " ", v.value);
00194 s << indent << "topic: ";
00195 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.topic);
00196 }
00197 };
00198
00199
00200 }
00201 }
00202
00203 #endif // ETHERCAT_TRIGGER_CONTROLLERS_MESSAGE_MULTIWAVEFORMTRANSITION_H
00204