00001
00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERGRABRESULT_H
00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERGRABRESULT_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/PR2GripperGrabData.h"
00014
00015 namespace pr2_gripper_sensor_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct PR2GripperGrabResult_ : public ros::Message
00019 {
00020 typedef PR2GripperGrabResult_<ContainerAllocator> Type;
00021
00022 PR2GripperGrabResult_()
00023 : data()
00024 {
00025 }
00026
00027 PR2GripperGrabResult_(const ContainerAllocator& _alloc)
00028 : data(_alloc)
00029 {
00030 }
00031
00032 typedef ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> _data_type;
00033 ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> data;
00034
00035
00036 private:
00037 static const char* __s_getDataType_() { return "pr2_gripper_sensor_msgs/PR2GripperGrabResult"; }
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 "b4b68d48ac7d07bdb11b7f3badfa9266"; }
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 #result\n\
00053 PR2GripperGrabData data\n\
00054 \n\
00055 ================================================================================\n\
00056 MSG: pr2_gripper_sensor_msgs/PR2GripperGrabData\n\
00057 # the control state of our realtime controller\n\
00058 PR2GripperSensorRTState rtstate\n\
00059 ================================================================================\n\
00060 MSG: pr2_gripper_sensor_msgs/PR2GripperSensorRTState\n\
00061 # the control state of our realtime controller\n\
00062 int8 realtime_controller_state\n\
00063 \n\
00064 # predefined values to indicate our realtime_controller_state\n\
00065 int8 DISABLED = 0\n\
00066 int8 POSITION_SERVO = 3\n\
00067 int8 FORCE_SERVO = 4\n\
00068 int8 FIND_CONTACT = 5\n\
00069 int8 SLIP_SERVO = 6\n\
00070 "; }
00071 public:
00072 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00073
00074 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00075
00076 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00077 {
00078 ros::serialization::OStream stream(write_ptr, 1000000000);
00079 ros::serialization::serialize(stream, data);
00080 return stream.getData();
00081 }
00082
00083 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00084 {
00085 ros::serialization::IStream stream(read_ptr, 1000000000);
00086 ros::serialization::deserialize(stream, data);
00087 return stream.getData();
00088 }
00089
00090 ROS_DEPRECATED virtual uint32_t serializationLength() const
00091 {
00092 uint32_t size = 0;
00093 size += ros::serialization::serializationLength(data);
00094 return size;
00095 }
00096
00097 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperGrabResult_<ContainerAllocator> > Ptr;
00098 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperGrabResult_<ContainerAllocator> const> ConstPtr;
00099 };
00100 typedef ::pr2_gripper_sensor_msgs::PR2GripperGrabResult_<std::allocator<void> > PR2GripperGrabResult;
00101
00102 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperGrabResult> PR2GripperGrabResultPtr;
00103 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperGrabResult const> PR2GripperGrabResultConstPtr;
00104
00105
00106 template<typename ContainerAllocator>
00107 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperGrabResult_<ContainerAllocator> & v)
00108 {
00109 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperGrabResult_<ContainerAllocator> >::stream(s, "", v);
00110 return s;}
00111
00112 }
00113
00114 namespace ros
00115 {
00116 namespace message_traits
00117 {
00118 template<class ContainerAllocator>
00119 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperGrabResult_<ContainerAllocator> > {
00120 static const char* value()
00121 {
00122 return "b4b68d48ac7d07bdb11b7f3badfa9266";
00123 }
00124
00125 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperGrabResult_<ContainerAllocator> &) { return value(); }
00126 static const uint64_t static_value1 = 0xb4b68d48ac7d07bdULL;
00127 static const uint64_t static_value2 = 0xb11b7f3badfa9266ULL;
00128 };
00129
00130 template<class ContainerAllocator>
00131 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperGrabResult_<ContainerAllocator> > {
00132 static const char* value()
00133 {
00134 return "pr2_gripper_sensor_msgs/PR2GripperGrabResult";
00135 }
00136
00137 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperGrabResult_<ContainerAllocator> &) { return value(); }
00138 };
00139
00140 template<class ContainerAllocator>
00141 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperGrabResult_<ContainerAllocator> > {
00142 static const char* value()
00143 {
00144 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00145 #result\n\
00146 PR2GripperGrabData data\n\
00147 \n\
00148 ================================================================================\n\
00149 MSG: pr2_gripper_sensor_msgs/PR2GripperGrabData\n\
00150 # the control state of our realtime controller\n\
00151 PR2GripperSensorRTState rtstate\n\
00152 ================================================================================\n\
00153 MSG: pr2_gripper_sensor_msgs/PR2GripperSensorRTState\n\
00154 # the control state of our realtime controller\n\
00155 int8 realtime_controller_state\n\
00156 \n\
00157 # predefined values to indicate our realtime_controller_state\n\
00158 int8 DISABLED = 0\n\
00159 int8 POSITION_SERVO = 3\n\
00160 int8 FORCE_SERVO = 4\n\
00161 int8 FIND_CONTACT = 5\n\
00162 int8 SLIP_SERVO = 6\n\
00163 ";
00164 }
00165
00166 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperGrabResult_<ContainerAllocator> &) { return value(); }
00167 };
00168
00169 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperGrabResult_<ContainerAllocator> > : public TrueType {};
00170 }
00171 }
00172
00173 namespace ros
00174 {
00175 namespace serialization
00176 {
00177
00178 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperGrabResult_<ContainerAllocator> >
00179 {
00180 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00181 {
00182 stream.next(m.data);
00183 }
00184
00185 ROS_DECLARE_ALLINONE_SERIALIZER;
00186 };
00187 }
00188 }
00189
00190 namespace ros
00191 {
00192 namespace message_operations
00193 {
00194
00195 template<class ContainerAllocator>
00196 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperGrabResult_<ContainerAllocator> >
00197 {
00198 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperGrabResult_<ContainerAllocator> & v)
00199 {
00200 s << indent << "data: ";
00201 s << std::endl;
00202 Printer< ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> >::stream(s, indent + " ", v.data);
00203 }
00204 };
00205
00206
00207 }
00208 }
00209
00210 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERGRABRESULT_H
00211