$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-shadow_robot/doc_stacks/2013-03-02_13-32-28.994675/shadow_robot/sr_robot_msgs/msg/FromMotorDataType.msg */ 00002 #ifndef SR_ROBOT_MSGS_MESSAGE_FROMMOTORDATATYPE_H 00003 #define SR_ROBOT_MSGS_MESSAGE_FROMMOTORDATATYPE_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 sr_robot_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct FromMotorDataType_ { 00022 typedef FromMotorDataType_<ContainerAllocator> Type; 00023 00024 FromMotorDataType_() 00025 : data(0) 00026 { 00027 } 00028 00029 FromMotorDataType_(const ContainerAllocator& _alloc) 00030 : data(0) 00031 { 00032 } 00033 00034 typedef int16_t _data_type; 00035 int16_t data; 00036 00037 00038 private: 00039 static const char* __s_getDataType_() { return "sr_robot_msgs/FromMotorDataType"; } 00040 public: 00041 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00042 00043 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00044 00045 private: 00046 static const char* __s_getMD5Sum_() { return "8524586e34fbd7cb1c08c5f5f1ca0e57"; } 00047 public: 00048 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00049 00050 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00051 00052 private: 00053 static const char* __s_getMessageDefinition_() { return "int16 data\n\ 00054 "; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00057 00058 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00059 00060 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00061 { 00062 ros::serialization::OStream stream(write_ptr, 1000000000); 00063 ros::serialization::serialize(stream, data); 00064 return stream.getData(); 00065 } 00066 00067 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00068 { 00069 ros::serialization::IStream stream(read_ptr, 1000000000); 00070 ros::serialization::deserialize(stream, data); 00071 return stream.getData(); 00072 } 00073 00074 ROS_DEPRECATED virtual uint32_t serializationLength() const 00075 { 00076 uint32_t size = 0; 00077 size += ros::serialization::serializationLength(data); 00078 return size; 00079 } 00080 00081 typedef boost::shared_ptr< ::sr_robot_msgs::FromMotorDataType_<ContainerAllocator> > Ptr; 00082 typedef boost::shared_ptr< ::sr_robot_msgs::FromMotorDataType_<ContainerAllocator> const> ConstPtr; 00083 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00084 }; // struct FromMotorDataType 00085 typedef ::sr_robot_msgs::FromMotorDataType_<std::allocator<void> > FromMotorDataType; 00086 00087 typedef boost::shared_ptr< ::sr_robot_msgs::FromMotorDataType> FromMotorDataTypePtr; 00088 typedef boost::shared_ptr< ::sr_robot_msgs::FromMotorDataType const> FromMotorDataTypeConstPtr; 00089 00090 00091 template<typename ContainerAllocator> 00092 std::ostream& operator<<(std::ostream& s, const ::sr_robot_msgs::FromMotorDataType_<ContainerAllocator> & v) 00093 { 00094 ros::message_operations::Printer< ::sr_robot_msgs::FromMotorDataType_<ContainerAllocator> >::stream(s, "", v); 00095 return s;} 00096 00097 } // namespace sr_robot_msgs 00098 00099 namespace ros 00100 { 00101 namespace message_traits 00102 { 00103 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::FromMotorDataType_<ContainerAllocator> > : public TrueType {}; 00104 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::FromMotorDataType_<ContainerAllocator> const> : public TrueType {}; 00105 template<class ContainerAllocator> 00106 struct MD5Sum< ::sr_robot_msgs::FromMotorDataType_<ContainerAllocator> > { 00107 static const char* value() 00108 { 00109 return "8524586e34fbd7cb1c08c5f5f1ca0e57"; 00110 } 00111 00112 static const char* value(const ::sr_robot_msgs::FromMotorDataType_<ContainerAllocator> &) { return value(); } 00113 static const uint64_t static_value1 = 0x8524586e34fbd7cbULL; 00114 static const uint64_t static_value2 = 0x1c08c5f5f1ca0e57ULL; 00115 }; 00116 00117 template<class ContainerAllocator> 00118 struct DataType< ::sr_robot_msgs::FromMotorDataType_<ContainerAllocator> > { 00119 static const char* value() 00120 { 00121 return "sr_robot_msgs/FromMotorDataType"; 00122 } 00123 00124 static const char* value(const ::sr_robot_msgs::FromMotorDataType_<ContainerAllocator> &) { return value(); } 00125 }; 00126 00127 template<class ContainerAllocator> 00128 struct Definition< ::sr_robot_msgs::FromMotorDataType_<ContainerAllocator> > { 00129 static const char* value() 00130 { 00131 return "int16 data\n\ 00132 "; 00133 } 00134 00135 static const char* value(const ::sr_robot_msgs::FromMotorDataType_<ContainerAllocator> &) { return value(); } 00136 }; 00137 00138 template<class ContainerAllocator> struct IsFixedSize< ::sr_robot_msgs::FromMotorDataType_<ContainerAllocator> > : public TrueType {}; 00139 } // namespace message_traits 00140 } // namespace ros 00141 00142 namespace ros 00143 { 00144 namespace serialization 00145 { 00146 00147 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::FromMotorDataType_<ContainerAllocator> > 00148 { 00149 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00150 { 00151 stream.next(m.data); 00152 } 00153 00154 ROS_DECLARE_ALLINONE_SERIALIZER; 00155 }; // struct FromMotorDataType_ 00156 } // namespace serialization 00157 } // namespace ros 00158 00159 namespace ros 00160 { 00161 namespace message_operations 00162 { 00163 00164 template<class ContainerAllocator> 00165 struct Printer< ::sr_robot_msgs::FromMotorDataType_<ContainerAllocator> > 00166 { 00167 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sr_robot_msgs::FromMotorDataType_<ContainerAllocator> & v) 00168 { 00169 s << indent << "data: "; 00170 Printer<int16_t>::stream(s, indent + " ", v.data); 00171 } 00172 }; 00173 00174 00175 } // namespace message_operations 00176 } // namespace ros 00177 00178 #endif // SR_ROBOT_MSGS_MESSAGE_FROMMOTORDATATYPE_H 00179