Go to the documentation of this file.00001
00002 #ifndef INDUSTRIAL_MSGS_MESSAGE_ROBOTMODE_H
00003 #define INDUSTRIAL_MSGS_MESSAGE_ROBOTMODE_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 industrial_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct RobotMode_ {
00022 typedef RobotMode_<ContainerAllocator> Type;
00023
00024 RobotMode_()
00025 : val(0)
00026 {
00027 }
00028
00029 RobotMode_(const ContainerAllocator& _alloc)
00030 : val(0)
00031 {
00032 }
00033
00034 typedef int8_t _val_type;
00035 int8_t val;
00036
00037 enum { UNKNOWN = -1 };
00038 enum { MANUAL = 1 };
00039 enum { AUTO = 2 };
00040
00041 typedef boost::shared_ptr< ::industrial_msgs::RobotMode_<ContainerAllocator> > Ptr;
00042 typedef boost::shared_ptr< ::industrial_msgs::RobotMode_<ContainerAllocator> const> ConstPtr;
00043 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00044 };
00045 typedef ::industrial_msgs::RobotMode_<std::allocator<void> > RobotMode;
00046
00047 typedef boost::shared_ptr< ::industrial_msgs::RobotMode> RobotModePtr;
00048 typedef boost::shared_ptr< ::industrial_msgs::RobotMode const> RobotModeConstPtr;
00049
00050
00051 template<typename ContainerAllocator>
00052 std::ostream& operator<<(std::ostream& s, const ::industrial_msgs::RobotMode_<ContainerAllocator> & v)
00053 {
00054 ros::message_operations::Printer< ::industrial_msgs::RobotMode_<ContainerAllocator> >::stream(s, "", v);
00055 return s;}
00056
00057 }
00058
00059 namespace ros
00060 {
00061 namespace message_traits
00062 {
00063 template<class ContainerAllocator> struct IsMessage< ::industrial_msgs::RobotMode_<ContainerAllocator> > : public TrueType {};
00064 template<class ContainerAllocator> struct IsMessage< ::industrial_msgs::RobotMode_<ContainerAllocator> const> : public TrueType {};
00065 template<class ContainerAllocator>
00066 struct MD5Sum< ::industrial_msgs::RobotMode_<ContainerAllocator> > {
00067 static const char* value()
00068 {
00069 return "24ac279e988b6b3db836e437e6ed1ba0";
00070 }
00071
00072 static const char* value(const ::industrial_msgs::RobotMode_<ContainerAllocator> &) { return value(); }
00073 static const uint64_t static_value1 = 0x24ac279e988b6b3dULL;
00074 static const uint64_t static_value2 = 0xb836e437e6ed1ba0ULL;
00075 };
00076
00077 template<class ContainerAllocator>
00078 struct DataType< ::industrial_msgs::RobotMode_<ContainerAllocator> > {
00079 static const char* value()
00080 {
00081 return "industrial_msgs/RobotMode";
00082 }
00083
00084 static const char* value(const ::industrial_msgs::RobotMode_<ContainerAllocator> &) { return value(); }
00085 };
00086
00087 template<class ContainerAllocator>
00088 struct Definition< ::industrial_msgs::RobotMode_<ContainerAllocator> > {
00089 static const char* value()
00090 {
00091 return "# The Robot mode message encapsulates the mode/teach state of the robot\n\
00092 # Typically this is controlled by the pendant key switch, but not always\n\
00093 \n\
00094 int8 val\n\
00095 \n\
00096 # enumerated values\n\
00097 int8 UNKNOWN=-1 # Unknown or unavailable \n\
00098 int8 MANUAL=1 # Teach OR manual mode\n\
00099 int8 AUTO=2 # Automatic mode\n\
00100 \n\
00101 \n\
00102 ";
00103 }
00104
00105 static const char* value(const ::industrial_msgs::RobotMode_<ContainerAllocator> &) { return value(); }
00106 };
00107
00108 template<class ContainerAllocator> struct IsFixedSize< ::industrial_msgs::RobotMode_<ContainerAllocator> > : public TrueType {};
00109 }
00110 }
00111
00112 namespace ros
00113 {
00114 namespace serialization
00115 {
00116
00117 template<class ContainerAllocator> struct Serializer< ::industrial_msgs::RobotMode_<ContainerAllocator> >
00118 {
00119 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00120 {
00121 stream.next(m.val);
00122 }
00123
00124 ROS_DECLARE_ALLINONE_SERIALIZER;
00125 };
00126 }
00127 }
00128
00129 namespace ros
00130 {
00131 namespace message_operations
00132 {
00133
00134 template<class ContainerAllocator>
00135 struct Printer< ::industrial_msgs::RobotMode_<ContainerAllocator> >
00136 {
00137 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::industrial_msgs::RobotMode_<ContainerAllocator> & v)
00138 {
00139 s << indent << "val: ";
00140 Printer<int8_t>::stream(s, indent + " ", v.val);
00141 }
00142 };
00143
00144
00145 }
00146 }
00147
00148 #endif // INDUSTRIAL_MSGS_MESSAGE_ROBOTMODE_H
00149