$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_ethercat_drivers/doc_stacks/2013-03-01_16-48-09.984649/pr2_ethercat_drivers/fingertip_pressure/msg/PressureInfoElement.msg */ 00002 #ifndef FINGERTIP_PRESSURE_MESSAGE_PRESSUREINFOELEMENT_H 00003 #define FINGERTIP_PRESSURE_MESSAGE_PRESSUREINFOELEMENT_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 "geometry_msgs/Vector3.h" 00018 #include "geometry_msgs/Vector3.h" 00019 #include "geometry_msgs/Vector3.h" 00020 00021 namespace fingertip_pressure 00022 { 00023 template <class ContainerAllocator> 00024 struct PressureInfoElement_ { 00025 typedef PressureInfoElement_<ContainerAllocator> Type; 00026 00027 PressureInfoElement_() 00028 : frame_id() 00029 , center() 00030 , halfside1() 00031 , halfside2() 00032 , force_per_unit() 00033 { 00034 } 00035 00036 PressureInfoElement_(const ContainerAllocator& _alloc) 00037 : frame_id(_alloc) 00038 , center(_alloc) 00039 , halfside1(_alloc) 00040 , halfside2(_alloc) 00041 , force_per_unit(_alloc) 00042 { 00043 } 00044 00045 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _frame_id_type; 00046 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > frame_id; 00047 00048 typedef std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other > _center_type; 00049 std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other > center; 00050 00051 typedef std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other > _halfside1_type; 00052 std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other > halfside1; 00053 00054 typedef std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other > _halfside2_type; 00055 std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other > halfside2; 00056 00057 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _force_per_unit_type; 00058 std::vector<double, typename ContainerAllocator::template rebind<double>::other > force_per_unit; 00059 00060 00061 ROS_DEPRECATED uint32_t get_center_size() const { return (uint32_t)center.size(); } 00062 ROS_DEPRECATED void set_center_size(uint32_t size) { center.resize((size_t)size); } 00063 ROS_DEPRECATED void get_center_vec(std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other > & vec) const { vec = this->center; } 00064 ROS_DEPRECATED void set_center_vec(const std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other > & vec) { this->center = vec; } 00065 ROS_DEPRECATED uint32_t get_halfside1_size() const { return (uint32_t)halfside1.size(); } 00066 ROS_DEPRECATED void set_halfside1_size(uint32_t size) { halfside1.resize((size_t)size); } 00067 ROS_DEPRECATED void get_halfside1_vec(std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other > & vec) const { vec = this->halfside1; } 00068 ROS_DEPRECATED void set_halfside1_vec(const std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other > & vec) { this->halfside1 = vec; } 00069 ROS_DEPRECATED uint32_t get_halfside2_size() const { return (uint32_t)halfside2.size(); } 00070 ROS_DEPRECATED void set_halfside2_size(uint32_t size) { halfside2.resize((size_t)size); } 00071 ROS_DEPRECATED void get_halfside2_vec(std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other > & vec) const { vec = this->halfside2; } 00072 ROS_DEPRECATED void set_halfside2_vec(const std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other > & vec) { this->halfside2 = vec; } 00073 ROS_DEPRECATED uint32_t get_force_per_unit_size() const { return (uint32_t)force_per_unit.size(); } 00074 ROS_DEPRECATED void set_force_per_unit_size(uint32_t size) { force_per_unit.resize((size_t)size); } 00075 ROS_DEPRECATED void get_force_per_unit_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->force_per_unit; } 00076 ROS_DEPRECATED void set_force_per_unit_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->force_per_unit = vec; } 00077 private: 00078 static const char* __s_getDataType_() { return "fingertip_pressure/PressureInfoElement"; } 00079 public: 00080 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00081 00082 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00083 00084 private: 00085 static const char* __s_getMD5Sum_() { return "1cb486bb542ab85e1ff8d84fe9cc899f"; } 00086 public: 00087 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00088 00089 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00090 00091 private: 00092 static const char* __s_getMessageDefinition_() { return "string frame_id # Frame ID\n\ 00093 geometry_msgs/Vector3[] center # Corner of sensor (meters)\n\ 00094 geometry_msgs/Vector3[] halfside1 # Half of one edge of sensor (meters)\n\ 00095 geometry_msgs/Vector3[] halfside2 # Half of perpendicular edge of sensor (meters)\n\ 00096 # Sensor corners are at center+-halfside1+-halfside2\n\ 00097 # Cross product of halfside1 and halfside2 points out\n\ 00098 float64[] force_per_unit # Multiply this by the raw sensor value to get a force\n\ 00099 \n\ 00100 ================================================================================\n\ 00101 MSG: geometry_msgs/Vector3\n\ 00102 # This represents a vector in free space. \n\ 00103 \n\ 00104 float64 x\n\ 00105 float64 y\n\ 00106 float64 z\n\ 00107 "; } 00108 public: 00109 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00110 00111 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00112 00113 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00114 { 00115 ros::serialization::OStream stream(write_ptr, 1000000000); 00116 ros::serialization::serialize(stream, frame_id); 00117 ros::serialization::serialize(stream, center); 00118 ros::serialization::serialize(stream, halfside1); 00119 ros::serialization::serialize(stream, halfside2); 00120 ros::serialization::serialize(stream, force_per_unit); 00121 return stream.getData(); 00122 } 00123 00124 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00125 { 00126 ros::serialization::IStream stream(read_ptr, 1000000000); 00127 ros::serialization::deserialize(stream, frame_id); 00128 ros::serialization::deserialize(stream, center); 00129 ros::serialization::deserialize(stream, halfside1); 00130 ros::serialization::deserialize(stream, halfside2); 00131 ros::serialization::deserialize(stream, force_per_unit); 00132 return stream.getData(); 00133 } 00134 00135 ROS_DEPRECATED virtual uint32_t serializationLength() const 00136 { 00137 uint32_t size = 0; 00138 size += ros::serialization::serializationLength(frame_id); 00139 size += ros::serialization::serializationLength(center); 00140 size += ros::serialization::serializationLength(halfside1); 00141 size += ros::serialization::serializationLength(halfside2); 00142 size += ros::serialization::serializationLength(force_per_unit); 00143 return size; 00144 } 00145 00146 typedef boost::shared_ptr< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> > Ptr; 00147 typedef boost::shared_ptr< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> const> ConstPtr; 00148 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00149 }; // struct PressureInfoElement 00150 typedef ::fingertip_pressure::PressureInfoElement_<std::allocator<void> > PressureInfoElement; 00151 00152 typedef boost::shared_ptr< ::fingertip_pressure::PressureInfoElement> PressureInfoElementPtr; 00153 typedef boost::shared_ptr< ::fingertip_pressure::PressureInfoElement const> PressureInfoElementConstPtr; 00154 00155 00156 template<typename ContainerAllocator> 00157 std::ostream& operator<<(std::ostream& s, const ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> & v) 00158 { 00159 ros::message_operations::Printer< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> >::stream(s, "", v); 00160 return s;} 00161 00162 } // namespace fingertip_pressure 00163 00164 namespace ros 00165 { 00166 namespace message_traits 00167 { 00168 template<class ContainerAllocator> struct IsMessage< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> > : public TrueType {}; 00169 template<class ContainerAllocator> struct IsMessage< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> const> : public TrueType {}; 00170 template<class ContainerAllocator> 00171 struct MD5Sum< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> > { 00172 static const char* value() 00173 { 00174 return "1cb486bb542ab85e1ff8d84fe9cc899f"; 00175 } 00176 00177 static const char* value(const ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> &) { return value(); } 00178 static const uint64_t static_value1 = 0x1cb486bb542ab85eULL; 00179 static const uint64_t static_value2 = 0x1ff8d84fe9cc899fULL; 00180 }; 00181 00182 template<class ContainerAllocator> 00183 struct DataType< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> > { 00184 static const char* value() 00185 { 00186 return "fingertip_pressure/PressureInfoElement"; 00187 } 00188 00189 static const char* value(const ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> &) { return value(); } 00190 }; 00191 00192 template<class ContainerAllocator> 00193 struct Definition< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> > { 00194 static const char* value() 00195 { 00196 return "string frame_id # Frame ID\n\ 00197 geometry_msgs/Vector3[] center # Corner of sensor (meters)\n\ 00198 geometry_msgs/Vector3[] halfside1 # Half of one edge of sensor (meters)\n\ 00199 geometry_msgs/Vector3[] halfside2 # Half of perpendicular edge of sensor (meters)\n\ 00200 # Sensor corners are at center+-halfside1+-halfside2\n\ 00201 # Cross product of halfside1 and halfside2 points out\n\ 00202 float64[] force_per_unit # Multiply this by the raw sensor value to get a force\n\ 00203 \n\ 00204 ================================================================================\n\ 00205 MSG: geometry_msgs/Vector3\n\ 00206 # This represents a vector in free space. \n\ 00207 \n\ 00208 float64 x\n\ 00209 float64 y\n\ 00210 float64 z\n\ 00211 "; 00212 } 00213 00214 static const char* value(const ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> &) { return value(); } 00215 }; 00216 00217 } // namespace message_traits 00218 } // namespace ros 00219 00220 namespace ros 00221 { 00222 namespace serialization 00223 { 00224 00225 template<class ContainerAllocator> struct Serializer< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> > 00226 { 00227 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00228 { 00229 stream.next(m.frame_id); 00230 stream.next(m.center); 00231 stream.next(m.halfside1); 00232 stream.next(m.halfside2); 00233 stream.next(m.force_per_unit); 00234 } 00235 00236 ROS_DECLARE_ALLINONE_SERIALIZER; 00237 }; // struct PressureInfoElement_ 00238 } // namespace serialization 00239 } // namespace ros 00240 00241 namespace ros 00242 { 00243 namespace message_operations 00244 { 00245 00246 template<class ContainerAllocator> 00247 struct Printer< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> > 00248 { 00249 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> & v) 00250 { 00251 s << indent << "frame_id: "; 00252 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.frame_id); 00253 s << indent << "center[]" << std::endl; 00254 for (size_t i = 0; i < v.center.size(); ++i) 00255 { 00256 s << indent << " center[" << i << "]: "; 00257 s << std::endl; 00258 s << indent; 00259 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.center[i]); 00260 } 00261 s << indent << "halfside1[]" << std::endl; 00262 for (size_t i = 0; i < v.halfside1.size(); ++i) 00263 { 00264 s << indent << " halfside1[" << i << "]: "; 00265 s << std::endl; 00266 s << indent; 00267 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.halfside1[i]); 00268 } 00269 s << indent << "halfside2[]" << std::endl; 00270 for (size_t i = 0; i < v.halfside2.size(); ++i) 00271 { 00272 s << indent << " halfside2[" << i << "]: "; 00273 s << std::endl; 00274 s << indent; 00275 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.halfside2[i]); 00276 } 00277 s << indent << "force_per_unit[]" << std::endl; 00278 for (size_t i = 0; i < v.force_per_unit.size(); ++i) 00279 { 00280 s << indent << " force_per_unit[" << i << "]: "; 00281 Printer<double>::stream(s, indent + " ", v.force_per_unit[i]); 00282 } 00283 } 00284 }; 00285 00286 00287 } // namespace message_operations 00288 } // namespace ros 00289 00290 #endif // FINGERTIP_PRESSURE_MESSAGE_PRESSUREINFOELEMENT_H 00291