Status.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-bond_core/doc_stacks/2013-08-15_10-09-12.487376/bond_core/bond/msg/Status.msg */
00002 #ifndef BOND_MESSAGE_STATUS_H
00003 #define BOND_MESSAGE_STATUS_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 bond
00020 {
00021 template <class ContainerAllocator>
00022 struct Status_ {
00023   typedef Status_<ContainerAllocator> Type;
00024 
00025   Status_()
00026   : header()
00027   , id()
00028   , instance_id()
00029   , active(false)
00030   , heartbeat_timeout(0.0)
00031   , heartbeat_period(0.0)
00032   {
00033   }
00034 
00035   Status_(const ContainerAllocator& _alloc)
00036   : header(_alloc)
00037   , id(_alloc)
00038   , instance_id(_alloc)
00039   , active(false)
00040   , heartbeat_timeout(0.0)
00041   , heartbeat_period(0.0)
00042   {
00043   }
00044 
00045   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00046    ::std_msgs::Header_<ContainerAllocator>  header;
00047 
00048   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _id_type;
00049   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  id;
00050 
00051   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _instance_id_type;
00052   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  instance_id;
00053 
00054   typedef uint8_t _active_type;
00055   uint8_t active;
00056 
00057   typedef float _heartbeat_timeout_type;
00058   float heartbeat_timeout;
00059 
00060   typedef float _heartbeat_period_type;
00061   float heartbeat_period;
00062 
00063 
00064   typedef boost::shared_ptr< ::bond::Status_<ContainerAllocator> > Ptr;
00065   typedef boost::shared_ptr< ::bond::Status_<ContainerAllocator>  const> ConstPtr;
00066   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00067 }; // struct Status
00068 typedef  ::bond::Status_<std::allocator<void> > Status;
00069 
00070 typedef boost::shared_ptr< ::bond::Status> StatusPtr;
00071 typedef boost::shared_ptr< ::bond::Status const> StatusConstPtr;
00072 
00073 
00074 template<typename ContainerAllocator>
00075 std::ostream& operator<<(std::ostream& s, const  ::bond::Status_<ContainerAllocator> & v)
00076 {
00077   ros::message_operations::Printer< ::bond::Status_<ContainerAllocator> >::stream(s, "", v);
00078   return s;}
00079 
00080 } // namespace bond
00081 
00082 namespace ros
00083 {
00084 namespace message_traits
00085 {
00086 template<class ContainerAllocator> struct IsMessage< ::bond::Status_<ContainerAllocator> > : public TrueType {};
00087 template<class ContainerAllocator> struct IsMessage< ::bond::Status_<ContainerAllocator>  const> : public TrueType {};
00088 template<class ContainerAllocator>
00089 struct MD5Sum< ::bond::Status_<ContainerAllocator> > {
00090   static const char* value() 
00091   {
00092     return "eacc84bf5d65b6777d4c50f463dfb9c8";
00093   }
00094 
00095   static const char* value(const  ::bond::Status_<ContainerAllocator> &) { return value(); } 
00096   static const uint64_t static_value1 = 0xeacc84bf5d65b677ULL;
00097   static const uint64_t static_value2 = 0x7d4c50f463dfb9c8ULL;
00098 };
00099 
00100 template<class ContainerAllocator>
00101 struct DataType< ::bond::Status_<ContainerAllocator> > {
00102   static const char* value() 
00103   {
00104     return "bond/Status";
00105   }
00106 
00107   static const char* value(const  ::bond::Status_<ContainerAllocator> &) { return value(); } 
00108 };
00109 
00110 template<class ContainerAllocator>
00111 struct Definition< ::bond::Status_<ContainerAllocator> > {
00112   static const char* value() 
00113   {
00114     return "Header header\n\
00115 string id  # ID of the bond\n\
00116 string instance_id  # Unique ID for an individual in a bond\n\
00117 bool active\n\
00118 \n\
00119 # Including the timeouts for the bond makes it easier to debug mis-matches\n\
00120 # between the two sides.\n\
00121 float32 heartbeat_timeout\n\
00122 float32 heartbeat_period\n\
00123 ================================================================================\n\
00124 MSG: std_msgs/Header\n\
00125 # Standard metadata for higher-level stamped data types.\n\
00126 # This is generally used to communicate timestamped data \n\
00127 # in a particular coordinate frame.\n\
00128 # \n\
00129 # sequence ID: consecutively increasing ID \n\
00130 uint32 seq\n\
00131 #Two-integer timestamp that is expressed as:\n\
00132 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00133 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00134 # time-handling sugar is provided by the client library\n\
00135 time stamp\n\
00136 #Frame this data is associated with\n\
00137 # 0: no frame\n\
00138 # 1: global frame\n\
00139 string frame_id\n\
00140 \n\
00141 ";
00142   }
00143 
00144   static const char* value(const  ::bond::Status_<ContainerAllocator> &) { return value(); } 
00145 };
00146 
00147 template<class ContainerAllocator> struct HasHeader< ::bond::Status_<ContainerAllocator> > : public TrueType {};
00148 template<class ContainerAllocator> struct HasHeader< const ::bond::Status_<ContainerAllocator> > : public TrueType {};
00149 } // namespace message_traits
00150 } // namespace ros
00151 
00152 namespace ros
00153 {
00154 namespace serialization
00155 {
00156 
00157 template<class ContainerAllocator> struct Serializer< ::bond::Status_<ContainerAllocator> >
00158 {
00159   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00160   {
00161     stream.next(m.header);
00162     stream.next(m.id);
00163     stream.next(m.instance_id);
00164     stream.next(m.active);
00165     stream.next(m.heartbeat_timeout);
00166     stream.next(m.heartbeat_period);
00167   }
00168 
00169   ROS_DECLARE_ALLINONE_SERIALIZER;
00170 }; // struct Status_
00171 } // namespace serialization
00172 } // namespace ros
00173 
00174 namespace ros
00175 {
00176 namespace message_operations
00177 {
00178 
00179 template<class ContainerAllocator>
00180 struct Printer< ::bond::Status_<ContainerAllocator> >
00181 {
00182   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::bond::Status_<ContainerAllocator> & v) 
00183   {
00184     s << indent << "header: ";
00185 s << std::endl;
00186     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00187     s << indent << "id: ";
00188     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.id);
00189     s << indent << "instance_id: ";
00190     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.instance_id);
00191     s << indent << "active: ";
00192     Printer<uint8_t>::stream(s, indent + "  ", v.active);
00193     s << indent << "heartbeat_timeout: ";
00194     Printer<float>::stream(s, indent + "  ", v.heartbeat_timeout);
00195     s << indent << "heartbeat_period: ";
00196     Printer<float>::stream(s, indent + "  ", v.heartbeat_period);
00197   }
00198 };
00199 
00200 
00201 } // namespace message_operations
00202 } // namespace ros
00203 
00204 #endif // BOND_MESSAGE_STATUS_H
00205 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


bond
Author(s): Stuart Glaser
autogenerated on Thu Aug 15 2013 10:10:34