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


r2_msgs
Author(s): Paul Dinh
autogenerated on Sat Jul 26 2014 06:34:21