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