Go to the documentation of this file.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 <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 ethercat_trigger_controllers
00019 {
00020 template <class ContainerAllocator>
00021 struct MultiWaveformTransition_ {
00022 typedef MultiWaveformTransition_<ContainerAllocator> Type;
00023
00024 MultiWaveformTransition_()
00025 : time(0.0)
00026 , value(0)
00027 , topic()
00028 {
00029 }
00030
00031 MultiWaveformTransition_(const ContainerAllocator& _alloc)
00032 : time(0.0)
00033 , value(0)
00034 , topic(_alloc)
00035 {
00036 }
00037
00038 typedef double _time_type;
00039 double time;
00040
00041 typedef uint32_t _value_type;
00042 uint32_t value;
00043
00044 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _topic_type;
00045 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > topic;
00046
00047
00048 typedef boost::shared_ptr< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::ethercat_trigger_controllers::MultiWaveformTransition_<std::allocator<void> > MultiWaveformTransition;
00053
00054 typedef boost::shared_ptr< ::ethercat_trigger_controllers::MultiWaveformTransition> MultiWaveformTransitionPtr;
00055 typedef boost::shared_ptr< ::ethercat_trigger_controllers::MultiWaveformTransition const> MultiWaveformTransitionConstPtr;
00056
00057
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> & v)
00060 {
00061 ros::message_operations::Printer< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> >::stream(s, "", v);
00062 return s;}
00063
00064 }
00065
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> > {
00074 static const char* value()
00075 {
00076 return "bdd47e5d1c3d77473af2df9833a0608a";
00077 }
00078
00079 static const char* value(const ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> &) { return value(); }
00080 static const uint64_t static_value1 = 0xbdd47e5d1c3d7747ULL;
00081 static const uint64_t static_value2 = 0x3af2df9833a0608aULL;
00082 };
00083
00084 template<class ContainerAllocator>
00085 struct DataType< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> > {
00086 static const char* value()
00087 {
00088 return "ethercat_trigger_controllers/MultiWaveformTransition";
00089 }
00090
00091 static const char* value(const ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> &) { return value(); }
00092 };
00093
00094 template<class ContainerAllocator>
00095 struct Definition< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> > {
00096 static const char* value()
00097 {
00098 return "# Used to specify a transition in the SetMultiWaveform service.\n\
00099 \n\
00100 float64 time # Transition time after start of period.\n\
00101 uint32 value # Value of the digital output after the transition time.\n\
00102 string topic # Topic to publish the transition timestamp to, or empty string if the transition should not be published.\n\
00103 \n\
00104 ";
00105 }
00106
00107 static const char* value(const ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> &) { return value(); }
00108 };
00109
00110 }
00111 }
00112
00113 namespace ros
00114 {
00115 namespace serialization
00116 {
00117
00118 template<class ContainerAllocator> struct Serializer< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> >
00119 {
00120 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00121 {
00122 stream.next(m.time);
00123 stream.next(m.value);
00124 stream.next(m.topic);
00125 }
00126
00127 ROS_DECLARE_ALLINONE_SERIALIZER;
00128 };
00129 }
00130 }
00131
00132 namespace ros
00133 {
00134 namespace message_operations
00135 {
00136
00137 template<class ContainerAllocator>
00138 struct Printer< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> >
00139 {
00140 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> & v)
00141 {
00142 s << indent << "time: ";
00143 Printer<double>::stream(s, indent + " ", v.time);
00144 s << indent << "value: ";
00145 Printer<uint32_t>::stream(s, indent + " ", v.value);
00146 s << indent << "topic: ";
00147 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.topic);
00148 }
00149 };
00150
00151
00152 }
00153 }
00154
00155 #endif // ETHERCAT_TRIGGER_CONTROLLERS_MESSAGE_MULTIWAVEFORMTRANSITION_H
00156