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