PR2GripperSensorRTState.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-pr2_object_manipulation/doc_stacks/2014-10-06_11-30-38.833395/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   typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> > Ptr;
00044   typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator>  const> ConstPtr;
00045   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00046 }; // struct PR2GripperSensorRTState
00047 typedef  ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<std::allocator<void> > PR2GripperSensorRTState;
00048 
00049 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState> PR2GripperSensorRTStatePtr;
00050 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState const> PR2GripperSensorRTStateConstPtr;
00051 
00052 
00053 template<typename ContainerAllocator>
00054 std::ostream& operator<<(std::ostream& s, const  ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> & v)
00055 {
00056   ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> >::stream(s, "", v);
00057   return s;}
00058 
00059 } // namespace pr2_gripper_sensor_msgs
00060 
00061 namespace ros
00062 {
00063 namespace message_traits
00064 {
00065 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> > : public TrueType {};
00066 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator>  const> : public TrueType {};
00067 template<class ContainerAllocator>
00068 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> > {
00069   static const char* value() 
00070   {
00071     return "8109436c1f7237c52c00d885ed5755d7";
00072   }
00073 
00074   static const char* value(const  ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> &) { return value(); } 
00075   static const uint64_t static_value1 = 0x8109436c1f7237c5ULL;
00076   static const uint64_t static_value2 = 0x2c00d885ed5755d7ULL;
00077 };
00078 
00079 template<class ContainerAllocator>
00080 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> > {
00081   static const char* value() 
00082   {
00083     return "pr2_gripper_sensor_msgs/PR2GripperSensorRTState";
00084   }
00085 
00086   static const char* value(const  ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> &) { return value(); } 
00087 };
00088 
00089 template<class ContainerAllocator>
00090 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> > {
00091   static const char* value() 
00092   {
00093     return "# 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::PR2GripperSensorRTState_<ContainerAllocator> &) { return value(); } 
00106 };
00107 
00108 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> > : public TrueType {};
00109 } // namespace message_traits
00110 } // namespace ros
00111 
00112 namespace ros
00113 {
00114 namespace serialization
00115 {
00116 
00117 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> >
00118 {
00119   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00120   {
00121     stream.next(m.realtime_controller_state);
00122   }
00123 
00124   ROS_DECLARE_ALLINONE_SERIALIZER;
00125 }; // struct PR2GripperSensorRTState_
00126 } // namespace serialization
00127 } // namespace ros
00128 
00129 namespace ros
00130 {
00131 namespace message_operations
00132 {
00133 
00134 template<class ContainerAllocator>
00135 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> >
00136 {
00137   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> & v) 
00138   {
00139     s << indent << "realtime_controller_state: ";
00140     Printer<int8_t>::stream(s, indent + "  ", v.realtime_controller_state);
00141   }
00142 };
00143 
00144 
00145 } // namespace message_operations
00146 } // namespace ros
00147 
00148 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERSENSORRTSTATE_H
00149 


pr2_gripper_sensor_msgs
Author(s): Joe Romano
autogenerated on Mon Oct 6 2014 12:17:33