RobotStateEvent.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-kobuki/doc_stacks/2012-11-15_17-55-48.690038/kobuki/kobuki_comms/msg/RobotStateEvent.msg */
00002 #ifndef KOBUKI_COMMS_MESSAGE_ROBOTSTATEEVENT_H
00003 #define KOBUKI_COMMS_MESSAGE_ROBOTSTATEEVENT_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 kobuki_comms
00019 {
00020 template <class ContainerAllocator>
00021 struct RobotStateEvent_ {
00022   typedef RobotStateEvent_<ContainerAllocator> Type;
00023 
00024   RobotStateEvent_()
00025   : state(0)
00026   {
00027   }
00028 
00029   RobotStateEvent_(const ContainerAllocator& _alloc)
00030   : state(0)
00031   {
00032   }
00033 
00034   typedef uint8_t _state_type;
00035   uint8_t state;
00036 
00037   enum { ONLINE = 1 };
00038   enum { OFFLINE = 0 };
00039 
00040   typedef boost::shared_ptr< ::kobuki_comms::RobotStateEvent_<ContainerAllocator> > Ptr;
00041   typedef boost::shared_ptr< ::kobuki_comms::RobotStateEvent_<ContainerAllocator>  const> ConstPtr;
00042   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00043 }; // struct RobotStateEvent
00044 typedef  ::kobuki_comms::RobotStateEvent_<std::allocator<void> > RobotStateEvent;
00045 
00046 typedef boost::shared_ptr< ::kobuki_comms::RobotStateEvent> RobotStateEventPtr;
00047 typedef boost::shared_ptr< ::kobuki_comms::RobotStateEvent const> RobotStateEventConstPtr;
00048 
00049 
00050 template<typename ContainerAllocator>
00051 std::ostream& operator<<(std::ostream& s, const  ::kobuki_comms::RobotStateEvent_<ContainerAllocator> & v)
00052 {
00053   ros::message_operations::Printer< ::kobuki_comms::RobotStateEvent_<ContainerAllocator> >::stream(s, "", v);
00054   return s;}
00055 
00056 } // namespace kobuki_comms
00057 
00058 namespace ros
00059 {
00060 namespace message_traits
00061 {
00062 template<class ContainerAllocator> struct IsMessage< ::kobuki_comms::RobotStateEvent_<ContainerAllocator> > : public TrueType {};
00063 template<class ContainerAllocator> struct IsMessage< ::kobuki_comms::RobotStateEvent_<ContainerAllocator>  const> : public TrueType {};
00064 template<class ContainerAllocator>
00065 struct MD5Sum< ::kobuki_comms::RobotStateEvent_<ContainerAllocator> > {
00066   static const char* value() 
00067   {
00068     return "c6eccd4cb1f95df95635b56d6226ea32";
00069   }
00070 
00071   static const char* value(const  ::kobuki_comms::RobotStateEvent_<ContainerAllocator> &) { return value(); } 
00072   static const uint64_t static_value1 = 0xc6eccd4cb1f95df9ULL;
00073   static const uint64_t static_value2 = 0x5635b56d6226ea32ULL;
00074 };
00075 
00076 template<class ContainerAllocator>
00077 struct DataType< ::kobuki_comms::RobotStateEvent_<ContainerAllocator> > {
00078   static const char* value() 
00079   {
00080     return "kobuki_comms/RobotStateEvent";
00081   }
00082 
00083   static const char* value(const  ::kobuki_comms::RobotStateEvent_<ContainerAllocator> &) { return value(); } 
00084 };
00085 
00086 template<class ContainerAllocator>
00087 struct Definition< ::kobuki_comms::RobotStateEvent_<ContainerAllocator> > {
00088   static const char* value() 
00089   {
00090     return "# Provides a robot state event\n\
00091 # This message is generated whenever the robot gets online/offline\n\
00092 \n\
00093 uint8 ONLINE  = 1\n\
00094 uint8 OFFLINE = 0\n\
00095 \n\
00096 uint8 state\n\
00097 \n\
00098 ";
00099   }
00100 
00101   static const char* value(const  ::kobuki_comms::RobotStateEvent_<ContainerAllocator> &) { return value(); } 
00102 };
00103 
00104 template<class ContainerAllocator> struct IsFixedSize< ::kobuki_comms::RobotStateEvent_<ContainerAllocator> > : public TrueType {};
00105 } // namespace message_traits
00106 } // namespace ros
00107 
00108 namespace ros
00109 {
00110 namespace serialization
00111 {
00112 
00113 template<class ContainerAllocator> struct Serializer< ::kobuki_comms::RobotStateEvent_<ContainerAllocator> >
00114 {
00115   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00116   {
00117     stream.next(m.state);
00118   }
00119 
00120   ROS_DECLARE_ALLINONE_SERIALIZER;
00121 }; // struct RobotStateEvent_
00122 } // namespace serialization
00123 } // namespace ros
00124 
00125 namespace ros
00126 {
00127 namespace message_operations
00128 {
00129 
00130 template<class ContainerAllocator>
00131 struct Printer< ::kobuki_comms::RobotStateEvent_<ContainerAllocator> >
00132 {
00133   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::kobuki_comms::RobotStateEvent_<ContainerAllocator> & v) 
00134   {
00135     s << indent << "state: ";
00136     Printer<uint8_t>::stream(s, indent + "  ", v.state);
00137   }
00138 };
00139 
00140 
00141 } // namespace message_operations
00142 } // namespace ros
00143 
00144 #endif // KOBUKI_COMMS_MESSAGE_ROBOTSTATEEVENT_H
00145 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends


kobuki_comms
Author(s): Daniel Stonier, 주영훈
autogenerated on Thu Nov 15 2012 18:05:16