$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/PR2GripperEventDetectorFeedback.msg */ 00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPEREVENTDETECTORFEEDBACK_H 00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPEREVENTDETECTORFEEDBACK_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 "pr2_gripper_sensor_msgs/PR2GripperEventDetectorData.h" 00018 00019 namespace pr2_gripper_sensor_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct PR2GripperEventDetectorFeedback_ { 00023 typedef PR2GripperEventDetectorFeedback_<ContainerAllocator> Type; 00024 00025 PR2GripperEventDetectorFeedback_() 00026 : data() 00027 { 00028 } 00029 00030 PR2GripperEventDetectorFeedback_(const ContainerAllocator& _alloc) 00031 : data(_alloc) 00032 { 00033 } 00034 00035 typedef ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorData_<ContainerAllocator> _data_type; 00036 ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorData_<ContainerAllocator> data; 00037 00038 00039 private: 00040 static const char* __s_getDataType_() { return "pr2_gripper_sensor_msgs/PR2GripperEventDetectorFeedback"; } 00041 public: 00042 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00043 00044 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00045 00046 private: 00047 static const char* __s_getMD5Sum_() { return "817b45a51c75a067eb5dfb8e18b14aa1"; } 00048 public: 00049 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00050 00051 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00052 00053 private: 00054 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00055 # feedback\n\ 00056 PR2GripperEventDetectorData data\n\ 00057 \n\ 00058 \n\ 00059 \n\ 00060 ================================================================================\n\ 00061 MSG: pr2_gripper_sensor_msgs/PR2GripperEventDetectorData\n\ 00062 # Time the data was recorded at\n\ 00063 time stamp\n\ 00064 \n\ 00065 # true if the trigger conditions have been met \n\ 00066 # (see PR2GripperEventDetectorCommand)\n\ 00067 bool trigger_conditions_met\n\ 00068 \n\ 00069 # true if the pressure sensors detected a slip event\n\ 00070 # slip events occur when the finger pressure sensors\n\ 00071 # high-freq. content exceeds the slip_trigger_magnitude variable\n\ 00072 # (see PR2GripperEventDetectorCommand)\n\ 00073 bool slip_event\n\ 00074 \n\ 00075 # true if the hand-mounted accelerometer detected a contact acceleration\n\ 00076 # acceleration events occur when the palm accelerometer\n\ 00077 # high-freq. content exceeds the acc_trigger_magnitude variable\n\ 00078 # (see PR2GripperEventDetectorCommand)\n\ 00079 bool acceleration_event\n\ 00080 \n\ 00081 # the high-freq acceleration vector that was last seen (x,y,z)\n\ 00082 float64[3] acceleration_vector\n\ 00083 "; } 00084 public: 00085 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00086 00087 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00088 00089 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00090 { 00091 ros::serialization::OStream stream(write_ptr, 1000000000); 00092 ros::serialization::serialize(stream, data); 00093 return stream.getData(); 00094 } 00095 00096 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00097 { 00098 ros::serialization::IStream stream(read_ptr, 1000000000); 00099 ros::serialization::deserialize(stream, data); 00100 return stream.getData(); 00101 } 00102 00103 ROS_DEPRECATED virtual uint32_t serializationLength() const 00104 { 00105 uint32_t size = 0; 00106 size += ros::serialization::serializationLength(data); 00107 return size; 00108 } 00109 00110 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorFeedback_<ContainerAllocator> > Ptr; 00111 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorFeedback_<ContainerAllocator> const> ConstPtr; 00112 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00113 }; // struct PR2GripperEventDetectorFeedback 00114 typedef ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorFeedback_<std::allocator<void> > PR2GripperEventDetectorFeedback; 00115 00116 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorFeedback> PR2GripperEventDetectorFeedbackPtr; 00117 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorFeedback const> PR2GripperEventDetectorFeedbackConstPtr; 00118 00119 00120 template<typename ContainerAllocator> 00121 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorFeedback_<ContainerAllocator> & v) 00122 { 00123 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorFeedback_<ContainerAllocator> >::stream(s, "", v); 00124 return s;} 00125 00126 } // namespace pr2_gripper_sensor_msgs 00127 00128 namespace ros 00129 { 00130 namespace message_traits 00131 { 00132 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorFeedback_<ContainerAllocator> > : public TrueType {}; 00133 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorFeedback_<ContainerAllocator> const> : public TrueType {}; 00134 template<class ContainerAllocator> 00135 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorFeedback_<ContainerAllocator> > { 00136 static const char* value() 00137 { 00138 return "817b45a51c75a067eb5dfb8e18b14aa1"; 00139 } 00140 00141 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorFeedback_<ContainerAllocator> &) { return value(); } 00142 static const uint64_t static_value1 = 0x817b45a51c75a067ULL; 00143 static const uint64_t static_value2 = 0xeb5dfb8e18b14aa1ULL; 00144 }; 00145 00146 template<class ContainerAllocator> 00147 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorFeedback_<ContainerAllocator> > { 00148 static const char* value() 00149 { 00150 return "pr2_gripper_sensor_msgs/PR2GripperEventDetectorFeedback"; 00151 } 00152 00153 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorFeedback_<ContainerAllocator> &) { return value(); } 00154 }; 00155 00156 template<class ContainerAllocator> 00157 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorFeedback_<ContainerAllocator> > { 00158 static const char* value() 00159 { 00160 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00161 # feedback\n\ 00162 PR2GripperEventDetectorData data\n\ 00163 \n\ 00164 \n\ 00165 \n\ 00166 ================================================================================\n\ 00167 MSG: pr2_gripper_sensor_msgs/PR2GripperEventDetectorData\n\ 00168 # Time the data was recorded at\n\ 00169 time stamp\n\ 00170 \n\ 00171 # true if the trigger conditions have been met \n\ 00172 # (see PR2GripperEventDetectorCommand)\n\ 00173 bool trigger_conditions_met\n\ 00174 \n\ 00175 # true if the pressure sensors detected a slip event\n\ 00176 # slip events occur when the finger pressure sensors\n\ 00177 # high-freq. content exceeds the slip_trigger_magnitude variable\n\ 00178 # (see PR2GripperEventDetectorCommand)\n\ 00179 bool slip_event\n\ 00180 \n\ 00181 # true if the hand-mounted accelerometer detected a contact acceleration\n\ 00182 # acceleration events occur when the palm accelerometer\n\ 00183 # high-freq. content exceeds the acc_trigger_magnitude variable\n\ 00184 # (see PR2GripperEventDetectorCommand)\n\ 00185 bool acceleration_event\n\ 00186 \n\ 00187 # the high-freq acceleration vector that was last seen (x,y,z)\n\ 00188 float64[3] acceleration_vector\n\ 00189 "; 00190 } 00191 00192 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorFeedback_<ContainerAllocator> &) { return value(); } 00193 }; 00194 00195 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorFeedback_<ContainerAllocator> > : public TrueType {}; 00196 } // namespace message_traits 00197 } // namespace ros 00198 00199 namespace ros 00200 { 00201 namespace serialization 00202 { 00203 00204 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorFeedback_<ContainerAllocator> > 00205 { 00206 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00207 { 00208 stream.next(m.data); 00209 } 00210 00211 ROS_DECLARE_ALLINONE_SERIALIZER; 00212 }; // struct PR2GripperEventDetectorFeedback_ 00213 } // namespace serialization 00214 } // namespace ros 00215 00216 namespace ros 00217 { 00218 namespace message_operations 00219 { 00220 00221 template<class ContainerAllocator> 00222 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorFeedback_<ContainerAllocator> > 00223 { 00224 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorFeedback_<ContainerAllocator> & v) 00225 { 00226 s << indent << "data: "; 00227 s << std::endl; 00228 Printer< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorData_<ContainerAllocator> >::stream(s, indent + " ", v.data); 00229 } 00230 }; 00231 00232 00233 } // namespace message_operations 00234 } // namespace ros 00235 00236 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPEREVENTDETECTORFEEDBACK_H 00237