Go to the documentation of this file.00001
00002 #ifndef KOBUKI_COMMS_MESSAGE_WHEELDROPEVENT_H
00003 #define KOBUKI_COMMS_MESSAGE_WHEELDROPEVENT_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 WheelDropEvent_ {
00022 typedef WheelDropEvent_<ContainerAllocator> Type;
00023
00024 WheelDropEvent_()
00025 : state(0)
00026 , wheel(0)
00027 {
00028 }
00029
00030 WheelDropEvent_(const ContainerAllocator& _alloc)
00031 : state(0)
00032 , wheel(0)
00033 {
00034 }
00035
00036 typedef uint8_t _state_type;
00037 uint8_t state;
00038
00039 typedef uint8_t _wheel_type;
00040 uint8_t wheel;
00041
00042 enum { LEFT = 0 };
00043 enum { RIGHT = 1 };
00044 enum { RAISED = 0 };
00045 enum { DROPPED = 1 };
00046
00047 typedef boost::shared_ptr< ::kobuki_comms::WheelDropEvent_<ContainerAllocator> > Ptr;
00048 typedef boost::shared_ptr< ::kobuki_comms::WheelDropEvent_<ContainerAllocator> const> ConstPtr;
00049 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00050 };
00051 typedef ::kobuki_comms::WheelDropEvent_<std::allocator<void> > WheelDropEvent;
00052
00053 typedef boost::shared_ptr< ::kobuki_comms::WheelDropEvent> WheelDropEventPtr;
00054 typedef boost::shared_ptr< ::kobuki_comms::WheelDropEvent const> WheelDropEventConstPtr;
00055
00056
00057 template<typename ContainerAllocator>
00058 std::ostream& operator<<(std::ostream& s, const ::kobuki_comms::WheelDropEvent_<ContainerAllocator> & v)
00059 {
00060 ros::message_operations::Printer< ::kobuki_comms::WheelDropEvent_<ContainerAllocator> >::stream(s, "", v);
00061 return s;}
00062
00063 }
00064
00065 namespace ros
00066 {
00067 namespace message_traits
00068 {
00069 template<class ContainerAllocator> struct IsMessage< ::kobuki_comms::WheelDropEvent_<ContainerAllocator> > : public TrueType {};
00070 template<class ContainerAllocator> struct IsMessage< ::kobuki_comms::WheelDropEvent_<ContainerAllocator> const> : public TrueType {};
00071 template<class ContainerAllocator>
00072 struct MD5Sum< ::kobuki_comms::WheelDropEvent_<ContainerAllocator> > {
00073 static const char* value()
00074 {
00075 return "d5872d35ba1f2183db249e0f0efb87a4";
00076 }
00077
00078 static const char* value(const ::kobuki_comms::WheelDropEvent_<ContainerAllocator> &) { return value(); }
00079 static const uint64_t static_value1 = 0xd5872d35ba1f2183ULL;
00080 static const uint64_t static_value2 = 0xdb249e0f0efb87a4ULL;
00081 };
00082
00083 template<class ContainerAllocator>
00084 struct DataType< ::kobuki_comms::WheelDropEvent_<ContainerAllocator> > {
00085 static const char* value()
00086 {
00087 return "kobuki_comms/WheelDropEvent";
00088 }
00089
00090 static const char* value(const ::kobuki_comms::WheelDropEvent_<ContainerAllocator> &) { return value(); }
00091 };
00092
00093 template<class ContainerAllocator>
00094 struct Definition< ::kobuki_comms::WheelDropEvent_<ContainerAllocator> > {
00095 static const char* value()
00096 {
00097 return "# Provides a wheel drop event\n\
00098 # This message is generated whenever a wheel is dropped (robot fell or was raised) or raised (normal condition).\n\
00099 \n\
00100 uint8 LEFT = 0\n\
00101 uint8 RIGHT = 1\n\
00102 \n\
00103 uint8 RAISED = 0\n\
00104 uint8 DROPPED = 1\n\
00105 \n\
00106 uint8 state\n\
00107 uint8 wheel\n\
00108 \n\
00109 ";
00110 }
00111
00112 static const char* value(const ::kobuki_comms::WheelDropEvent_<ContainerAllocator> &) { return value(); }
00113 };
00114
00115 template<class ContainerAllocator> struct IsFixedSize< ::kobuki_comms::WheelDropEvent_<ContainerAllocator> > : public TrueType {};
00116 }
00117 }
00118
00119 namespace ros
00120 {
00121 namespace serialization
00122 {
00123
00124 template<class ContainerAllocator> struct Serializer< ::kobuki_comms::WheelDropEvent_<ContainerAllocator> >
00125 {
00126 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00127 {
00128 stream.next(m.state);
00129 stream.next(m.wheel);
00130 }
00131
00132 ROS_DECLARE_ALLINONE_SERIALIZER;
00133 };
00134 }
00135 }
00136
00137 namespace ros
00138 {
00139 namespace message_operations
00140 {
00141
00142 template<class ContainerAllocator>
00143 struct Printer< ::kobuki_comms::WheelDropEvent_<ContainerAllocator> >
00144 {
00145 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::kobuki_comms::WheelDropEvent_<ContainerAllocator> & v)
00146 {
00147 s << indent << "state: ";
00148 Printer<uint8_t>::stream(s, indent + " ", v.state);
00149 s << indent << "wheel: ";
00150 Printer<uint8_t>::stream(s, indent + " ", v.wheel);
00151 }
00152 };
00153
00154
00155 }
00156 }
00157
00158 #endif // KOBUKI_COMMS_MESSAGE_WHEELDROPEVENT_H
00159