JointControl.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-nasa_r2_common/doc_stacks/2014-01-03_11-31-21.132049/nasa_r2_common/r2_msgs/msg/JointControl.msg */
00002 #ifndef R2_MSGS_MESSAGE_JOINTCONTROL_H
00003 #define R2_MSGS_MESSAGE_JOINTCONTROL_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 r2_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct JointControl_ {
00022   typedef JointControl_<ContainerAllocator> Type;
00023 
00024   JointControl_()
00025   : publisher()
00026   , timeStamp(0.0)
00027   , joint()
00028   , registerValue(0)
00029   , enableBridge(false)
00030   , enableMotor(false)
00031   , releaseBrake(false)
00032   , embeddedMotCom(false)
00033   , controlMode(0)
00034   , clearFaults(false)
00035   {
00036   }
00037 
00038   JointControl_(const ContainerAllocator& _alloc)
00039   : publisher(_alloc)
00040   , timeStamp(0.0)
00041   , joint(_alloc)
00042   , registerValue(0)
00043   , enableBridge(false)
00044   , enableMotor(false)
00045   , releaseBrake(false)
00046   , embeddedMotCom(false)
00047   , controlMode(0)
00048   , clearFaults(false)
00049   {
00050   }
00051 
00052   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _publisher_type;
00053   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  publisher;
00054 
00055   typedef double _timeStamp_type;
00056   double timeStamp;
00057 
00058   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _joint_type;
00059   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  joint;
00060 
00061   typedef uint32_t _registerValue_type;
00062   uint32_t registerValue;
00063 
00064   typedef uint8_t _enableBridge_type;
00065   uint8_t enableBridge;
00066 
00067   typedef uint8_t _enableMotor_type;
00068   uint8_t enableMotor;
00069 
00070   typedef uint8_t _releaseBrake_type;
00071   uint8_t releaseBrake;
00072 
00073   typedef uint8_t _embeddedMotCom_type;
00074   uint8_t embeddedMotCom;
00075 
00076   typedef uint16_t _controlMode_type;
00077   uint16_t controlMode;
00078 
00079   typedef uint8_t _clearFaults_type;
00080   uint8_t clearFaults;
00081 
00082 
00083   typedef boost::shared_ptr< ::r2_msgs::JointControl_<ContainerAllocator> > Ptr;
00084   typedef boost::shared_ptr< ::r2_msgs::JointControl_<ContainerAllocator>  const> ConstPtr;
00085   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00086 }; // struct JointControl
00087 typedef  ::r2_msgs::JointControl_<std::allocator<void> > JointControl;
00088 
00089 typedef boost::shared_ptr< ::r2_msgs::JointControl> JointControlPtr;
00090 typedef boost::shared_ptr< ::r2_msgs::JointControl const> JointControlConstPtr;
00091 
00092 
00093 template<typename ContainerAllocator>
00094 std::ostream& operator<<(std::ostream& s, const  ::r2_msgs::JointControl_<ContainerAllocator> & v)
00095 {
00096   ros::message_operations::Printer< ::r2_msgs::JointControl_<ContainerAllocator> >::stream(s, "", v);
00097   return s;}
00098 
00099 } // namespace r2_msgs
00100 
00101 namespace ros
00102 {
00103 namespace message_traits
00104 {
00105 template<class ContainerAllocator> struct IsMessage< ::r2_msgs::JointControl_<ContainerAllocator> > : public TrueType {};
00106 template<class ContainerAllocator> struct IsMessage< ::r2_msgs::JointControl_<ContainerAllocator>  const> : public TrueType {};
00107 template<class ContainerAllocator>
00108 struct MD5Sum< ::r2_msgs::JointControl_<ContainerAllocator> > {
00109   static const char* value() 
00110   {
00111     return "e38c02f4ffdedb57646a4576b7e0ccf6";
00112   }
00113 
00114   static const char* value(const  ::r2_msgs::JointControl_<ContainerAllocator> &) { return value(); } 
00115   static const uint64_t static_value1 = 0xe38c02f4ffdedb57ULL;
00116   static const uint64_t static_value2 = 0x646a4576b7e0ccf6ULL;
00117 };
00118 
00119 template<class ContainerAllocator>
00120 struct DataType< ::r2_msgs::JointControl_<ContainerAllocator> > {
00121   static const char* value() 
00122   {
00123     return "r2_msgs/JointControl";
00124   }
00125 
00126   static const char* value(const  ::r2_msgs::JointControl_<ContainerAllocator> &) { return value(); } 
00127 };
00128 
00129 template<class ContainerAllocator>
00130 struct Definition< ::r2_msgs::JointControl_<ContainerAllocator> > {
00131   static const char* value() 
00132   {
00133     return "string publisher\n\
00134 float64 timeStamp\n\
00135 string joint\n\
00136 uint32 registerValue\n\
00137 bool enableBridge\n\
00138 bool enableMotor\n\
00139 bool releaseBrake\n\
00140 bool embeddedMotCom\n\
00141 uint16 controlMode\n\
00142 bool clearFaults\n\
00143 \n\
00144 ";
00145   }
00146 
00147   static const char* value(const  ::r2_msgs::JointControl_<ContainerAllocator> &) { return value(); } 
00148 };
00149 
00150 } // namespace message_traits
00151 } // namespace ros
00152 
00153 namespace ros
00154 {
00155 namespace serialization
00156 {
00157 
00158 template<class ContainerAllocator> struct Serializer< ::r2_msgs::JointControl_<ContainerAllocator> >
00159 {
00160   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00161   {
00162     stream.next(m.publisher);
00163     stream.next(m.timeStamp);
00164     stream.next(m.joint);
00165     stream.next(m.registerValue);
00166     stream.next(m.enableBridge);
00167     stream.next(m.enableMotor);
00168     stream.next(m.releaseBrake);
00169     stream.next(m.embeddedMotCom);
00170     stream.next(m.controlMode);
00171     stream.next(m.clearFaults);
00172   }
00173 
00174   ROS_DECLARE_ALLINONE_SERIALIZER;
00175 }; // struct JointControl_
00176 } // namespace serialization
00177 } // namespace ros
00178 
00179 namespace ros
00180 {
00181 namespace message_operations
00182 {
00183 
00184 template<class ContainerAllocator>
00185 struct Printer< ::r2_msgs::JointControl_<ContainerAllocator> >
00186 {
00187   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::r2_msgs::JointControl_<ContainerAllocator> & v) 
00188   {
00189     s << indent << "publisher: ";
00190     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.publisher);
00191     s << indent << "timeStamp: ";
00192     Printer<double>::stream(s, indent + "  ", v.timeStamp);
00193     s << indent << "joint: ";
00194     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.joint);
00195     s << indent << "registerValue: ";
00196     Printer<uint32_t>::stream(s, indent + "  ", v.registerValue);
00197     s << indent << "enableBridge: ";
00198     Printer<uint8_t>::stream(s, indent + "  ", v.enableBridge);
00199     s << indent << "enableMotor: ";
00200     Printer<uint8_t>::stream(s, indent + "  ", v.enableMotor);
00201     s << indent << "releaseBrake: ";
00202     Printer<uint8_t>::stream(s, indent + "  ", v.releaseBrake);
00203     s << indent << "embeddedMotCom: ";
00204     Printer<uint8_t>::stream(s, indent + "  ", v.embeddedMotCom);
00205     s << indent << "controlMode: ";
00206     Printer<uint16_t>::stream(s, indent + "  ", v.controlMode);
00207     s << indent << "clearFaults: ";
00208     Printer<uint8_t>::stream(s, indent + "  ", v.clearFaults);
00209   }
00210 };
00211 
00212 
00213 } // namespace message_operations
00214 } // namespace ros
00215 
00216 #endif // R2_MSGS_MESSAGE_JOINTCONTROL_H
00217 


r2_msgs
Author(s): Paul Dinh
autogenerated on Fri Jan 3 2014 11:33:55