$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/PR2GripperSensorRTState.msg */ 00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERSENSORRTSTATE_H 00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERSENSORRTSTATE_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 00018 namespace pr2_gripper_sensor_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct PR2GripperSensorRTState_ { 00022 typedef PR2GripperSensorRTState_<ContainerAllocator> Type; 00023 00024 PR2GripperSensorRTState_() 00025 : realtime_controller_state(0) 00026 { 00027 } 00028 00029 PR2GripperSensorRTState_(const ContainerAllocator& _alloc) 00030 : realtime_controller_state(0) 00031 { 00032 } 00033 00034 typedef int8_t _realtime_controller_state_type; 00035 int8_t realtime_controller_state; 00036 00037 enum { DISABLED = 0 }; 00038 enum { POSITION_SERVO = 3 }; 00039 enum { FORCE_SERVO = 4 }; 00040 enum { FIND_CONTACT = 5 }; 00041 enum { SLIP_SERVO = 6 }; 00042 00043 private: 00044 static const char* __s_getDataType_() { return "pr2_gripper_sensor_msgs/PR2GripperSensorRTState"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "8109436c1f7237c52c00d885ed5755d7"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getMessageDefinition_() { return "# 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, realtime_controller_state); 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, realtime_controller_state); 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(realtime_controller_state); 00091 return size; 00092 } 00093 00094 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> > Ptr; 00095 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> const> ConstPtr; 00096 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00097 }; // struct PR2GripperSensorRTState 00098 typedef ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<std::allocator<void> > PR2GripperSensorRTState; 00099 00100 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState> PR2GripperSensorRTStatePtr; 00101 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState const> PR2GripperSensorRTStateConstPtr; 00102 00103 00104 template<typename ContainerAllocator> 00105 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> & v) 00106 { 00107 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<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::PR2GripperSensorRTState_<ContainerAllocator> > : public TrueType {}; 00117 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> const> : public TrueType {}; 00118 template<class ContainerAllocator> 00119 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> > { 00120 static const char* value() 00121 { 00122 return "8109436c1f7237c52c00d885ed5755d7"; 00123 } 00124 00125 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> &) { return value(); } 00126 static const uint64_t static_value1 = 0x8109436c1f7237c5ULL; 00127 static const uint64_t static_value2 = 0x2c00d885ed5755d7ULL; 00128 }; 00129 00130 template<class ContainerAllocator> 00131 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> > { 00132 static const char* value() 00133 { 00134 return "pr2_gripper_sensor_msgs/PR2GripperSensorRTState"; 00135 } 00136 00137 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> &) { return value(); } 00138 }; 00139 00140 template<class ContainerAllocator> 00141 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> > { 00142 static const char* value() 00143 { 00144 return "# the control state of our realtime controller\n\ 00145 int8 realtime_controller_state\n\ 00146 \n\ 00147 # predefined values to indicate our realtime_controller_state\n\ 00148 int8 DISABLED = 0\n\ 00149 int8 POSITION_SERVO = 3\n\ 00150 int8 FORCE_SERVO = 4\n\ 00151 int8 FIND_CONTACT = 5\n\ 00152 int8 SLIP_SERVO = 6\n\ 00153 "; 00154 } 00155 00156 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> &) { return value(); } 00157 }; 00158 00159 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> > : public TrueType {}; 00160 } // namespace message_traits 00161 } // namespace ros 00162 00163 namespace ros 00164 { 00165 namespace serialization 00166 { 00167 00168 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> > 00169 { 00170 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00171 { 00172 stream.next(m.realtime_controller_state); 00173 } 00174 00175 ROS_DECLARE_ALLINONE_SERIALIZER; 00176 }; // struct PR2GripperSensorRTState_ 00177 } // namespace serialization 00178 } // namespace ros 00179 00180 namespace ros 00181 { 00182 namespace message_operations 00183 { 00184 00185 template<class ContainerAllocator> 00186 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> > 00187 { 00188 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> & v) 00189 { 00190 s << indent << "realtime_controller_state: "; 00191 Printer<int8_t>::stream(s, indent + " ", v.realtime_controller_state); 00192 } 00193 }; 00194 00195 00196 } // namespace message_operations 00197 } // namespace ros 00198 00199 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERSENSORRTSTATE_H 00200