$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_object_manipulation/doc_stacks/2013-03-05_12-10-38.333207/pr2_object_manipulation/manipulation/pr2_gripper_sensor_msgs/msg/PR2GripperPressureData.msg */ 00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERPRESSUREDATA_H 00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERPRESSUREDATA_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 pr2_gripper_sensor_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct PR2GripperPressureData_ { 00022 typedef PR2GripperPressureData_<ContainerAllocator> Type; 00023 00024 PR2GripperPressureData_() 00025 : pressure_left() 00026 , pressure_right() 00027 , rostime(0.0) 00028 { 00029 pressure_left.assign(0.0); 00030 pressure_right.assign(0.0); 00031 } 00032 00033 PR2GripperPressureData_(const ContainerAllocator& _alloc) 00034 : pressure_left() 00035 , pressure_right() 00036 , rostime(0.0) 00037 { 00038 pressure_left.assign(0.0); 00039 pressure_right.assign(0.0); 00040 } 00041 00042 typedef boost::array<double, 22> _pressure_left_type; 00043 boost::array<double, 22> pressure_left; 00044 00045 typedef boost::array<double, 22> _pressure_right_type; 00046 boost::array<double, 22> pressure_right; 00047 00048 typedef double _rostime_type; 00049 double rostime; 00050 00051 00052 ROS_DEPRECATED uint32_t get_pressure_left_size() const { return (uint32_t)pressure_left.size(); } 00053 ROS_DEPRECATED uint32_t get_pressure_right_size() const { return (uint32_t)pressure_right.size(); } 00054 private: 00055 static const char* __s_getDataType_() { return "pr2_gripper_sensor_msgs/PR2GripperPressureData"; } 00056 public: 00057 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00058 00059 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00060 00061 private: 00062 static const char* __s_getMD5Sum_() { return "b69255f5117bf05fdcd1e83d4e6ab779"; } 00063 public: 00064 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00065 00066 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00067 00068 private: 00069 static const char* __s_getMessageDefinition_() { return "# Note: This message is intended for internal package use only and is NOT a part of the public API. This data is not publicaly published in ROS.\n\ 00070 \n\ 00071 # the pressure array for the left and right fingers\n\ 00072 float64[22] pressure_left\n\ 00073 float64[22] pressure_right\n\ 00074 \n\ 00075 float64 rostime\n\ 00076 "; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00079 00080 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00081 00082 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00083 { 00084 ros::serialization::OStream stream(write_ptr, 1000000000); 00085 ros::serialization::serialize(stream, pressure_left); 00086 ros::serialization::serialize(stream, pressure_right); 00087 ros::serialization::serialize(stream, rostime); 00088 return stream.getData(); 00089 } 00090 00091 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00092 { 00093 ros::serialization::IStream stream(read_ptr, 1000000000); 00094 ros::serialization::deserialize(stream, pressure_left); 00095 ros::serialization::deserialize(stream, pressure_right); 00096 ros::serialization::deserialize(stream, rostime); 00097 return stream.getData(); 00098 } 00099 00100 ROS_DEPRECATED virtual uint32_t serializationLength() const 00101 { 00102 uint32_t size = 0; 00103 size += ros::serialization::serializationLength(pressure_left); 00104 size += ros::serialization::serializationLength(pressure_right); 00105 size += ros::serialization::serializationLength(rostime); 00106 return size; 00107 } 00108 00109 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> > Ptr; 00110 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> const> ConstPtr; 00111 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00112 }; // struct PR2GripperPressureData 00113 typedef ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<std::allocator<void> > PR2GripperPressureData; 00114 00115 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperPressureData> PR2GripperPressureDataPtr; 00116 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperPressureData const> PR2GripperPressureDataConstPtr; 00117 00118 00119 template<typename ContainerAllocator> 00120 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> & v) 00121 { 00122 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> >::stream(s, "", v); 00123 return s;} 00124 00125 } // namespace pr2_gripper_sensor_msgs 00126 00127 namespace ros 00128 { 00129 namespace message_traits 00130 { 00131 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> > : public TrueType {}; 00132 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> const> : public TrueType {}; 00133 template<class ContainerAllocator> 00134 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> > { 00135 static const char* value() 00136 { 00137 return "b69255f5117bf05fdcd1e83d4e6ab779"; 00138 } 00139 00140 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> &) { return value(); } 00141 static const uint64_t static_value1 = 0xb69255f5117bf05fULL; 00142 static const uint64_t static_value2 = 0xdcd1e83d4e6ab779ULL; 00143 }; 00144 00145 template<class ContainerAllocator> 00146 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> > { 00147 static const char* value() 00148 { 00149 return "pr2_gripper_sensor_msgs/PR2GripperPressureData"; 00150 } 00151 00152 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> &) { return value(); } 00153 }; 00154 00155 template<class ContainerAllocator> 00156 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> > { 00157 static const char* value() 00158 { 00159 return "# Note: This message is intended for internal package use only and is NOT a part of the public API. This data is not publicaly published in ROS.\n\ 00160 \n\ 00161 # the pressure array for the left and right fingers\n\ 00162 float64[22] pressure_left\n\ 00163 float64[22] pressure_right\n\ 00164 \n\ 00165 float64 rostime\n\ 00166 "; 00167 } 00168 00169 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> &) { return value(); } 00170 }; 00171 00172 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> > : public TrueType {}; 00173 } // namespace message_traits 00174 } // namespace ros 00175 00176 namespace ros 00177 { 00178 namespace serialization 00179 { 00180 00181 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> > 00182 { 00183 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00184 { 00185 stream.next(m.pressure_left); 00186 stream.next(m.pressure_right); 00187 stream.next(m.rostime); 00188 } 00189 00190 ROS_DECLARE_ALLINONE_SERIALIZER; 00191 }; // struct PR2GripperPressureData_ 00192 } // namespace serialization 00193 } // namespace ros 00194 00195 namespace ros 00196 { 00197 namespace message_operations 00198 { 00199 00200 template<class ContainerAllocator> 00201 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> > 00202 { 00203 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> & v) 00204 { 00205 s << indent << "pressure_left[]" << std::endl; 00206 for (size_t i = 0; i < v.pressure_left.size(); ++i) 00207 { 00208 s << indent << " pressure_left[" << i << "]: "; 00209 Printer<double>::stream(s, indent + " ", v.pressure_left[i]); 00210 } 00211 s << indent << "pressure_right[]" << std::endl; 00212 for (size_t i = 0; i < v.pressure_right.size(); ++i) 00213 { 00214 s << indent << " pressure_right[" << i << "]: "; 00215 Printer<double>::stream(s, indent + " ", v.pressure_right[i]); 00216 } 00217 s << indent << "rostime: "; 00218 Printer<double>::stream(s, indent + " ", v.rostime); 00219 } 00220 }; 00221 00222 00223 } // namespace message_operations 00224 } // namespace ros 00225 00226 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERPRESSUREDATA_H 00227