Go to the documentation of this file.00001
00002 #ifndef NASA_R2_COMMON_MSGS_MESSAGE_JOINTCONTROLDATA_H
00003 #define NASA_R2_COMMON_MSGS_MESSAGE_JOINTCONTROLDATA_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 "nasa_r2_common_msgs/JointControlMode.h"
00018 #include "nasa_r2_common_msgs/JointControlCommandMode.h"
00019 #include "nasa_r2_common_msgs/JointControlCalibrationMode.h"
00020 #include "nasa_r2_common_msgs/JointControlClearFaultMode.h"
00021 #include "nasa_r2_common_msgs/JointControlCoeffState.h"
00022
00023 namespace nasa_r2_common_msgs
00024 {
00025 template <class ContainerAllocator>
00026 struct JointControlData_ {
00027 typedef JointControlData_<ContainerAllocator> Type;
00028
00029 JointControlData_()
00030 : controlMode()
00031 , commandMode()
00032 , calibrationMode()
00033 , clearFaultMode()
00034 , coeffState()
00035 {
00036 }
00037
00038 JointControlData_(const ContainerAllocator& _alloc)
00039 : controlMode(_alloc)
00040 , commandMode(_alloc)
00041 , calibrationMode(_alloc)
00042 , clearFaultMode(_alloc)
00043 , coeffState(_alloc)
00044 {
00045 }
00046
00047 typedef ::nasa_r2_common_msgs::JointControlMode_<ContainerAllocator> _controlMode_type;
00048 ::nasa_r2_common_msgs::JointControlMode_<ContainerAllocator> controlMode;
00049
00050 typedef ::nasa_r2_common_msgs::JointControlCommandMode_<ContainerAllocator> _commandMode_type;
00051 ::nasa_r2_common_msgs::JointControlCommandMode_<ContainerAllocator> commandMode;
00052
00053 typedef ::nasa_r2_common_msgs::JointControlCalibrationMode_<ContainerAllocator> _calibrationMode_type;
00054 ::nasa_r2_common_msgs::JointControlCalibrationMode_<ContainerAllocator> calibrationMode;
00055
00056 typedef ::nasa_r2_common_msgs::JointControlClearFaultMode_<ContainerAllocator> _clearFaultMode_type;
00057 ::nasa_r2_common_msgs::JointControlClearFaultMode_<ContainerAllocator> clearFaultMode;
00058
00059 typedef ::nasa_r2_common_msgs::JointControlCoeffState_<ContainerAllocator> _coeffState_type;
00060 ::nasa_r2_common_msgs::JointControlCoeffState_<ContainerAllocator> coeffState;
00061
00062
00063 typedef boost::shared_ptr< ::nasa_r2_common_msgs::JointControlData_<ContainerAllocator> > Ptr;
00064 typedef boost::shared_ptr< ::nasa_r2_common_msgs::JointControlData_<ContainerAllocator> const> ConstPtr;
00065 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00066 };
00067 typedef ::nasa_r2_common_msgs::JointControlData_<std::allocator<void> > JointControlData;
00068
00069 typedef boost::shared_ptr< ::nasa_r2_common_msgs::JointControlData> JointControlDataPtr;
00070 typedef boost::shared_ptr< ::nasa_r2_common_msgs::JointControlData const> JointControlDataConstPtr;
00071
00072
00073 template<typename ContainerAllocator>
00074 std::ostream& operator<<(std::ostream& s, const ::nasa_r2_common_msgs::JointControlData_<ContainerAllocator> & v)
00075 {
00076 ros::message_operations::Printer< ::nasa_r2_common_msgs::JointControlData_<ContainerAllocator> >::stream(s, "", v);
00077 return s;}
00078
00079 }
00080
00081 namespace ros
00082 {
00083 namespace message_traits
00084 {
00085 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::JointControlData_<ContainerAllocator> > : public TrueType {};
00086 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::JointControlData_<ContainerAllocator> const> : public TrueType {};
00087 template<class ContainerAllocator>
00088 struct MD5Sum< ::nasa_r2_common_msgs::JointControlData_<ContainerAllocator> > {
00089 static const char* value()
00090 {
00091 return "fedf678b0c3640f2a0cd4265c858b481";
00092 }
00093
00094 static const char* value(const ::nasa_r2_common_msgs::JointControlData_<ContainerAllocator> &) { return value(); }
00095 static const uint64_t static_value1 = 0xfedf678b0c3640f2ULL;
00096 static const uint64_t static_value2 = 0xa0cd4265c858b481ULL;
00097 };
00098
00099 template<class ContainerAllocator>
00100 struct DataType< ::nasa_r2_common_msgs::JointControlData_<ContainerAllocator> > {
00101 static const char* value()
00102 {
00103 return "nasa_r2_common_msgs/JointControlData";
00104 }
00105
00106 static const char* value(const ::nasa_r2_common_msgs::JointControlData_<ContainerAllocator> &) { return value(); }
00107 };
00108
00109 template<class ContainerAllocator>
00110 struct Definition< ::nasa_r2_common_msgs::JointControlData_<ContainerAllocator> > {
00111 static const char* value()
00112 {
00113 return "JointControlMode controlMode\n\
00114 JointControlCommandMode commandMode\n\
00115 JointControlCalibrationMode calibrationMode\n\
00116 JointControlClearFaultMode clearFaultMode\n\
00117 JointControlCoeffState coeffState\n\
00118 \n\
00119 ================================================================================\n\
00120 MSG: nasa_r2_common_msgs/JointControlMode\n\
00121 uint8 state\n\
00122 uint8 IGNORE = 0\n\
00123 uint8 INVALID = 1\n\
00124 uint8 BOOTLOADER = 2\n\
00125 uint8 FAULTED = 3\n\
00126 uint8 SAFE = 4\n\
00127 uint8 OFF = 5\n\
00128 uint8 PARK = 6\n\
00129 uint8 NEUTRAL = 7\n\
00130 uint8 DRIVE = 8\n\
00131 \n\
00132 ================================================================================\n\
00133 MSG: nasa_r2_common_msgs/JointControlCommandMode\n\
00134 uint8 state\n\
00135 uint8 IGNORE = 0\n\
00136 uint8 INVALID = 1\n\
00137 uint8 MOTCOM = 2\n\
00138 uint8 MULTILOOPSTEP = 3\n\
00139 uint8 MULTILOOPSMOOTH = 4\n\
00140 uint8 ACTUATOR = 5\n\
00141 uint8 STALLMODE = 6\n\
00142 \n\
00143 ================================================================================\n\
00144 MSG: nasa_r2_common_msgs/JointControlCalibrationMode\n\
00145 uint8 state\n\
00146 uint8 IGNORE = 0\n\
00147 uint8 DISABLE = 1\n\
00148 uint8 ENABLE = 2\n\
00149 uint8 UNCALIBRATED = 3\n\
00150 \n\
00151 ================================================================================\n\
00152 MSG: nasa_r2_common_msgs/JointControlClearFaultMode\n\
00153 uint8 state\n\
00154 uint8 IGNORE = 0\n\
00155 uint8 DISABLE = 1\n\
00156 uint8 ENABLE = 2\n\
00157 \n\
00158 ================================================================================\n\
00159 MSG: nasa_r2_common_msgs/JointControlCoeffState\n\
00160 uint8 state\n\
00161 uint8 NOTLOADED = 0\n\
00162 uint8 LOADED = 1\n\
00163 \n\
00164 ";
00165 }
00166
00167 static const char* value(const ::nasa_r2_common_msgs::JointControlData_<ContainerAllocator> &) { return value(); }
00168 };
00169
00170 template<class ContainerAllocator> struct IsFixedSize< ::nasa_r2_common_msgs::JointControlData_<ContainerAllocator> > : public TrueType {};
00171 }
00172 }
00173
00174 namespace ros
00175 {
00176 namespace serialization
00177 {
00178
00179 template<class ContainerAllocator> struct Serializer< ::nasa_r2_common_msgs::JointControlData_<ContainerAllocator> >
00180 {
00181 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00182 {
00183 stream.next(m.controlMode);
00184 stream.next(m.commandMode);
00185 stream.next(m.calibrationMode);
00186 stream.next(m.clearFaultMode);
00187 stream.next(m.coeffState);
00188 }
00189
00190 ROS_DECLARE_ALLINONE_SERIALIZER;
00191 };
00192 }
00193 }
00194
00195 namespace ros
00196 {
00197 namespace message_operations
00198 {
00199
00200 template<class ContainerAllocator>
00201 struct Printer< ::nasa_r2_common_msgs::JointControlData_<ContainerAllocator> >
00202 {
00203 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nasa_r2_common_msgs::JointControlData_<ContainerAllocator> & v)
00204 {
00205 s << indent << "controlMode: ";
00206 s << std::endl;
00207 Printer< ::nasa_r2_common_msgs::JointControlMode_<ContainerAllocator> >::stream(s, indent + " ", v.controlMode);
00208 s << indent << "commandMode: ";
00209 s << std::endl;
00210 Printer< ::nasa_r2_common_msgs::JointControlCommandMode_<ContainerAllocator> >::stream(s, indent + " ", v.commandMode);
00211 s << indent << "calibrationMode: ";
00212 s << std::endl;
00213 Printer< ::nasa_r2_common_msgs::JointControlCalibrationMode_<ContainerAllocator> >::stream(s, indent + " ", v.calibrationMode);
00214 s << indent << "clearFaultMode: ";
00215 s << std::endl;
00216 Printer< ::nasa_r2_common_msgs::JointControlClearFaultMode_<ContainerAllocator> >::stream(s, indent + " ", v.clearFaultMode);
00217 s << indent << "coeffState: ";
00218 s << std::endl;
00219 Printer< ::nasa_r2_common_msgs::JointControlCoeffState_<ContainerAllocator> >::stream(s, indent + " ", v.coeffState);
00220 }
00221 };
00222
00223
00224 }
00225 }
00226
00227 #endif // NASA_R2_COMMON_MSGS_MESSAGE_JOINTCONTROLDATA_H
00228