Go to the documentation of this file.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 <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 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> > Ptr;
00040 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> const> ConstPtr;
00041 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00042 };
00043 typedef ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<std::allocator<void> > PR2GripperGrabData;
00044
00045 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperGrabData> PR2GripperGrabDataPtr;
00046 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperGrabData const> PR2GripperGrabDataConstPtr;
00047
00048
00049 template<typename ContainerAllocator>
00050 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> & v)
00051 {
00052 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> >::stream(s, "", v);
00053 return s;}
00054
00055 }
00056
00057 namespace ros
00058 {
00059 namespace message_traits
00060 {
00061 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> > : public TrueType {};
00062 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> const> : public TrueType {};
00063 template<class ContainerAllocator>
00064 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> > {
00065 static const char* value()
00066 {
00067 return "2c917fd7a48bc8daa7ae36787c8b7a82";
00068 }
00069
00070 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> &) { return value(); }
00071 static const uint64_t static_value1 = 0x2c917fd7a48bc8daULL;
00072 static const uint64_t static_value2 = 0xa7ae36787c8b7a82ULL;
00073 };
00074
00075 template<class ContainerAllocator>
00076 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> > {
00077 static const char* value()
00078 {
00079 return "pr2_gripper_sensor_msgs/PR2GripperGrabData";
00080 }
00081
00082 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> &) { return value(); }
00083 };
00084
00085 template<class ContainerAllocator>
00086 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> > {
00087 static const char* value()
00088 {
00089 return "# the control state of our realtime controller\n\
00090 PR2GripperSensorRTState rtstate\n\
00091 ================================================================================\n\
00092 MSG: pr2_gripper_sensor_msgs/PR2GripperSensorRTState\n\
00093 # the control state of our realtime controller\n\
00094 int8 realtime_controller_state\n\
00095 \n\
00096 # predefined values to indicate our realtime_controller_state\n\
00097 int8 DISABLED = 0\n\
00098 int8 POSITION_SERVO = 3\n\
00099 int8 FORCE_SERVO = 4\n\
00100 int8 FIND_CONTACT = 5\n\
00101 int8 SLIP_SERVO = 6\n\
00102 ";
00103 }
00104
00105 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> &) { return value(); }
00106 };
00107
00108 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> > : public TrueType {};
00109 }
00110 }
00111
00112 namespace ros
00113 {
00114 namespace serialization
00115 {
00116
00117 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> >
00118 {
00119 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00120 {
00121 stream.next(m.rtstate);
00122 }
00123
00124 ROS_DECLARE_ALLINONE_SERIALIZER;
00125 };
00126 }
00127 }
00128
00129 namespace ros
00130 {
00131 namespace message_operations
00132 {
00133
00134 template<class ContainerAllocator>
00135 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> >
00136 {
00137 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperGrabData_<ContainerAllocator> & v)
00138 {
00139 s << indent << "rtstate: ";
00140 s << std::endl;
00141 Printer< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> >::stream(s, indent + " ", v.rtstate);
00142 }
00143 };
00144
00145
00146 }
00147 }
00148
00149 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERGRABDATA_H
00150