PR2GripperFindContactCommand.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-pr2_object_manipulation/doc_stacks/2014-01-03_11-39-44.427894/pr2_object_manipulation/manipulation/pr2_gripper_sensor_msgs/msg/PR2GripperFindContactCommand.msg */
00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFINDCONTACTCOMMAND_H
00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFINDCONTACTCOMMAND_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 PR2GripperFindContactCommand_ {
00022   typedef PR2GripperFindContactCommand_<ContainerAllocator> Type;
00023 
00024   PR2GripperFindContactCommand_()
00025   : zero_fingertip_sensors(false)
00026   , contact_conditions(0)
00027   {
00028   }
00029 
00030   PR2GripperFindContactCommand_(const ContainerAllocator& _alloc)
00031   : zero_fingertip_sensors(false)
00032   , contact_conditions(0)
00033   {
00034   }
00035 
00036   typedef uint8_t _zero_fingertip_sensors_type;
00037   uint8_t zero_fingertip_sensors;
00038 
00039   typedef int8_t _contact_conditions_type;
00040   int8_t contact_conditions;
00041 
00042   enum { BOTH = 0 };
00043   enum { LEFT = 1 };
00044   enum { RIGHT = 2 };
00045   enum { EITHER = 3 };
00046 
00047   typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand_<ContainerAllocator> > Ptr;
00048   typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand_<ContainerAllocator>  const> ConstPtr;
00049   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00050 }; // struct PR2GripperFindContactCommand
00051 typedef  ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand_<std::allocator<void> > PR2GripperFindContactCommand;
00052 
00053 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand> PR2GripperFindContactCommandPtr;
00054 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand const> PR2GripperFindContactCommandConstPtr;
00055 
00056 
00057 template<typename ContainerAllocator>
00058 std::ostream& operator<<(std::ostream& s, const  ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand_<ContainerAllocator> & v)
00059 {
00060   ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand_<ContainerAllocator> >::stream(s, "", v);
00061   return s;}
00062 
00063 } // namespace pr2_gripper_sensor_msgs
00064 
00065 namespace ros
00066 {
00067 namespace message_traits
00068 {
00069 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand_<ContainerAllocator> > : public TrueType {};
00070 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand_<ContainerAllocator>  const> : public TrueType {};
00071 template<class ContainerAllocator>
00072 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand_<ContainerAllocator> > {
00073   static const char* value() 
00074   {
00075     return "4a38a1a8e495aae86921ef2b292ec260";
00076   }
00077 
00078   static const char* value(const  ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand_<ContainerAllocator> &) { return value(); } 
00079   static const uint64_t static_value1 = 0x4a38a1a8e495aae8ULL;
00080   static const uint64_t static_value2 = 0x6921ef2b292ec260ULL;
00081 };
00082 
00083 template<class ContainerAllocator>
00084 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand_<ContainerAllocator> > {
00085   static const char* value() 
00086   {
00087     return "pr2_gripper_sensor_msgs/PR2GripperFindContactCommand";
00088   }
00089 
00090   static const char* value(const  ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand_<ContainerAllocator> &) { return value(); } 
00091 };
00092 
00093 template<class ContainerAllocator>
00094 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand_<ContainerAllocator> > {
00095   static const char* value() 
00096   {
00097     return "# set true if you want to calibrate the fingertip sensors on the start\n\
00098 # of the find_contact action. While this is not necessary (and\n\
00099 # the default value will not calibrate the sensors) for best \n\
00100 # performance it is recommended that you set this to true each time \n\
00101 # you are calling find_contact and are confident the fingertips are \n\
00102 # not touching anything\n\
00103 # NOTE: SHOULD ONLY BE TRUE WHEN BOTH FINGERS ARE TOUCHING NOTHING\n\
00104 bool zero_fingertip_sensors\n\
00105 \n\
00106 # the finger contact conditions that determine what our goal is\n\
00107 # Leaving this field blank will result in the robot closing until\n\
00108 # contact on BOTH fingers is achieved\n\
00109 int8 contact_conditions\n\
00110 \n\
00111 # predefined values for the above contact_conditions variable\n\
00112 int8 BOTH = 0   # both fingers must make contact\n\
00113 int8 LEFT = 1   # just the left finger \n\
00114 int8 RIGHT = 2  # just the right finger\n\
00115 int8 EITHER = 3 # either finger, we don't care which\n\
00116 \n\
00117 ";
00118   }
00119 
00120   static const char* value(const  ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand_<ContainerAllocator> &) { return value(); } 
00121 };
00122 
00123 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand_<ContainerAllocator> > : public TrueType {};
00124 } // namespace message_traits
00125 } // namespace ros
00126 
00127 namespace ros
00128 {
00129 namespace serialization
00130 {
00131 
00132 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand_<ContainerAllocator> >
00133 {
00134   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00135   {
00136     stream.next(m.zero_fingertip_sensors);
00137     stream.next(m.contact_conditions);
00138   }
00139 
00140   ROS_DECLARE_ALLINONE_SERIALIZER;
00141 }; // struct PR2GripperFindContactCommand_
00142 } // namespace serialization
00143 } // namespace ros
00144 
00145 namespace ros
00146 {
00147 namespace message_operations
00148 {
00149 
00150 template<class ContainerAllocator>
00151 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand_<ContainerAllocator> >
00152 {
00153   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::pr2_gripper_sensor_msgs::PR2GripperFindContactCommand_<ContainerAllocator> & v) 
00154   {
00155     s << indent << "zero_fingertip_sensors: ";
00156     Printer<uint8_t>::stream(s, indent + "  ", v.zero_fingertip_sensors);
00157     s << indent << "contact_conditions: ";
00158     Printer<int8_t>::stream(s, indent + "  ", v.contact_conditions);
00159   }
00160 };
00161 
00162 
00163 } // namespace message_operations
00164 } // namespace ros
00165 
00166 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFINDCONTACTCOMMAND_H
00167 


pr2_gripper_sensor_msgs
Author(s): Joe Romano
autogenerated on Fri Jan 3 2014 11:52:59