Go to the documentation of this file.00001
00002 #ifndef NASA_R2_COMMON_MSGS_MESSAGE_JOINTCONTROLCOMMANDMODE_H
00003 #define NASA_R2_COMMON_MSGS_MESSAGE_JOINTCONTROLCOMMANDMODE_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 JointControlCommandMode_ {
00022 typedef JointControlCommandMode_<ContainerAllocator> Type;
00023
00024 JointControlCommandMode_()
00025 : state(0)
00026 {
00027 }
00028
00029 JointControlCommandMode_(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 { MOTCOM = 2 };
00040 enum { MULTILOOPSTEP = 3 };
00041 enum { MULTILOOPSMOOTH = 4 };
00042 enum { ACTUATOR = 5 };
00043 enum { STALLMODE = 6 };
00044
00045 typedef boost::shared_ptr< ::nasa_r2_common_msgs::JointControlCommandMode_<ContainerAllocator> > Ptr;
00046 typedef boost::shared_ptr< ::nasa_r2_common_msgs::JointControlCommandMode_<ContainerAllocator> const> ConstPtr;
00047 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 };
00049 typedef ::nasa_r2_common_msgs::JointControlCommandMode_<std::allocator<void> > JointControlCommandMode;
00050
00051 typedef boost::shared_ptr< ::nasa_r2_common_msgs::JointControlCommandMode> JointControlCommandModePtr;
00052 typedef boost::shared_ptr< ::nasa_r2_common_msgs::JointControlCommandMode const> JointControlCommandModeConstPtr;
00053
00054
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const ::nasa_r2_common_msgs::JointControlCommandMode_<ContainerAllocator> & v)
00057 {
00058 ros::message_operations::Printer< ::nasa_r2_common_msgs::JointControlCommandMode_<ContainerAllocator> >::stream(s, "", v);
00059 return s;}
00060
00061 }
00062
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::JointControlCommandMode_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::JointControlCommandMode_<ContainerAllocator> const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::nasa_r2_common_msgs::JointControlCommandMode_<ContainerAllocator> > {
00071 static const char* value()
00072 {
00073 return "f9c51a2c2167cabb38ab513659b6ab0a";
00074 }
00075
00076 static const char* value(const ::nasa_r2_common_msgs::JointControlCommandMode_<ContainerAllocator> &) { return value(); }
00077 static const uint64_t static_value1 = 0xf9c51a2c2167cabbULL;
00078 static const uint64_t static_value2 = 0x38ab513659b6ab0aULL;
00079 };
00080
00081 template<class ContainerAllocator>
00082 struct DataType< ::nasa_r2_common_msgs::JointControlCommandMode_<ContainerAllocator> > {
00083 static const char* value()
00084 {
00085 return "nasa_r2_common_msgs/JointControlCommandMode";
00086 }
00087
00088 static const char* value(const ::nasa_r2_common_msgs::JointControlCommandMode_<ContainerAllocator> &) { return value(); }
00089 };
00090
00091 template<class ContainerAllocator>
00092 struct Definition< ::nasa_r2_common_msgs::JointControlCommandMode_<ContainerAllocator> > {
00093 static const char* value()
00094 {
00095 return "uint8 state\n\
00096 uint8 IGNORE = 0\n\
00097 uint8 INVALID = 1\n\
00098 uint8 MOTCOM = 2\n\
00099 uint8 MULTILOOPSTEP = 3\n\
00100 uint8 MULTILOOPSMOOTH = 4\n\
00101 uint8 ACTUATOR = 5\n\
00102 uint8 STALLMODE = 6\n\
00103 \n\
00104 ";
00105 }
00106
00107 static const char* value(const ::nasa_r2_common_msgs::JointControlCommandMode_<ContainerAllocator> &) { return value(); }
00108 };
00109
00110 template<class ContainerAllocator> struct IsFixedSize< ::nasa_r2_common_msgs::JointControlCommandMode_<ContainerAllocator> > : public TrueType {};
00111 }
00112 }
00113
00114 namespace ros
00115 {
00116 namespace serialization
00117 {
00118
00119 template<class ContainerAllocator> struct Serializer< ::nasa_r2_common_msgs::JointControlCommandMode_<ContainerAllocator> >
00120 {
00121 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00122 {
00123 stream.next(m.state);
00124 }
00125
00126 ROS_DECLARE_ALLINONE_SERIALIZER;
00127 };
00128 }
00129 }
00130
00131 namespace ros
00132 {
00133 namespace message_operations
00134 {
00135
00136 template<class ContainerAllocator>
00137 struct Printer< ::nasa_r2_common_msgs::JointControlCommandMode_<ContainerAllocator> >
00138 {
00139 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nasa_r2_common_msgs::JointControlCommandMode_<ContainerAllocator> & v)
00140 {
00141 s << indent << "state: ";
00142 Printer<uint8_t>::stream(s, indent + " ", v.state);
00143 }
00144 };
00145
00146
00147 }
00148 }
00149
00150 #endif // NASA_R2_COMMON_MSGS_MESSAGE_JOINTCONTROLCOMMANDMODE_H
00151