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