MultiWaveform.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-pr2_controllers/doc_stacks/2014-01-03_11-37-53.226877/pr2_controllers/ethercat_trigger_controllers/msg/MultiWaveform.msg */
00002 #ifndef ETHERCAT_TRIGGER_CONTROLLERS_MESSAGE_MULTIWAVEFORM_H
00003 #define ETHERCAT_TRIGGER_CONTROLLERS_MESSAGE_MULTIWAVEFORM_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 #include "ethercat_trigger_controllers/MultiWaveformTransition.h"
00018 
00019 namespace ethercat_trigger_controllers
00020 {
00021 template <class ContainerAllocator>
00022 struct MultiWaveform_ {
00023   typedef MultiWaveform_<ContainerAllocator> Type;
00024 
00025   MultiWaveform_()
00026   : period(0.0)
00027   , zero_offset(0.0)
00028   , transitions()
00029   {
00030   }
00031 
00032   MultiWaveform_(const ContainerAllocator& _alloc)
00033   : period(0.0)
00034   , zero_offset(0.0)
00035   , transitions(_alloc)
00036   {
00037   }
00038 
00039   typedef double _period_type;
00040   double period;
00041 
00042   typedef double _zero_offset_type;
00043   double zero_offset;
00044 
00045   typedef std::vector< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> >::other >  _transitions_type;
00046   std::vector< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> >::other >  transitions;
00047 
00048 
00049   typedef boost::shared_ptr< ::ethercat_trigger_controllers::MultiWaveform_<ContainerAllocator> > Ptr;
00050   typedef boost::shared_ptr< ::ethercat_trigger_controllers::MultiWaveform_<ContainerAllocator>  const> ConstPtr;
00051   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00052 }; // struct MultiWaveform
00053 typedef  ::ethercat_trigger_controllers::MultiWaveform_<std::allocator<void> > MultiWaveform;
00054 
00055 typedef boost::shared_ptr< ::ethercat_trigger_controllers::MultiWaveform> MultiWaveformPtr;
00056 typedef boost::shared_ptr< ::ethercat_trigger_controllers::MultiWaveform const> MultiWaveformConstPtr;
00057 
00058 
00059 template<typename ContainerAllocator>
00060 std::ostream& operator<<(std::ostream& s, const  ::ethercat_trigger_controllers::MultiWaveform_<ContainerAllocator> & v)
00061 {
00062   ros::message_operations::Printer< ::ethercat_trigger_controllers::MultiWaveform_<ContainerAllocator> >::stream(s, "", v);
00063   return s;}
00064 
00065 } // namespace ethercat_trigger_controllers
00066 
00067 namespace ros
00068 {
00069 namespace message_traits
00070 {
00071 template<class ContainerAllocator> struct IsMessage< ::ethercat_trigger_controllers::MultiWaveform_<ContainerAllocator> > : public TrueType {};
00072 template<class ContainerAllocator> struct IsMessage< ::ethercat_trigger_controllers::MultiWaveform_<ContainerAllocator>  const> : public TrueType {};
00073 template<class ContainerAllocator>
00074 struct MD5Sum< ::ethercat_trigger_controllers::MultiWaveform_<ContainerAllocator> > {
00075   static const char* value() 
00076   {
00077     return "6a8e166563c159e73f391a302e7b37f6";
00078   }
00079 
00080   static const char* value(const  ::ethercat_trigger_controllers::MultiWaveform_<ContainerAllocator> &) { return value(); } 
00081   static const uint64_t static_value1 = 0x6a8e166563c159e7ULL;
00082   static const uint64_t static_value2 = 0x3f391a302e7b37f6ULL;
00083 };
00084 
00085 template<class ContainerAllocator>
00086 struct DataType< ::ethercat_trigger_controllers::MultiWaveform_<ContainerAllocator> > {
00087   static const char* value() 
00088   {
00089     return "ethercat_trigger_controllers/MultiWaveform";
00090   }
00091 
00092   static const char* value(const  ::ethercat_trigger_controllers::MultiWaveform_<ContainerAllocator> &) { return value(); } 
00093 };
00094 
00095 template<class ContainerAllocator>
00096 struct Definition< ::ethercat_trigger_controllers::MultiWaveform_<ContainerAllocator> > {
00097   static const char* value() 
00098   {
00099     return "# Transitions will occur at k * period + zero_offset + transitions[j].time, where j and\n\
00100 # k are integers.\n\
00101 \n\
00102 float64 period # Period of the waveform in seconds.\n\
00103 float64 zero_offset # Time corresponding to a time of 0 in times[] in seconds\n\
00104 MultiWaveformTransition[] transitions # Transitions in the waveform. Transition times should be in increasing order, and be between 0 (inclusive) and period (exclusive)\n\
00105 \n\
00106 ================================================================================\n\
00107 MSG: ethercat_trigger_controllers/MultiWaveformTransition\n\
00108 # Used to specify a transition in the SetMultiWaveform service.\n\
00109 \n\
00110 float64 time # Transition time after start of period.\n\
00111 uint32 value # Value of the digital output after the transition time.\n\
00112 string topic # Topic to publish the transition timestamp to, or empty string if the transition should not be published.\n\
00113 \n\
00114 ";
00115   }
00116 
00117   static const char* value(const  ::ethercat_trigger_controllers::MultiWaveform_<ContainerAllocator> &) { return value(); } 
00118 };
00119 
00120 } // namespace message_traits
00121 } // namespace ros
00122 
00123 namespace ros
00124 {
00125 namespace serialization
00126 {
00127 
00128 template<class ContainerAllocator> struct Serializer< ::ethercat_trigger_controllers::MultiWaveform_<ContainerAllocator> >
00129 {
00130   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00131   {
00132     stream.next(m.period);
00133     stream.next(m.zero_offset);
00134     stream.next(m.transitions);
00135   }
00136 
00137   ROS_DECLARE_ALLINONE_SERIALIZER;
00138 }; // struct MultiWaveform_
00139 } // namespace serialization
00140 } // namespace ros
00141 
00142 namespace ros
00143 {
00144 namespace message_operations
00145 {
00146 
00147 template<class ContainerAllocator>
00148 struct Printer< ::ethercat_trigger_controllers::MultiWaveform_<ContainerAllocator> >
00149 {
00150   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::ethercat_trigger_controllers::MultiWaveform_<ContainerAllocator> & v) 
00151   {
00152     s << indent << "period: ";
00153     Printer<double>::stream(s, indent + "  ", v.period);
00154     s << indent << "zero_offset: ";
00155     Printer<double>::stream(s, indent + "  ", v.zero_offset);
00156     s << indent << "transitions[]" << std::endl;
00157     for (size_t i = 0; i < v.transitions.size(); ++i)
00158     {
00159       s << indent << "  transitions[" << i << "]: ";
00160       s << std::endl;
00161       s << indent;
00162       Printer< ::ethercat_trigger_controllers::MultiWaveformTransition_<ContainerAllocator> >::stream(s, indent + "    ", v.transitions[i]);
00163     }
00164   }
00165 };
00166 
00167 
00168 } // namespace message_operations
00169 } // namespace ros
00170 
00171 #endif // ETHERCAT_TRIGGER_CONTROLLERS_MESSAGE_MULTIWAVEFORM_H
00172 


ethercat_trigger_controllers
Author(s): Blaise Gassend
autogenerated on Fri Jan 3 2014 11:41:29