ScitosG5Bumper.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-scitos_metralabs/doc_stacks/2014-10-06_07-26-25.613438/scitos_metralabs/metralabs_msgs/msg/ScitosG5Bumper.msg */
00002 #ifndef METRALABS_MSGS_MESSAGE_SCITOSG5BUMPER_H
00003 #define METRALABS_MSGS_MESSAGE_SCITOSG5BUMPER_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 metralabs_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct ScitosG5Bumper_ {
00023   typedef ScitosG5Bumper_<ContainerAllocator> Type;
00024 
00025   ScitosG5Bumper_()
00026   : header()
00027   , bumper_pressed(false)
00028   , motor_stop(false)
00029   {
00030   }
00031 
00032   ScitosG5Bumper_(const ContainerAllocator& _alloc)
00033   : header(_alloc)
00034   , bumper_pressed(false)
00035   , motor_stop(false)
00036   {
00037   }
00038 
00039   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00040    ::std_msgs::Header_<ContainerAllocator>  header;
00041 
00042   typedef uint8_t _bumper_pressed_type;
00043   uint8_t bumper_pressed;
00044 
00045   typedef uint8_t _motor_stop_type;
00046   uint8_t motor_stop;
00047 
00048 
00049   typedef boost::shared_ptr< ::metralabs_msgs::ScitosG5Bumper_<ContainerAllocator> > Ptr;
00050   typedef boost::shared_ptr< ::metralabs_msgs::ScitosG5Bumper_<ContainerAllocator>  const> ConstPtr;
00051   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00052 }; // struct ScitosG5Bumper
00053 typedef  ::metralabs_msgs::ScitosG5Bumper_<std::allocator<void> > ScitosG5Bumper;
00054 
00055 typedef boost::shared_ptr< ::metralabs_msgs::ScitosG5Bumper> ScitosG5BumperPtr;
00056 typedef boost::shared_ptr< ::metralabs_msgs::ScitosG5Bumper const> ScitosG5BumperConstPtr;
00057 
00058 
00059 template<typename ContainerAllocator>
00060 std::ostream& operator<<(std::ostream& s, const  ::metralabs_msgs::ScitosG5Bumper_<ContainerAllocator> & v)
00061 {
00062   ros::message_operations::Printer< ::metralabs_msgs::ScitosG5Bumper_<ContainerAllocator> >::stream(s, "", v);
00063   return s;}
00064 
00065 } // namespace metralabs_msgs
00066 
00067 namespace ros
00068 {
00069 namespace message_traits
00070 {
00071 template<class ContainerAllocator> struct IsMessage< ::metralabs_msgs::ScitosG5Bumper_<ContainerAllocator> > : public TrueType {};
00072 template<class ContainerAllocator> struct IsMessage< ::metralabs_msgs::ScitosG5Bumper_<ContainerAllocator>  const> : public TrueType {};
00073 template<class ContainerAllocator>
00074 struct MD5Sum< ::metralabs_msgs::ScitosG5Bumper_<ContainerAllocator> > {
00075   static const char* value() 
00076   {
00077     return "19ad54f53a9df465ca57478097e5f993";
00078   }
00079 
00080   static const char* value(const  ::metralabs_msgs::ScitosG5Bumper_<ContainerAllocator> &) { return value(); } 
00081   static const uint64_t static_value1 = 0x19ad54f53a9df465ULL;
00082   static const uint64_t static_value2 = 0xca57478097e5f993ULL;
00083 };
00084 
00085 template<class ContainerAllocator>
00086 struct DataType< ::metralabs_msgs::ScitosG5Bumper_<ContainerAllocator> > {
00087   static const char* value() 
00088   {
00089     return "metralabs_msgs/ScitosG5Bumper";
00090   }
00091 
00092   static const char* value(const  ::metralabs_msgs::ScitosG5Bumper_<ContainerAllocator> &) { return value(); } 
00093 };
00094 
00095 template<class ContainerAllocator>
00096 struct Definition< ::metralabs_msgs::ScitosG5Bumper_<ContainerAllocator> > {
00097   static const char* value() 
00098   {
00099     return "# Message used to publish the bumper state of Scitos G5 robots.\n\
00100 Header header\n\
00101 \n\
00102 # Whether the bumper is currently pressed.\n\
00103 bool bumper_pressed\n\
00104 \n\
00105 # Whether internal motor_stop is active and disables the robots drive motors.\n\
00106 # The motor_stop is activated on a bumper hit and can be set manually.\n\
00107 # The motor_stop can be deactivated via topic or set via service.\n\
00108 bool motor_stop\n\
00109 \n\
00110 ================================================================================\n\
00111 MSG: std_msgs/Header\n\
00112 # Standard metadata for higher-level stamped data types.\n\
00113 # This is generally used to communicate timestamped data \n\
00114 # in a particular coordinate frame.\n\
00115 # \n\
00116 # sequence ID: consecutively increasing ID \n\
00117 uint32 seq\n\
00118 #Two-integer timestamp that is expressed as:\n\
00119 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00120 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00121 # time-handling sugar is provided by the client library\n\
00122 time stamp\n\
00123 #Frame this data is associated with\n\
00124 # 0: no frame\n\
00125 # 1: global frame\n\
00126 string frame_id\n\
00127 \n\
00128 ";
00129   }
00130 
00131   static const char* value(const  ::metralabs_msgs::ScitosG5Bumper_<ContainerAllocator> &) { return value(); } 
00132 };
00133 
00134 template<class ContainerAllocator> struct HasHeader< ::metralabs_msgs::ScitosG5Bumper_<ContainerAllocator> > : public TrueType {};
00135 template<class ContainerAllocator> struct HasHeader< const ::metralabs_msgs::ScitosG5Bumper_<ContainerAllocator> > : public TrueType {};
00136 } // namespace message_traits
00137 } // namespace ros
00138 
00139 namespace ros
00140 {
00141 namespace serialization
00142 {
00143 
00144 template<class ContainerAllocator> struct Serializer< ::metralabs_msgs::ScitosG5Bumper_<ContainerAllocator> >
00145 {
00146   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00147   {
00148     stream.next(m.header);
00149     stream.next(m.bumper_pressed);
00150     stream.next(m.motor_stop);
00151   }
00152 
00153   ROS_DECLARE_ALLINONE_SERIALIZER;
00154 }; // struct ScitosG5Bumper_
00155 } // namespace serialization
00156 } // namespace ros
00157 
00158 namespace ros
00159 {
00160 namespace message_operations
00161 {
00162 
00163 template<class ContainerAllocator>
00164 struct Printer< ::metralabs_msgs::ScitosG5Bumper_<ContainerAllocator> >
00165 {
00166   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::metralabs_msgs::ScitosG5Bumper_<ContainerAllocator> & v) 
00167   {
00168     s << indent << "header: ";
00169 s << std::endl;
00170     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00171     s << indent << "bumper_pressed: ";
00172     Printer<uint8_t>::stream(s, indent + "  ", v.bumper_pressed);
00173     s << indent << "motor_stop: ";
00174     Printer<uint8_t>::stream(s, indent + "  ", v.motor_stop);
00175   }
00176 };
00177 
00178 
00179 } // namespace message_operations
00180 } // namespace ros
00181 
00182 #endif // METRALABS_MSGS_MESSAGE_SCITOSG5BUMPER_H
00183 


metralabs_msgs
Author(s): Felix Kolbe
autogenerated on Mon Oct 6 2014 07:27:55