PowerState.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-nasa_r2_common/doc_stacks/2014-10-06_02-39-31.575241/nasa_r2_common/nasa_r2_common_msgs/msg/PowerState.msg */
00002 #ifndef NASA_R2_COMMON_MSGS_MESSAGE_POWERSTATE_H
00003 #define NASA_R2_COMMON_MSGS_MESSAGE_POWERSTATE_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 nasa_r2_common_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct PowerState_ {
00022   typedef PowerState_<ContainerAllocator> Type;
00023 
00024   PowerState_()
00025   : data(0)
00026   {
00027   }
00028 
00029   PowerState_(const ContainerAllocator& _alloc)
00030   : data(0)
00031   {
00032   }
00033 
00034   typedef uint8_t _data_type;
00035   uint8_t data;
00036 
00037   enum { UNKNOWN = 0 };
00038   enum { POWER_OFF = 1 };
00039   enum { LOGIC_POWER = 2 };
00040   enum { MOTOR_POWER = 3 };
00041   enum { MOTOR48_POWER = 4 };
00042   enum { MOTOR96_POWER = 5 };
00043   enum { FAULTED = 6 };
00044   enum { TRANSITIONING = 7 };
00045   enum { IGNORE = 8 };
00046 
00047   typedef boost::shared_ptr< ::nasa_r2_common_msgs::PowerState_<ContainerAllocator> > Ptr;
00048   typedef boost::shared_ptr< ::nasa_r2_common_msgs::PowerState_<ContainerAllocator>  const> ConstPtr;
00049   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00050 }; // struct PowerState
00051 typedef  ::nasa_r2_common_msgs::PowerState_<std::allocator<void> > PowerState;
00052 
00053 typedef boost::shared_ptr< ::nasa_r2_common_msgs::PowerState> PowerStatePtr;
00054 typedef boost::shared_ptr< ::nasa_r2_common_msgs::PowerState const> PowerStateConstPtr;
00055 
00056 
00057 template<typename ContainerAllocator>
00058 std::ostream& operator<<(std::ostream& s, const  ::nasa_r2_common_msgs::PowerState_<ContainerAllocator> & v)
00059 {
00060   ros::message_operations::Printer< ::nasa_r2_common_msgs::PowerState_<ContainerAllocator> >::stream(s, "", v);
00061   return s;}
00062 
00063 } // namespace nasa_r2_common_msgs
00064 
00065 namespace ros
00066 {
00067 namespace message_traits
00068 {
00069 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::PowerState_<ContainerAllocator> > : public TrueType {};
00070 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::PowerState_<ContainerAllocator>  const> : public TrueType {};
00071 template<class ContainerAllocator>
00072 struct MD5Sum< ::nasa_r2_common_msgs::PowerState_<ContainerAllocator> > {
00073   static const char* value() 
00074   {
00075     return "584ec0c2e2cf9b94d0b9da5027668714";
00076   }
00077 
00078   static const char* value(const  ::nasa_r2_common_msgs::PowerState_<ContainerAllocator> &) { return value(); } 
00079   static const uint64_t static_value1 = 0x584ec0c2e2cf9b94ULL;
00080   static const uint64_t static_value2 = 0xd0b9da5027668714ULL;
00081 };
00082 
00083 template<class ContainerAllocator>
00084 struct DataType< ::nasa_r2_common_msgs::PowerState_<ContainerAllocator> > {
00085   static const char* value() 
00086   {
00087     return "nasa_r2_common_msgs/PowerState";
00088   }
00089 
00090   static const char* value(const  ::nasa_r2_common_msgs::PowerState_<ContainerAllocator> &) { return value(); } 
00091 };
00092 
00093 template<class ContainerAllocator>
00094 struct Definition< ::nasa_r2_common_msgs::PowerState_<ContainerAllocator> > {
00095   static const char* value() 
00096   {
00097     return "uint8 data\n\
00098 uint8 UNKNOWN       = 0\n\
00099 uint8 POWER_OFF     = 1\n\
00100 uint8 LOGIC_POWER   = 2\n\
00101 uint8 MOTOR_POWER   = 3\n\
00102 uint8 MOTOR48_POWER = 4\n\
00103 uint8 MOTOR96_POWER = 5\n\
00104 uint8 FAULTED       = 6\n\
00105 uint8 TRANSITIONING = 7\n\
00106 uint8 IGNORE        = 8\n\
00107 \n\
00108 ";
00109   }
00110 
00111   static const char* value(const  ::nasa_r2_common_msgs::PowerState_<ContainerAllocator> &) { return value(); } 
00112 };
00113 
00114 template<class ContainerAllocator> struct IsFixedSize< ::nasa_r2_common_msgs::PowerState_<ContainerAllocator> > : public TrueType {};
00115 } // namespace message_traits
00116 } // namespace ros
00117 
00118 namespace ros
00119 {
00120 namespace serialization
00121 {
00122 
00123 template<class ContainerAllocator> struct Serializer< ::nasa_r2_common_msgs::PowerState_<ContainerAllocator> >
00124 {
00125   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00126   {
00127     stream.next(m.data);
00128   }
00129 
00130   ROS_DECLARE_ALLINONE_SERIALIZER;
00131 }; // struct PowerState_
00132 } // namespace serialization
00133 } // namespace ros
00134 
00135 namespace ros
00136 {
00137 namespace message_operations
00138 {
00139 
00140 template<class ContainerAllocator>
00141 struct Printer< ::nasa_r2_common_msgs::PowerState_<ContainerAllocator> >
00142 {
00143   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::nasa_r2_common_msgs::PowerState_<ContainerAllocator> & v) 
00144   {
00145     s << indent << "data: ";
00146     Printer<uint8_t>::stream(s, indent + "  ", v.data);
00147   }
00148 };
00149 
00150 
00151 } // namespace message_operations
00152 } // namespace ros
00153 
00154 #endif // NASA_R2_COMMON_MSGS_MESSAGE_POWERSTATE_H
00155 


nasa_r2_common_msgs
Author(s): Paul Dinh. Maintained by Jennifer Turner
autogenerated on Mon Oct 6 2014 02:42:34