SystemCore.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/SystemCore.msg */
00002 #ifndef NASA_R2_COMMON_MSGS_MESSAGE_SYSTEMCORE_H
00003 #define NASA_R2_COMMON_MSGS_MESSAGE_SYSTEMCORE_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 SystemCore_ {
00022   typedef SystemCore_<ContainerAllocator> Type;
00023 
00024   SystemCore_()
00025   : id()
00026   , speed(0.0)
00027   , load(0.0)
00028   , failure(false)
00029   {
00030   }
00031 
00032   SystemCore_(const ContainerAllocator& _alloc)
00033   : id(_alloc)
00034   , speed(0.0)
00035   , load(0.0)
00036   , failure(false)
00037   {
00038   }
00039 
00040   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _id_type;
00041   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  id;
00042 
00043   typedef double _speed_type;
00044   double speed;
00045 
00046   typedef double _load_type;
00047   double load;
00048 
00049   typedef uint8_t _failure_type;
00050   uint8_t failure;
00051 
00052 
00053   typedef boost::shared_ptr< ::nasa_r2_common_msgs::SystemCore_<ContainerAllocator> > Ptr;
00054   typedef boost::shared_ptr< ::nasa_r2_common_msgs::SystemCore_<ContainerAllocator>  const> ConstPtr;
00055   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00056 }; // struct SystemCore
00057 typedef  ::nasa_r2_common_msgs::SystemCore_<std::allocator<void> > SystemCore;
00058 
00059 typedef boost::shared_ptr< ::nasa_r2_common_msgs::SystemCore> SystemCorePtr;
00060 typedef boost::shared_ptr< ::nasa_r2_common_msgs::SystemCore const> SystemCoreConstPtr;
00061 
00062 
00063 template<typename ContainerAllocator>
00064 std::ostream& operator<<(std::ostream& s, const  ::nasa_r2_common_msgs::SystemCore_<ContainerAllocator> & v)
00065 {
00066   ros::message_operations::Printer< ::nasa_r2_common_msgs::SystemCore_<ContainerAllocator> >::stream(s, "", v);
00067   return s;}
00068 
00069 } // namespace nasa_r2_common_msgs
00070 
00071 namespace ros
00072 {
00073 namespace message_traits
00074 {
00075 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::SystemCore_<ContainerAllocator> > : public TrueType {};
00076 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::SystemCore_<ContainerAllocator>  const> : public TrueType {};
00077 template<class ContainerAllocator>
00078 struct MD5Sum< ::nasa_r2_common_msgs::SystemCore_<ContainerAllocator> > {
00079   static const char* value() 
00080   {
00081     return "f24d56ccce4448beee59c654a367c906";
00082   }
00083 
00084   static const char* value(const  ::nasa_r2_common_msgs::SystemCore_<ContainerAllocator> &) { return value(); } 
00085   static const uint64_t static_value1 = 0xf24d56ccce4448beULL;
00086   static const uint64_t static_value2 = 0xee59c654a367c906ULL;
00087 };
00088 
00089 template<class ContainerAllocator>
00090 struct DataType< ::nasa_r2_common_msgs::SystemCore_<ContainerAllocator> > {
00091   static const char* value() 
00092   {
00093     return "nasa_r2_common_msgs/SystemCore";
00094   }
00095 
00096   static const char* value(const  ::nasa_r2_common_msgs::SystemCore_<ContainerAllocator> &) { return value(); } 
00097 };
00098 
00099 template<class ContainerAllocator>
00100 struct Definition< ::nasa_r2_common_msgs::SystemCore_<ContainerAllocator> > {
00101   static const char* value() 
00102   {
00103     return "string       id\n\
00104 float64      speed\n\
00105 float64     load\n\
00106 bool        failure\n\
00107 ";
00108   }
00109 
00110   static const char* value(const  ::nasa_r2_common_msgs::SystemCore_<ContainerAllocator> &) { return value(); } 
00111 };
00112 
00113 } // namespace message_traits
00114 } // namespace ros
00115 
00116 namespace ros
00117 {
00118 namespace serialization
00119 {
00120 
00121 template<class ContainerAllocator> struct Serializer< ::nasa_r2_common_msgs::SystemCore_<ContainerAllocator> >
00122 {
00123   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00124   {
00125     stream.next(m.id);
00126     stream.next(m.speed);
00127     stream.next(m.load);
00128     stream.next(m.failure);
00129   }
00130 
00131   ROS_DECLARE_ALLINONE_SERIALIZER;
00132 }; // struct SystemCore_
00133 } // namespace serialization
00134 } // namespace ros
00135 
00136 namespace ros
00137 {
00138 namespace message_operations
00139 {
00140 
00141 template<class ContainerAllocator>
00142 struct Printer< ::nasa_r2_common_msgs::SystemCore_<ContainerAllocator> >
00143 {
00144   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::nasa_r2_common_msgs::SystemCore_<ContainerAllocator> & v) 
00145   {
00146     s << indent << "id: ";
00147     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.id);
00148     s << indent << "speed: ";
00149     Printer<double>::stream(s, indent + "  ", v.speed);
00150     s << indent << "load: ";
00151     Printer<double>::stream(s, indent + "  ", v.load);
00152     s << indent << "failure: ";
00153     Printer<uint8_t>::stream(s, indent + "  ", v.failure);
00154   }
00155 };
00156 
00157 
00158 } // namespace message_operations
00159 } // namespace ros
00160 
00161 #endif // NASA_R2_COMMON_MSGS_MESSAGE_SYSTEMCORE_H
00162 


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