$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/Tactile.msg */ 00002 #ifndef SR_ROBOT_MSGS_MESSAGE_TACTILE_H 00003 #define SR_ROBOT_MSGS_MESSAGE_TACTILE_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 "std_msgs/Int16.h" 00018 00019 namespace sr_robot_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct Tactile_ { 00023 typedef Tactile_<ContainerAllocator> Type; 00024 00025 Tactile_() 00026 : data() 00027 { 00028 } 00029 00030 Tactile_(const ContainerAllocator& _alloc) 00031 : data(_alloc) 00032 { 00033 } 00034 00035 typedef std::vector< ::std_msgs::Int16_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::Int16_<ContainerAllocator> >::other > _data_type; 00036 std::vector< ::std_msgs::Int16_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::Int16_<ContainerAllocator> >::other > data; 00037 00038 00039 ROS_DEPRECATED uint32_t get_data_size() const { return (uint32_t)data.size(); } 00040 ROS_DEPRECATED void set_data_size(uint32_t size) { data.resize((size_t)size); } 00041 ROS_DEPRECATED void get_data_vec(std::vector< ::std_msgs::Int16_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::Int16_<ContainerAllocator> >::other > & vec) const { vec = this->data; } 00042 ROS_DEPRECATED void set_data_vec(const std::vector< ::std_msgs::Int16_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::Int16_<ContainerAllocator> >::other > & vec) { this->data = vec; } 00043 private: 00044 static const char* __s_getDataType_() { return "sr_robot_msgs/Tactile"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "0f9585f47779b9607f760bef85a254c0"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getMessageDefinition_() { return "std_msgs/Int16[] data\n\ 00059 \n\ 00060 ================================================================================\n\ 00061 MSG: std_msgs/Int16\n\ 00062 int16 data\n\ 00063 \n\ 00064 "; } 00065 public: 00066 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00067 00068 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00069 00070 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00071 { 00072 ros::serialization::OStream stream(write_ptr, 1000000000); 00073 ros::serialization::serialize(stream, data); 00074 return stream.getData(); 00075 } 00076 00077 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00078 { 00079 ros::serialization::IStream stream(read_ptr, 1000000000); 00080 ros::serialization::deserialize(stream, data); 00081 return stream.getData(); 00082 } 00083 00084 ROS_DEPRECATED virtual uint32_t serializationLength() const 00085 { 00086 uint32_t size = 0; 00087 size += ros::serialization::serializationLength(data); 00088 return size; 00089 } 00090 00091 typedef boost::shared_ptr< ::sr_robot_msgs::Tactile_<ContainerAllocator> > Ptr; 00092 typedef boost::shared_ptr< ::sr_robot_msgs::Tactile_<ContainerAllocator> const> ConstPtr; 00093 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00094 }; // struct Tactile 00095 typedef ::sr_robot_msgs::Tactile_<std::allocator<void> > Tactile; 00096 00097 typedef boost::shared_ptr< ::sr_robot_msgs::Tactile> TactilePtr; 00098 typedef boost::shared_ptr< ::sr_robot_msgs::Tactile const> TactileConstPtr; 00099 00100 00101 template<typename ContainerAllocator> 00102 std::ostream& operator<<(std::ostream& s, const ::sr_robot_msgs::Tactile_<ContainerAllocator> & v) 00103 { 00104 ros::message_operations::Printer< ::sr_robot_msgs::Tactile_<ContainerAllocator> >::stream(s, "", v); 00105 return s;} 00106 00107 } // namespace sr_robot_msgs 00108 00109 namespace ros 00110 { 00111 namespace message_traits 00112 { 00113 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::Tactile_<ContainerAllocator> > : public TrueType {}; 00114 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::Tactile_<ContainerAllocator> const> : public TrueType {}; 00115 template<class ContainerAllocator> 00116 struct MD5Sum< ::sr_robot_msgs::Tactile_<ContainerAllocator> > { 00117 static const char* value() 00118 { 00119 return "0f9585f47779b9607f760bef85a254c0"; 00120 } 00121 00122 static const char* value(const ::sr_robot_msgs::Tactile_<ContainerAllocator> &) { return value(); } 00123 static const uint64_t static_value1 = 0x0f9585f47779b960ULL; 00124 static const uint64_t static_value2 = 0x7f760bef85a254c0ULL; 00125 }; 00126 00127 template<class ContainerAllocator> 00128 struct DataType< ::sr_robot_msgs::Tactile_<ContainerAllocator> > { 00129 static const char* value() 00130 { 00131 return "sr_robot_msgs/Tactile"; 00132 } 00133 00134 static const char* value(const ::sr_robot_msgs::Tactile_<ContainerAllocator> &) { return value(); } 00135 }; 00136 00137 template<class ContainerAllocator> 00138 struct Definition< ::sr_robot_msgs::Tactile_<ContainerAllocator> > { 00139 static const char* value() 00140 { 00141 return "std_msgs/Int16[] data\n\ 00142 \n\ 00143 ================================================================================\n\ 00144 MSG: std_msgs/Int16\n\ 00145 int16 data\n\ 00146 \n\ 00147 "; 00148 } 00149 00150 static const char* value(const ::sr_robot_msgs::Tactile_<ContainerAllocator> &) { return value(); } 00151 }; 00152 00153 } // namespace message_traits 00154 } // namespace ros 00155 00156 namespace ros 00157 { 00158 namespace serialization 00159 { 00160 00161 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::Tactile_<ContainerAllocator> > 00162 { 00163 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00164 { 00165 stream.next(m.data); 00166 } 00167 00168 ROS_DECLARE_ALLINONE_SERIALIZER; 00169 }; // struct Tactile_ 00170 } // namespace serialization 00171 } // namespace ros 00172 00173 namespace ros 00174 { 00175 namespace message_operations 00176 { 00177 00178 template<class ContainerAllocator> 00179 struct Printer< ::sr_robot_msgs::Tactile_<ContainerAllocator> > 00180 { 00181 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sr_robot_msgs::Tactile_<ContainerAllocator> & v) 00182 { 00183 s << indent << "data[]" << std::endl; 00184 for (size_t i = 0; i < v.data.size(); ++i) 00185 { 00186 s << indent << " data[" << i << "]: "; 00187 s << std::endl; 00188 s << indent; 00189 Printer< ::std_msgs::Int16_<ContainerAllocator> >::stream(s, indent + " ", v.data[i]); 00190 } 00191 } 00192 }; 00193 00194 00195 } // namespace message_operations 00196 } // namespace ros 00197 00198 #endif // SR_ROBOT_MSGS_MESSAGE_TACTILE_H 00199