Modes.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/Modes.msg */
00002 #ifndef NASA_R2_COMMON_MSGS_MESSAGE_MODES_H
00003 #define NASA_R2_COMMON_MSGS_MESSAGE_MODES_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 "std_msgs/Header.h"
00018 
00019 namespace nasa_r2_common_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct Modes_ {
00023   typedef Modes_<ContainerAllocator> Type;
00024 
00025   Modes_()
00026   : header()
00027   , originator()
00028   , master()
00029   , joint_names()
00030   , supervisor()
00031   , incumbent()
00032   , mode()
00033   {
00034   }
00035 
00036   Modes_(const ContainerAllocator& _alloc)
00037   : header(_alloc)
00038   , originator(_alloc)
00039   , master(_alloc)
00040   , joint_names(_alloc)
00041   , supervisor(_alloc)
00042   , incumbent(_alloc)
00043   , mode(_alloc)
00044   {
00045   }
00046 
00047   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00048    ::std_msgs::Header_<ContainerAllocator>  header;
00049 
00050   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _originator_type;
00051   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  originator;
00052 
00053   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _master_type;
00054   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  master;
00055 
00056   typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  _joint_names_type;
00057   std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  joint_names;
00058 
00059   typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  _supervisor_type;
00060   std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  supervisor;
00061 
00062   typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  _incumbent_type;
00063   std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  incumbent;
00064 
00065   typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  _mode_type;
00066   std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  mode;
00067 
00068 
00069   typedef boost::shared_ptr< ::nasa_r2_common_msgs::Modes_<ContainerAllocator> > Ptr;
00070   typedef boost::shared_ptr< ::nasa_r2_common_msgs::Modes_<ContainerAllocator>  const> ConstPtr;
00071   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00072 }; // struct Modes
00073 typedef  ::nasa_r2_common_msgs::Modes_<std::allocator<void> > Modes;
00074 
00075 typedef boost::shared_ptr< ::nasa_r2_common_msgs::Modes> ModesPtr;
00076 typedef boost::shared_ptr< ::nasa_r2_common_msgs::Modes const> ModesConstPtr;
00077 
00078 
00079 template<typename ContainerAllocator>
00080 std::ostream& operator<<(std::ostream& s, const  ::nasa_r2_common_msgs::Modes_<ContainerAllocator> & v)
00081 {
00082   ros::message_operations::Printer< ::nasa_r2_common_msgs::Modes_<ContainerAllocator> >::stream(s, "", v);
00083   return s;}
00084 
00085 } // namespace nasa_r2_common_msgs
00086 
00087 namespace ros
00088 {
00089 namespace message_traits
00090 {
00091 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::Modes_<ContainerAllocator> > : public TrueType {};
00092 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::Modes_<ContainerAllocator>  const> : public TrueType {};
00093 template<class ContainerAllocator>
00094 struct MD5Sum< ::nasa_r2_common_msgs::Modes_<ContainerAllocator> > {
00095   static const char* value() 
00096   {
00097     return "63b389b7faa68c6a12708f1df983f6f3";
00098   }
00099 
00100   static const char* value(const  ::nasa_r2_common_msgs::Modes_<ContainerAllocator> &) { return value(); } 
00101   static const uint64_t static_value1 = 0x63b389b7faa68c6aULL;
00102   static const uint64_t static_value2 = 0x12708f1df983f6f3ULL;
00103 };
00104 
00105 template<class ContainerAllocator>
00106 struct DataType< ::nasa_r2_common_msgs::Modes_<ContainerAllocator> > {
00107   static const char* value() 
00108   {
00109     return "nasa_r2_common_msgs/Modes";
00110   }
00111 
00112   static const char* value(const  ::nasa_r2_common_msgs::Modes_<ContainerAllocator> &) { return value(); } 
00113 };
00114 
00115 template<class ContainerAllocator>
00116 struct Definition< ::nasa_r2_common_msgs::Modes_<ContainerAllocator> > {
00117   static const char* value() 
00118   {
00119     return "Header header\n\
00120 string originator\n\
00121 string master\n\
00122 string[] joint_names\n\
00123 string[] supervisor\n\
00124 string[] incumbent\n\
00125 string[] mode\n\
00126 \n\
00127 ================================================================================\n\
00128 MSG: std_msgs/Header\n\
00129 # Standard metadata for higher-level stamped data types.\n\
00130 # This is generally used to communicate timestamped data \n\
00131 # in a particular coordinate frame.\n\
00132 # \n\
00133 # sequence ID: consecutively increasing ID \n\
00134 uint32 seq\n\
00135 #Two-integer timestamp that is expressed as:\n\
00136 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00137 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00138 # time-handling sugar is provided by the client library\n\
00139 time stamp\n\
00140 #Frame this data is associated with\n\
00141 # 0: no frame\n\
00142 # 1: global frame\n\
00143 string frame_id\n\
00144 \n\
00145 ";
00146   }
00147 
00148   static const char* value(const  ::nasa_r2_common_msgs::Modes_<ContainerAllocator> &) { return value(); } 
00149 };
00150 
00151 template<class ContainerAllocator> struct HasHeader< ::nasa_r2_common_msgs::Modes_<ContainerAllocator> > : public TrueType {};
00152 template<class ContainerAllocator> struct HasHeader< const ::nasa_r2_common_msgs::Modes_<ContainerAllocator> > : public TrueType {};
00153 } // namespace message_traits
00154 } // namespace ros
00155 
00156 namespace ros
00157 {
00158 namespace serialization
00159 {
00160 
00161 template<class ContainerAllocator> struct Serializer< ::nasa_r2_common_msgs::Modes_<ContainerAllocator> >
00162 {
00163   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00164   {
00165     stream.next(m.header);
00166     stream.next(m.originator);
00167     stream.next(m.master);
00168     stream.next(m.joint_names);
00169     stream.next(m.supervisor);
00170     stream.next(m.incumbent);
00171     stream.next(m.mode);
00172   }
00173 
00174   ROS_DECLARE_ALLINONE_SERIALIZER;
00175 }; // struct Modes_
00176 } // namespace serialization
00177 } // namespace ros
00178 
00179 namespace ros
00180 {
00181 namespace message_operations
00182 {
00183 
00184 template<class ContainerAllocator>
00185 struct Printer< ::nasa_r2_common_msgs::Modes_<ContainerAllocator> >
00186 {
00187   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::nasa_r2_common_msgs::Modes_<ContainerAllocator> & v) 
00188   {
00189     s << indent << "header: ";
00190 s << std::endl;
00191     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00192     s << indent << "originator: ";
00193     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.originator);
00194     s << indent << "master: ";
00195     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.master);
00196     s << indent << "joint_names[]" << std::endl;
00197     for (size_t i = 0; i < v.joint_names.size(); ++i)
00198     {
00199       s << indent << "  joint_names[" << i << "]: ";
00200       Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.joint_names[i]);
00201     }
00202     s << indent << "supervisor[]" << std::endl;
00203     for (size_t i = 0; i < v.supervisor.size(); ++i)
00204     {
00205       s << indent << "  supervisor[" << i << "]: ";
00206       Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.supervisor[i]);
00207     }
00208     s << indent << "incumbent[]" << std::endl;
00209     for (size_t i = 0; i < v.incumbent.size(); ++i)
00210     {
00211       s << indent << "  incumbent[" << i << "]: ";
00212       Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.incumbent[i]);
00213     }
00214     s << indent << "mode[]" << std::endl;
00215     for (size_t i = 0; i < v.mode.size(); ++i)
00216     {
00217       s << indent << "  mode[" << i << "]: ";
00218       Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.mode[i]);
00219     }
00220   }
00221 };
00222 
00223 
00224 } // namespace message_operations
00225 } // namespace ros
00226 
00227 #endif // NASA_R2_COMMON_MSGS_MESSAGE_MODES_H
00228 


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