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