Bumper.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-alufr-humanoid_stacks/doc_stacks/2013-10-15_10-01-44.393682/nao_robot/nao_msgs/msg/Bumper.msg */
00002 #ifndef NAO_MSGS_MESSAGE_BUMPER_H
00003 #define NAO_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 
00018 namespace nao_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct Bumper_ {
00022   typedef Bumper_<ContainerAllocator> Type;
00023 
00024   Bumper_()
00025   : bumper(0)
00026   , state(0)
00027   {
00028   }
00029 
00030   Bumper_(const ContainerAllocator& _alloc)
00031   : bumper(0)
00032   , state(0)
00033   {
00034   }
00035 
00036   typedef uint8_t _bumper_type;
00037   uint8_t bumper;
00038 
00039   typedef uint8_t _state_type;
00040   uint8_t state;
00041 
00042   enum { right = 0 };
00043   enum { left = 1 };
00044   enum { stateReleased = 0 };
00045   enum { statePressed = 1 };
00046 
00047   typedef boost::shared_ptr< ::nao_msgs::Bumper_<ContainerAllocator> > Ptr;
00048   typedef boost::shared_ptr< ::nao_msgs::Bumper_<ContainerAllocator>  const> ConstPtr;
00049   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00050 }; // struct Bumper
00051 typedef  ::nao_msgs::Bumper_<std::allocator<void> > Bumper;
00052 
00053 typedef boost::shared_ptr< ::nao_msgs::Bumper> BumperPtr;
00054 typedef boost::shared_ptr< ::nao_msgs::Bumper const> BumperConstPtr;
00055 
00056 
00057 template<typename ContainerAllocator>
00058 std::ostream& operator<<(std::ostream& s, const  ::nao_msgs::Bumper_<ContainerAllocator> & v)
00059 {
00060   ros::message_operations::Printer< ::nao_msgs::Bumper_<ContainerAllocator> >::stream(s, "", v);
00061   return s;}
00062 
00063 } // namespace nao_msgs
00064 
00065 namespace ros
00066 {
00067 namespace message_traits
00068 {
00069 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::Bumper_<ContainerAllocator> > : public TrueType {};
00070 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::Bumper_<ContainerAllocator>  const> : public TrueType {};
00071 template<class ContainerAllocator>
00072 struct MD5Sum< ::nao_msgs::Bumper_<ContainerAllocator> > {
00073   static const char* value() 
00074   {
00075     return "4d423b2a165337e812d1b5a1cbab6b8d";
00076   }
00077 
00078   static const char* value(const  ::nao_msgs::Bumper_<ContainerAllocator> &) { return value(); } 
00079   static const uint64_t static_value1 = 0x4d423b2a165337e8ULL;
00080   static const uint64_t static_value2 = 0x12d1b5a1cbab6b8dULL;
00081 };
00082 
00083 template<class ContainerAllocator>
00084 struct DataType< ::nao_msgs::Bumper_<ContainerAllocator> > {
00085   static const char* value() 
00086   {
00087     return "nao_msgs/Bumper";
00088   }
00089 
00090   static const char* value(const  ::nao_msgs::Bumper_<ContainerAllocator> &) { return value(); } 
00091 };
00092 
00093 template<class ContainerAllocator>
00094 struct Definition< ::nao_msgs::Bumper_<ContainerAllocator> > {
00095   static const char* value() 
00096   {
00097     return "# A message for Nao's bumpers on the feet\n\
00098 \n\
00099 uint8 bumper            # which bumper (left or right)\n\
00100 uint8 state             # state of the bumper (pressed or released)\n\
00101 \n\
00102 uint8 right=0\n\
00103 uint8 left=1\n\
00104 \n\
00105 uint8 stateReleased=0\n\
00106 uint8 statePressed=1\n\
00107 \n\
00108 ";
00109   }
00110 
00111   static const char* value(const  ::nao_msgs::Bumper_<ContainerAllocator> &) { return value(); } 
00112 };
00113 
00114 template<class ContainerAllocator> struct IsFixedSize< ::nao_msgs::Bumper_<ContainerAllocator> > : public TrueType {};
00115 } // namespace message_traits
00116 } // namespace ros
00117 
00118 namespace ros
00119 {
00120 namespace serialization
00121 {
00122 
00123 template<class ContainerAllocator> struct Serializer< ::nao_msgs::Bumper_<ContainerAllocator> >
00124 {
00125   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00126   {
00127     stream.next(m.bumper);
00128     stream.next(m.state);
00129   }
00130 
00131   ROS_DECLARE_ALLINONE_SERIALIZER;
00132 }; // struct Bumper_
00133 } // namespace serialization
00134 } // namespace ros
00135 
00136 namespace ros
00137 {
00138 namespace message_operations
00139 {
00140 
00141 template<class ContainerAllocator>
00142 struct Printer< ::nao_msgs::Bumper_<ContainerAllocator> >
00143 {
00144   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::nao_msgs::Bumper_<ContainerAllocator> & v) 
00145   {
00146     s << indent << "bumper: ";
00147     Printer<uint8_t>::stream(s, indent + "  ", v.bumper);
00148     s << indent << "state: ";
00149     Printer<uint8_t>::stream(s, indent + "  ", v.state);
00150   }
00151 };
00152 
00153 
00154 } // namespace message_operations
00155 } // namespace ros
00156 
00157 #endif // NAO_MSGS_MESSAGE_BUMPER_H
00158 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


nao_msgs
Author(s): Armin Hornung, Stefan Osswald, Daniel Maier
autogenerated on Tue Oct 15 2013 10:05:22