Go to the documentation of this file.00001
00002 #ifndef COB_LIGHT_MESSAGE_SETLIGHTMODEGOAL_H
00003 #define COB_LIGHT_MESSAGE_SETLIGHTMODEGOAL_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 "cob_light/LightMode.h"
00018
00019 namespace cob_light
00020 {
00021 template <class ContainerAllocator>
00022 struct SetLightModeGoal_ {
00023 typedef SetLightModeGoal_<ContainerAllocator> Type;
00024
00025 SetLightModeGoal_()
00026 : mode()
00027 {
00028 }
00029
00030 SetLightModeGoal_(const ContainerAllocator& _alloc)
00031 : mode(_alloc)
00032 {
00033 }
00034
00035 typedef ::cob_light::LightMode_<ContainerAllocator> _mode_type;
00036 ::cob_light::LightMode_<ContainerAllocator> mode;
00037
00038
00039 typedef boost::shared_ptr< ::cob_light::SetLightModeGoal_<ContainerAllocator> > Ptr;
00040 typedef boost::shared_ptr< ::cob_light::SetLightModeGoal_<ContainerAllocator> const> ConstPtr;
00041 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00042 };
00043 typedef ::cob_light::SetLightModeGoal_<std::allocator<void> > SetLightModeGoal;
00044
00045 typedef boost::shared_ptr< ::cob_light::SetLightModeGoal> SetLightModeGoalPtr;
00046 typedef boost::shared_ptr< ::cob_light::SetLightModeGoal const> SetLightModeGoalConstPtr;
00047
00048
00049 template<typename ContainerAllocator>
00050 std::ostream& operator<<(std::ostream& s, const ::cob_light::SetLightModeGoal_<ContainerAllocator> & v)
00051 {
00052 ros::message_operations::Printer< ::cob_light::SetLightModeGoal_<ContainerAllocator> >::stream(s, "", v);
00053 return s;}
00054
00055 }
00056
00057 namespace ros
00058 {
00059 namespace message_traits
00060 {
00061 template<class ContainerAllocator> struct IsMessage< ::cob_light::SetLightModeGoal_<ContainerAllocator> > : public TrueType {};
00062 template<class ContainerAllocator> struct IsMessage< ::cob_light::SetLightModeGoal_<ContainerAllocator> const> : public TrueType {};
00063 template<class ContainerAllocator>
00064 struct MD5Sum< ::cob_light::SetLightModeGoal_<ContainerAllocator> > {
00065 static const char* value()
00066 {
00067 return "bfc3763d6f527fc6f26b234ea07ebf58";
00068 }
00069
00070 static const char* value(const ::cob_light::SetLightModeGoal_<ContainerAllocator> &) { return value(); }
00071 static const uint64_t static_value1 = 0xbfc3763d6f527fc6ULL;
00072 static const uint64_t static_value2 = 0xf26b234ea07ebf58ULL;
00073 };
00074
00075 template<class ContainerAllocator>
00076 struct DataType< ::cob_light::SetLightModeGoal_<ContainerAllocator> > {
00077 static const char* value()
00078 {
00079 return "cob_light/SetLightModeGoal";
00080 }
00081
00082 static const char* value(const ::cob_light::SetLightModeGoal_<ContainerAllocator> &) { return value(); }
00083 };
00084
00085 template<class ContainerAllocator>
00086 struct Definition< ::cob_light::SetLightModeGoal_<ContainerAllocator> > {
00087 static const char* value()
00088 {
00089 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00090 # The goal\n\
00091 cob_light/LightMode mode\n\
00092 \n\
00093 ================================================================================\n\
00094 MSG: cob_light/LightMode\n\
00095 uint8 mode\n\
00096 uint8 NONE = 0 # will turn everything off\n\
00097 uint8 STATIC = 1 # will change the LEDs to \"color\"\n\
00098 uint8 FLASH = 2 # will change the LEDs frequently with \"frequency\" from \"color\" to black\n\
00099 uint8 BREATH = 3 # will change the LEDs smoothly with \"frequency\" from \"color\" to black\n\
00100 uint8 BREATH_COLOR = 4 # will change the LEDs smoothly with \"frequency\" from \"color\" to black\n\
00101 # and flips color in time\n\
00102 uint8 FADE_COLOR = 5 # will fade the colors in rainbow\n\
00103 \n\
00104 std_msgs/ColorRGBA color #the color which will be used\n\
00105 float32 frequency # in Hz\n\
00106 float32 timeout # in s, requested mode will be executed for max timout s.\n\
00107 # default is 0 and meens no timeout.\n\
00108 int32 pulses # spezifies the amount of pulses which will be executed.\n\
00109 # eg: mode = flash, pulses = 2. Meens the light will flash two times\n\
00110 int8 priority # priority [-20,20] default = 0. Modes with same or higher priorities will \n\
00111 # be executed.\n\
00112 ================================================================================\n\
00113 MSG: std_msgs/ColorRGBA\n\
00114 float32 r\n\
00115 float32 g\n\
00116 float32 b\n\
00117 float32 a\n\
00118 \n\
00119 ";
00120 }
00121
00122 static const char* value(const ::cob_light::SetLightModeGoal_<ContainerAllocator> &) { return value(); }
00123 };
00124
00125 template<class ContainerAllocator> struct IsFixedSize< ::cob_light::SetLightModeGoal_<ContainerAllocator> > : public TrueType {};
00126 }
00127 }
00128
00129 namespace ros
00130 {
00131 namespace serialization
00132 {
00133
00134 template<class ContainerAllocator> struct Serializer< ::cob_light::SetLightModeGoal_<ContainerAllocator> >
00135 {
00136 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00137 {
00138 stream.next(m.mode);
00139 }
00140
00141 ROS_DECLARE_ALLINONE_SERIALIZER;
00142 };
00143 }
00144 }
00145
00146 namespace ros
00147 {
00148 namespace message_operations
00149 {
00150
00151 template<class ContainerAllocator>
00152 struct Printer< ::cob_light::SetLightModeGoal_<ContainerAllocator> >
00153 {
00154 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cob_light::SetLightModeGoal_<ContainerAllocator> & v)
00155 {
00156 s << indent << "mode: ";
00157 s << std::endl;
00158 Printer< ::cob_light::LightMode_<ContainerAllocator> >::stream(s, indent + " ", v.mode);
00159 }
00160 };
00161
00162
00163 }
00164 }
00165
00166 #endif // COB_LIGHT_MESSAGE_SETLIGHTMODEGOAL_H
00167