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