$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/PressureInfo.msg */ 00002 #ifndef FINGERTIP_PRESSURE_MESSAGE_PRESSUREINFO_H 00003 #define FINGERTIP_PRESSURE_MESSAGE_PRESSUREINFO_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 "fingertip_pressure/PressureInfoElement.h" 00018 00019 namespace fingertip_pressure 00020 { 00021 template <class ContainerAllocator> 00022 struct PressureInfo_ { 00023 typedef PressureInfo_<ContainerAllocator> Type; 00024 00025 PressureInfo_() 00026 : sensor() 00027 { 00028 } 00029 00030 PressureInfo_(const ContainerAllocator& _alloc) 00031 : sensor(_alloc) 00032 { 00033 } 00034 00035 typedef std::vector< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> >::other > _sensor_type; 00036 std::vector< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> >::other > sensor; 00037 00038 00039 ROS_DEPRECATED uint32_t get_sensor_size() const { return (uint32_t)sensor.size(); } 00040 ROS_DEPRECATED void set_sensor_size(uint32_t size) { sensor.resize((size_t)size); } 00041 ROS_DEPRECATED void get_sensor_vec(std::vector< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> >::other > & vec) const { vec = this->sensor; } 00042 ROS_DEPRECATED void set_sensor_vec(const std::vector< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> >::other > & vec) { this->sensor = vec; } 00043 private: 00044 static const char* __s_getDataType_() { return "fingertip_pressure/PressureInfo"; } 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 "a11fc5bae3534aa023741e378743af5b"; } 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 "PressureInfoElement[] sensor # List of pressure sensors for which information is being published\n\ 00059 \n\ 00060 ================================================================================\n\ 00061 MSG: fingertip_pressure/PressureInfoElement\n\ 00062 string frame_id # Frame ID\n\ 00063 geometry_msgs/Vector3[] center # Corner of sensor (meters)\n\ 00064 geometry_msgs/Vector3[] halfside1 # Half of one edge of sensor (meters)\n\ 00065 geometry_msgs/Vector3[] halfside2 # Half of perpendicular edge of sensor (meters)\n\ 00066 # Sensor corners are at center+-halfside1+-halfside2\n\ 00067 # Cross product of halfside1 and halfside2 points out\n\ 00068 float64[] force_per_unit # Multiply this by the raw sensor value to get a force\n\ 00069 \n\ 00070 ================================================================================\n\ 00071 MSG: geometry_msgs/Vector3\n\ 00072 # This represents a vector in free space. \n\ 00073 \n\ 00074 float64 x\n\ 00075 float64 y\n\ 00076 float64 z\n\ 00077 "; } 00078 public: 00079 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00080 00081 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00082 00083 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00084 { 00085 ros::serialization::OStream stream(write_ptr, 1000000000); 00086 ros::serialization::serialize(stream, sensor); 00087 return stream.getData(); 00088 } 00089 00090 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00091 { 00092 ros::serialization::IStream stream(read_ptr, 1000000000); 00093 ros::serialization::deserialize(stream, sensor); 00094 return stream.getData(); 00095 } 00096 00097 ROS_DEPRECATED virtual uint32_t serializationLength() const 00098 { 00099 uint32_t size = 0; 00100 size += ros::serialization::serializationLength(sensor); 00101 return size; 00102 } 00103 00104 typedef boost::shared_ptr< ::fingertip_pressure::PressureInfo_<ContainerAllocator> > Ptr; 00105 typedef boost::shared_ptr< ::fingertip_pressure::PressureInfo_<ContainerAllocator> const> ConstPtr; 00106 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00107 }; // struct PressureInfo 00108 typedef ::fingertip_pressure::PressureInfo_<std::allocator<void> > PressureInfo; 00109 00110 typedef boost::shared_ptr< ::fingertip_pressure::PressureInfo> PressureInfoPtr; 00111 typedef boost::shared_ptr< ::fingertip_pressure::PressureInfo const> PressureInfoConstPtr; 00112 00113 00114 template<typename ContainerAllocator> 00115 std::ostream& operator<<(std::ostream& s, const ::fingertip_pressure::PressureInfo_<ContainerAllocator> & v) 00116 { 00117 ros::message_operations::Printer< ::fingertip_pressure::PressureInfo_<ContainerAllocator> >::stream(s, "", v); 00118 return s;} 00119 00120 } // namespace fingertip_pressure 00121 00122 namespace ros 00123 { 00124 namespace message_traits 00125 { 00126 template<class ContainerAllocator> struct IsMessage< ::fingertip_pressure::PressureInfo_<ContainerAllocator> > : public TrueType {}; 00127 template<class ContainerAllocator> struct IsMessage< ::fingertip_pressure::PressureInfo_<ContainerAllocator> const> : public TrueType {}; 00128 template<class ContainerAllocator> 00129 struct MD5Sum< ::fingertip_pressure::PressureInfo_<ContainerAllocator> > { 00130 static const char* value() 00131 { 00132 return "a11fc5bae3534aa023741e378743af5b"; 00133 } 00134 00135 static const char* value(const ::fingertip_pressure::PressureInfo_<ContainerAllocator> &) { return value(); } 00136 static const uint64_t static_value1 = 0xa11fc5bae3534aa0ULL; 00137 static const uint64_t static_value2 = 0x23741e378743af5bULL; 00138 }; 00139 00140 template<class ContainerAllocator> 00141 struct DataType< ::fingertip_pressure::PressureInfo_<ContainerAllocator> > { 00142 static const char* value() 00143 { 00144 return "fingertip_pressure/PressureInfo"; 00145 } 00146 00147 static const char* value(const ::fingertip_pressure::PressureInfo_<ContainerAllocator> &) { return value(); } 00148 }; 00149 00150 template<class ContainerAllocator> 00151 struct Definition< ::fingertip_pressure::PressureInfo_<ContainerAllocator> > { 00152 static const char* value() 00153 { 00154 return "PressureInfoElement[] sensor # List of pressure sensors for which information is being published\n\ 00155 \n\ 00156 ================================================================================\n\ 00157 MSG: fingertip_pressure/PressureInfoElement\n\ 00158 string frame_id # Frame ID\n\ 00159 geometry_msgs/Vector3[] center # Corner of sensor (meters)\n\ 00160 geometry_msgs/Vector3[] halfside1 # Half of one edge of sensor (meters)\n\ 00161 geometry_msgs/Vector3[] halfside2 # Half of perpendicular edge of sensor (meters)\n\ 00162 # Sensor corners are at center+-halfside1+-halfside2\n\ 00163 # Cross product of halfside1 and halfside2 points out\n\ 00164 float64[] force_per_unit # Multiply this by the raw sensor value to get a force\n\ 00165 \n\ 00166 ================================================================================\n\ 00167 MSG: geometry_msgs/Vector3\n\ 00168 # This represents a vector in free space. \n\ 00169 \n\ 00170 float64 x\n\ 00171 float64 y\n\ 00172 float64 z\n\ 00173 "; 00174 } 00175 00176 static const char* value(const ::fingertip_pressure::PressureInfo_<ContainerAllocator> &) { return value(); } 00177 }; 00178 00179 } // namespace message_traits 00180 } // namespace ros 00181 00182 namespace ros 00183 { 00184 namespace serialization 00185 { 00186 00187 template<class ContainerAllocator> struct Serializer< ::fingertip_pressure::PressureInfo_<ContainerAllocator> > 00188 { 00189 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00190 { 00191 stream.next(m.sensor); 00192 } 00193 00194 ROS_DECLARE_ALLINONE_SERIALIZER; 00195 }; // struct PressureInfo_ 00196 } // namespace serialization 00197 } // namespace ros 00198 00199 namespace ros 00200 { 00201 namespace message_operations 00202 { 00203 00204 template<class ContainerAllocator> 00205 struct Printer< ::fingertip_pressure::PressureInfo_<ContainerAllocator> > 00206 { 00207 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::fingertip_pressure::PressureInfo_<ContainerAllocator> & v) 00208 { 00209 s << indent << "sensor[]" << std::endl; 00210 for (size_t i = 0; i < v.sensor.size(); ++i) 00211 { 00212 s << indent << " sensor[" << i << "]: "; 00213 s << std::endl; 00214 s << indent; 00215 Printer< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> >::stream(s, indent + " ", v.sensor[i]); 00216 } 00217 } 00218 }; 00219 00220 00221 } // namespace message_operations 00222 } // namespace ros 00223 00224 #endif // FINGERTIP_PRESSURE_MESSAGE_PRESSUREINFO_H 00225