Go to the documentation of this file.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 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorResult_<ContainerAllocator> > Ptr;
00040 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorResult_<ContainerAllocator> const> ConstPtr;
00041 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00042 };
00043 typedef ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorResult_<std::allocator<void> > PR2GripperEventDetectorResult;
00044
00045 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorResult> PR2GripperEventDetectorResultPtr;
00046 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorResult const> PR2GripperEventDetectorResultConstPtr;
00047
00048
00049 template<typename ContainerAllocator>
00050 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorResult_<ContainerAllocator> & v)
00051 {
00052 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorResult_<ContainerAllocator> >::stream(s, "", v);
00053 return s;}
00054
00055 }
00056
00057 namespace ros
00058 {
00059 namespace message_traits
00060 {
00061 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorResult_<ContainerAllocator> > : public TrueType {};
00062 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorResult_<ContainerAllocator> const> : public TrueType {};
00063 template<class ContainerAllocator>
00064 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorResult_<ContainerAllocator> > {
00065 static const char* value()
00066 {
00067 return "817b45a51c75a067eb5dfb8e18b14aa1";
00068 }
00069
00070 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorResult_<ContainerAllocator> &) { return value(); }
00071 static const uint64_t static_value1 = 0x817b45a51c75a067ULL;
00072 static const uint64_t static_value2 = 0xeb5dfb8e18b14aa1ULL;
00073 };
00074
00075 template<class ContainerAllocator>
00076 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorResult_<ContainerAllocator> > {
00077 static const char* value()
00078 {
00079 return "pr2_gripper_sensor_msgs/PR2GripperEventDetectorResult";
00080 }
00081
00082 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorResult_<ContainerAllocator> &) { return value(); }
00083 };
00084
00085 template<class ContainerAllocator>
00086 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorResult_<ContainerAllocator> > {
00087 static const char* value()
00088 {
00089 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00090 #results\n\
00091 PR2GripperEventDetectorData data\n\
00092 \n\
00093 ================================================================================\n\
00094 MSG: pr2_gripper_sensor_msgs/PR2GripperEventDetectorData\n\
00095 # Time the data was recorded at\n\
00096 time stamp\n\
00097 \n\
00098 # true if the trigger conditions have been met \n\
00099 # (see PR2GripperEventDetectorCommand)\n\
00100 bool trigger_conditions_met\n\
00101 \n\
00102 # true if the pressure sensors detected a slip event\n\
00103 # slip events occur when the finger pressure sensors\n\
00104 # high-freq. content exceeds the slip_trigger_magnitude variable\n\
00105 # (see PR2GripperEventDetectorCommand)\n\
00106 bool slip_event\n\
00107 \n\
00108 # true if the hand-mounted accelerometer detected a contact acceleration\n\
00109 # acceleration events occur when the palm accelerometer\n\
00110 # high-freq. content exceeds the acc_trigger_magnitude variable\n\
00111 # (see PR2GripperEventDetectorCommand)\n\
00112 bool acceleration_event\n\
00113 \n\
00114 # the high-freq acceleration vector that was last seen (x,y,z)\n\
00115 float64[3] acceleration_vector\n\
00116 ";
00117 }
00118
00119 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorResult_<ContainerAllocator> &) { return value(); }
00120 };
00121
00122 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorResult_<ContainerAllocator> > : public TrueType {};
00123 }
00124 }
00125
00126 namespace ros
00127 {
00128 namespace serialization
00129 {
00130
00131 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorResult_<ContainerAllocator> >
00132 {
00133 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00134 {
00135 stream.next(m.data);
00136 }
00137
00138 ROS_DECLARE_ALLINONE_SERIALIZER;
00139 };
00140 }
00141 }
00142
00143 namespace ros
00144 {
00145 namespace message_operations
00146 {
00147
00148 template<class ContainerAllocator>
00149 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorResult_<ContainerAllocator> >
00150 {
00151 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorResult_<ContainerAllocator> & v)
00152 {
00153 s << indent << "data: ";
00154 s << std::endl;
00155 Printer< ::pr2_gripper_sensor_msgs::PR2GripperEventDetectorData_<ContainerAllocator> >::stream(s, indent + " ", v.data);
00156 }
00157 };
00158
00159
00160 }
00161 }
00162
00163 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPEREVENTDETECTORRESULT_H
00164