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