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