Go to the documentation of this file.00001
00002 #ifndef NASA_R2_COMMON_MSGS_MESSAGE_JOINTCONTROLMODE_H
00003 #define NASA_R2_COMMON_MSGS_MESSAGE_JOINTCONTROLMODE_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 nasa_r2_common_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct JointControlMode_ {
00022 typedef JointControlMode_<ContainerAllocator> Type;
00023
00024 JointControlMode_()
00025 : state(0)
00026 {
00027 }
00028
00029 JointControlMode_(const ContainerAllocator& _alloc)
00030 : state(0)
00031 {
00032 }
00033
00034 typedef uint8_t _state_type;
00035 uint8_t state;
00036
00037 enum { IGNORE = 0 };
00038 enum { INVALID = 1 };
00039 enum { BOOTLOADER = 2 };
00040 enum { FAULTED = 3 };
00041 enum { SAFE = 4 };
00042 enum { OFF = 5 };
00043 enum { PARK = 6 };
00044 enum { NEUTRAL = 7 };
00045 enum { DRIVE = 8 };
00046
00047 typedef boost::shared_ptr< ::nasa_r2_common_msgs::JointControlMode_<ContainerAllocator> > Ptr;
00048 typedef boost::shared_ptr< ::nasa_r2_common_msgs::JointControlMode_<ContainerAllocator> const> ConstPtr;
00049 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00050 };
00051 typedef ::nasa_r2_common_msgs::JointControlMode_<std::allocator<void> > JointControlMode;
00052
00053 typedef boost::shared_ptr< ::nasa_r2_common_msgs::JointControlMode> JointControlModePtr;
00054 typedef boost::shared_ptr< ::nasa_r2_common_msgs::JointControlMode const> JointControlModeConstPtr;
00055
00056
00057 template<typename ContainerAllocator>
00058 std::ostream& operator<<(std::ostream& s, const ::nasa_r2_common_msgs::JointControlMode_<ContainerAllocator> & v)
00059 {
00060 ros::message_operations::Printer< ::nasa_r2_common_msgs::JointControlMode_<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< ::nasa_r2_common_msgs::JointControlMode_<ContainerAllocator> > : public TrueType {};
00070 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::JointControlMode_<ContainerAllocator> const> : public TrueType {};
00071 template<class ContainerAllocator>
00072 struct MD5Sum< ::nasa_r2_common_msgs::JointControlMode_<ContainerAllocator> > {
00073 static const char* value()
00074 {
00075 return "ed18104f2125248e91775725024700fe";
00076 }
00077
00078 static const char* value(const ::nasa_r2_common_msgs::JointControlMode_<ContainerAllocator> &) { return value(); }
00079 static const uint64_t static_value1 = 0xed18104f2125248eULL;
00080 static const uint64_t static_value2 = 0x91775725024700feULL;
00081 };
00082
00083 template<class ContainerAllocator>
00084 struct DataType< ::nasa_r2_common_msgs::JointControlMode_<ContainerAllocator> > {
00085 static const char* value()
00086 {
00087 return "nasa_r2_common_msgs/JointControlMode";
00088 }
00089
00090 static const char* value(const ::nasa_r2_common_msgs::JointControlMode_<ContainerAllocator> &) { return value(); }
00091 };
00092
00093 template<class ContainerAllocator>
00094 struct Definition< ::nasa_r2_common_msgs::JointControlMode_<ContainerAllocator> > {
00095 static const char* value()
00096 {
00097 return "uint8 state\n\
00098 uint8 IGNORE = 0\n\
00099 uint8 INVALID = 1\n\
00100 uint8 BOOTLOADER = 2\n\
00101 uint8 FAULTED = 3\n\
00102 uint8 SAFE = 4\n\
00103 uint8 OFF = 5\n\
00104 uint8 PARK = 6\n\
00105 uint8 NEUTRAL = 7\n\
00106 uint8 DRIVE = 8\n\
00107 \n\
00108 ";
00109 }
00110
00111 static const char* value(const ::nasa_r2_common_msgs::JointControlMode_<ContainerAllocator> &) { return value(); }
00112 };
00113
00114 template<class ContainerAllocator> struct IsFixedSize< ::nasa_r2_common_msgs::JointControlMode_<ContainerAllocator> > : public TrueType {};
00115 }
00116 }
00117
00118 namespace ros
00119 {
00120 namespace serialization
00121 {
00122
00123 template<class ContainerAllocator> struct Serializer< ::nasa_r2_common_msgs::JointControlMode_<ContainerAllocator> >
00124 {
00125 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00126 {
00127 stream.next(m.state);
00128 }
00129
00130 ROS_DECLARE_ALLINONE_SERIALIZER;
00131 };
00132 }
00133 }
00134
00135 namespace ros
00136 {
00137 namespace message_operations
00138 {
00139
00140 template<class ContainerAllocator>
00141 struct Printer< ::nasa_r2_common_msgs::JointControlMode_<ContainerAllocator> >
00142 {
00143 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nasa_r2_common_msgs::JointControlMode_<ContainerAllocator> & v)
00144 {
00145 s << indent << "state: ";
00146 Printer<uint8_t>::stream(s, indent + " ", v.state);
00147 }
00148 };
00149
00150
00151 }
00152 }
00153
00154 #endif // NASA_R2_COMMON_MSGS_MESSAGE_JOINTCONTROLMODE_H
00155