FingerState.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-gt-ros-pkg/doc_stacks/2013-11-27_11-23-35.692702/hrl/hrl_behaviors/pr2_collision_monitor/msg/FingerState.msg */
00002 #ifndef PR2_COLLISION_MONITOR_MESSAGE_FINGERSTATE_H
00003 #define PR2_COLLISION_MONITOR_MESSAGE_FINGERSTATE_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_collision_monitor
00019 {
00020 template <class ContainerAllocator>
00021 struct FingerState_ {
00022   typedef FingerState_<ContainerAllocator> Type;
00023 
00024   FingerState_()
00025   : any_collision(false)
00026   , r_finger_tip()
00027   , l_finger_tip()
00028   {
00029   }
00030 
00031   FingerState_(const ContainerAllocator& _alloc)
00032   : any_collision(false)
00033   , r_finger_tip(_alloc)
00034   , l_finger_tip(_alloc)
00035   {
00036   }
00037 
00038   typedef uint8_t _any_collision_type;
00039   uint8_t any_collision;
00040 
00041   typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  _r_finger_tip_type;
00042   std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  r_finger_tip;
00043 
00044   typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  _l_finger_tip_type;
00045   std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  l_finger_tip;
00046 
00047 
00048   typedef boost::shared_ptr< ::pr2_collision_monitor::FingerState_<ContainerAllocator> > Ptr;
00049   typedef boost::shared_ptr< ::pr2_collision_monitor::FingerState_<ContainerAllocator>  const> ConstPtr;
00050   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 }; // struct FingerState
00052 typedef  ::pr2_collision_monitor::FingerState_<std::allocator<void> > FingerState;
00053 
00054 typedef boost::shared_ptr< ::pr2_collision_monitor::FingerState> FingerStatePtr;
00055 typedef boost::shared_ptr< ::pr2_collision_monitor::FingerState const> FingerStateConstPtr;
00056 
00057 
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const  ::pr2_collision_monitor::FingerState_<ContainerAllocator> & v)
00060 {
00061   ros::message_operations::Printer< ::pr2_collision_monitor::FingerState_<ContainerAllocator> >::stream(s, "", v);
00062   return s;}
00063 
00064 } // namespace pr2_collision_monitor
00065 
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::pr2_collision_monitor::FingerState_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::pr2_collision_monitor::FingerState_<ContainerAllocator>  const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::pr2_collision_monitor::FingerState_<ContainerAllocator> > {
00074   static const char* value() 
00075   {
00076     return "d60cf19982434fd444941f1ee656aa92";
00077   }
00078 
00079   static const char* value(const  ::pr2_collision_monitor::FingerState_<ContainerAllocator> &) { return value(); } 
00080   static const uint64_t static_value1 = 0xd60cf19982434fd4ULL;
00081   static const uint64_t static_value2 = 0x44941f1ee656aa92ULL;
00082 };
00083 
00084 template<class ContainerAllocator>
00085 struct DataType< ::pr2_collision_monitor::FingerState_<ContainerAllocator> > {
00086   static const char* value() 
00087   {
00088     return "pr2_collision_monitor/FingerState";
00089   }
00090 
00091   static const char* value(const  ::pr2_collision_monitor::FingerState_<ContainerAllocator> &) { return value(); } 
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct Definition< ::pr2_collision_monitor::FingerState_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "bool any_collision\n\
00099 bool[] r_finger_tip\n\
00100 bool[] l_finger_tip\n\
00101 \n\
00102 ";
00103   }
00104 
00105   static const char* value(const  ::pr2_collision_monitor::FingerState_<ContainerAllocator> &) { return value(); } 
00106 };
00107 
00108 } // namespace message_traits
00109 } // namespace ros
00110 
00111 namespace ros
00112 {
00113 namespace serialization
00114 {
00115 
00116 template<class ContainerAllocator> struct Serializer< ::pr2_collision_monitor::FingerState_<ContainerAllocator> >
00117 {
00118   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00119   {
00120     stream.next(m.any_collision);
00121     stream.next(m.r_finger_tip);
00122     stream.next(m.l_finger_tip);
00123   }
00124 
00125   ROS_DECLARE_ALLINONE_SERIALIZER;
00126 }; // struct FingerState_
00127 } // namespace serialization
00128 } // namespace ros
00129 
00130 namespace ros
00131 {
00132 namespace message_operations
00133 {
00134 
00135 template<class ContainerAllocator>
00136 struct Printer< ::pr2_collision_monitor::FingerState_<ContainerAllocator> >
00137 {
00138   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::pr2_collision_monitor::FingerState_<ContainerAllocator> & v) 
00139   {
00140     s << indent << "any_collision: ";
00141     Printer<uint8_t>::stream(s, indent + "  ", v.any_collision);
00142     s << indent << "r_finger_tip[]" << std::endl;
00143     for (size_t i = 0; i < v.r_finger_tip.size(); ++i)
00144     {
00145       s << indent << "  r_finger_tip[" << i << "]: ";
00146       Printer<uint8_t>::stream(s, indent + "  ", v.r_finger_tip[i]);
00147     }
00148     s << indent << "l_finger_tip[]" << std::endl;
00149     for (size_t i = 0; i < v.l_finger_tip.size(); ++i)
00150     {
00151       s << indent << "  l_finger_tip[" << i << "]: ";
00152       Printer<uint8_t>::stream(s, indent + "  ", v.l_finger_tip[i]);
00153     }
00154   }
00155 };
00156 
00157 
00158 } // namespace message_operations
00159 } // namespace ros
00160 
00161 #endif // PR2_COLLISION_MONITOR_MESSAGE_FINGERSTATE_H
00162 


pr2_collision_monitor
Author(s): Kelsey Hawkins, Advisor: Prof. Charlie Kemp (Healthcare Robotics Lab at Georgia Tech)
autogenerated on Wed Nov 27 2013 11:40:10