Go to the documentation of this file.00001
00002 #ifndef REEM_MSGS_MESSAGE_BUMPER_H
00003 #define REEM_MSGS_MESSAGE_BUMPER_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 reem_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct Bumper_ {
00023 typedef Bumper_<ContainerAllocator> Type;
00024
00025 Bumper_()
00026 : header()
00027 , is_pressed(false)
00028 {
00029 }
00030
00031 Bumper_(const ContainerAllocator& _alloc)
00032 : header(_alloc)
00033 , is_pressed(false)
00034 {
00035 }
00036
00037 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00038 ::std_msgs::Header_<ContainerAllocator> header;
00039
00040 typedef uint8_t _is_pressed_type;
00041 uint8_t is_pressed;
00042
00043
00044 typedef boost::shared_ptr< ::reem_msgs::Bumper_<ContainerAllocator> > Ptr;
00045 typedef boost::shared_ptr< ::reem_msgs::Bumper_<ContainerAllocator> const> ConstPtr;
00046 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00047 };
00048 typedef ::reem_msgs::Bumper_<std::allocator<void> > Bumper;
00049
00050 typedef boost::shared_ptr< ::reem_msgs::Bumper> BumperPtr;
00051 typedef boost::shared_ptr< ::reem_msgs::Bumper const> BumperConstPtr;
00052
00053
00054 template<typename ContainerAllocator>
00055 std::ostream& operator<<(std::ostream& s, const ::reem_msgs::Bumper_<ContainerAllocator> & v)
00056 {
00057 ros::message_operations::Printer< ::reem_msgs::Bumper_<ContainerAllocator> >::stream(s, "", v);
00058 return s;}
00059
00060 }
00061
00062 namespace ros
00063 {
00064 namespace message_traits
00065 {
00066 template<class ContainerAllocator> struct IsMessage< ::reem_msgs::Bumper_<ContainerAllocator> > : public TrueType {};
00067 template<class ContainerAllocator> struct IsMessage< ::reem_msgs::Bumper_<ContainerAllocator> const> : public TrueType {};
00068 template<class ContainerAllocator>
00069 struct MD5Sum< ::reem_msgs::Bumper_<ContainerAllocator> > {
00070 static const char* value()
00071 {
00072 return "7feed261fab09e5d0ce6318f9f9ed4b9";
00073 }
00074
00075 static const char* value(const ::reem_msgs::Bumper_<ContainerAllocator> &) { return value(); }
00076 static const uint64_t static_value1 = 0x7feed261fab09e5dULL;
00077 static const uint64_t static_value2 = 0x0ce6318f9f9ed4b9ULL;
00078 };
00079
00080 template<class ContainerAllocator>
00081 struct DataType< ::reem_msgs::Bumper_<ContainerAllocator> > {
00082 static const char* value()
00083 {
00084 return "reem_msgs/Bumper";
00085 }
00086
00087 static const char* value(const ::reem_msgs::Bumper_<ContainerAllocator> &) { return value(); }
00088 };
00089
00090 template<class ContainerAllocator>
00091 struct Definition< ::reem_msgs::Bumper_<ContainerAllocator> > {
00092 static const char* value()
00093 {
00094 return "#ROS header\n\
00095 Header header\n\
00096 \n\
00097 #Whether the bumper is being pressed\n\
00098 bool is_pressed\n\
00099 \n\
00100 ================================================================================\n\
00101 MSG: std_msgs/Header\n\
00102 # Standard metadata for higher-level stamped data types.\n\
00103 # This is generally used to communicate timestamped data \n\
00104 # in a particular coordinate frame.\n\
00105 # \n\
00106 # sequence ID: consecutively increasing ID \n\
00107 uint32 seq\n\
00108 #Two-integer timestamp that is expressed as:\n\
00109 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00110 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00111 # time-handling sugar is provided by the client library\n\
00112 time stamp\n\
00113 #Frame this data is associated with\n\
00114 # 0: no frame\n\
00115 # 1: global frame\n\
00116 string frame_id\n\
00117 \n\
00118 ";
00119 }
00120
00121 static const char* value(const ::reem_msgs::Bumper_<ContainerAllocator> &) { return value(); }
00122 };
00123
00124 template<class ContainerAllocator> struct HasHeader< ::reem_msgs::Bumper_<ContainerAllocator> > : public TrueType {};
00125 template<class ContainerAllocator> struct HasHeader< const ::reem_msgs::Bumper_<ContainerAllocator> > : public TrueType {};
00126 }
00127 }
00128
00129 namespace ros
00130 {
00131 namespace serialization
00132 {
00133
00134 template<class ContainerAllocator> struct Serializer< ::reem_msgs::Bumper_<ContainerAllocator> >
00135 {
00136 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00137 {
00138 stream.next(m.header);
00139 stream.next(m.is_pressed);
00140 }
00141
00142 ROS_DECLARE_ALLINONE_SERIALIZER;
00143 };
00144 }
00145 }
00146
00147 namespace ros
00148 {
00149 namespace message_operations
00150 {
00151
00152 template<class ContainerAllocator>
00153 struct Printer< ::reem_msgs::Bumper_<ContainerAllocator> >
00154 {
00155 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::reem_msgs::Bumper_<ContainerAllocator> & v)
00156 {
00157 s << indent << "header: ";
00158 s << std::endl;
00159 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00160 s << indent << "is_pressed: ";
00161 Printer<uint8_t>::stream(s, indent + " ", v.is_pressed);
00162 }
00163 };
00164
00165
00166 }
00167 }
00168
00169 #endif // REEM_MSGS_MESSAGE_BUMPER_H
00170