PressureInfo.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-pr2_ethercat_drivers/doc_stacks/2014-01-02_11-37-30.654794/pr2_ethercat_drivers/fingertip_pressure/msg/PressureInfo.msg */
00002 #ifndef FINGERTIP_PRESSURE_MESSAGE_PRESSUREINFO_H
00003 #define FINGERTIP_PRESSURE_MESSAGE_PRESSUREINFO_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 "fingertip_pressure/PressureInfoElement.h"
00018 
00019 namespace fingertip_pressure
00020 {
00021 template <class ContainerAllocator>
00022 struct PressureInfo_ {
00023   typedef PressureInfo_<ContainerAllocator> Type;
00024 
00025   PressureInfo_()
00026   : sensor()
00027   {
00028   }
00029 
00030   PressureInfo_(const ContainerAllocator& _alloc)
00031   : sensor(_alloc)
00032   {
00033   }
00034 
00035   typedef std::vector< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> >::other >  _sensor_type;
00036   std::vector< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> >::other >  sensor;
00037 
00038 
00039   typedef boost::shared_ptr< ::fingertip_pressure::PressureInfo_<ContainerAllocator> > Ptr;
00040   typedef boost::shared_ptr< ::fingertip_pressure::PressureInfo_<ContainerAllocator>  const> ConstPtr;
00041   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00042 }; // struct PressureInfo
00043 typedef  ::fingertip_pressure::PressureInfo_<std::allocator<void> > PressureInfo;
00044 
00045 typedef boost::shared_ptr< ::fingertip_pressure::PressureInfo> PressureInfoPtr;
00046 typedef boost::shared_ptr< ::fingertip_pressure::PressureInfo const> PressureInfoConstPtr;
00047 
00048 
00049 template<typename ContainerAllocator>
00050 std::ostream& operator<<(std::ostream& s, const  ::fingertip_pressure::PressureInfo_<ContainerAllocator> & v)
00051 {
00052   ros::message_operations::Printer< ::fingertip_pressure::PressureInfo_<ContainerAllocator> >::stream(s, "", v);
00053   return s;}
00054 
00055 } // namespace fingertip_pressure
00056 
00057 namespace ros
00058 {
00059 namespace message_traits
00060 {
00061 template<class ContainerAllocator> struct IsMessage< ::fingertip_pressure::PressureInfo_<ContainerAllocator> > : public TrueType {};
00062 template<class ContainerAllocator> struct IsMessage< ::fingertip_pressure::PressureInfo_<ContainerAllocator>  const> : public TrueType {};
00063 template<class ContainerAllocator>
00064 struct MD5Sum< ::fingertip_pressure::PressureInfo_<ContainerAllocator> > {
00065   static const char* value() 
00066   {
00067     return "a11fc5bae3534aa023741e378743af5b";
00068   }
00069 
00070   static const char* value(const  ::fingertip_pressure::PressureInfo_<ContainerAllocator> &) { return value(); } 
00071   static const uint64_t static_value1 = 0xa11fc5bae3534aa0ULL;
00072   static const uint64_t static_value2 = 0x23741e378743af5bULL;
00073 };
00074 
00075 template<class ContainerAllocator>
00076 struct DataType< ::fingertip_pressure::PressureInfo_<ContainerAllocator> > {
00077   static const char* value() 
00078   {
00079     return "fingertip_pressure/PressureInfo";
00080   }
00081 
00082   static const char* value(const  ::fingertip_pressure::PressureInfo_<ContainerAllocator> &) { return value(); } 
00083 };
00084 
00085 template<class ContainerAllocator>
00086 struct Definition< ::fingertip_pressure::PressureInfo_<ContainerAllocator> > {
00087   static const char* value() 
00088   {
00089     return "PressureInfoElement[] sensor # List of pressure sensors for which information is being published\n\
00090 \n\
00091 ================================================================================\n\
00092 MSG: fingertip_pressure/PressureInfoElement\n\
00093 string frame_id # Frame ID\n\
00094 geometry_msgs/Vector3[] center # Corner of sensor (meters)\n\
00095 geometry_msgs/Vector3[] halfside1 # Half of one edge of sensor (meters)\n\
00096 geometry_msgs/Vector3[] halfside2 # Half of perpendicular edge of sensor (meters)\n\
00097 # Sensor corners are at center+-halfside1+-halfside2\n\
00098 # Cross product of halfside1 and halfside2 points out\n\
00099 float64[] force_per_unit # Multiply this by the raw sensor value to get a force\n\
00100 \n\
00101 ================================================================================\n\
00102 MSG: geometry_msgs/Vector3\n\
00103 # This represents a vector in free space. \n\
00104 \n\
00105 float64 x\n\
00106 float64 y\n\
00107 float64 z\n\
00108 ";
00109   }
00110 
00111   static const char* value(const  ::fingertip_pressure::PressureInfo_<ContainerAllocator> &) { return value(); } 
00112 };
00113 
00114 } // namespace message_traits
00115 } // namespace ros
00116 
00117 namespace ros
00118 {
00119 namespace serialization
00120 {
00121 
00122 template<class ContainerAllocator> struct Serializer< ::fingertip_pressure::PressureInfo_<ContainerAllocator> >
00123 {
00124   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00125   {
00126     stream.next(m.sensor);
00127   }
00128 
00129   ROS_DECLARE_ALLINONE_SERIALIZER;
00130 }; // struct PressureInfo_
00131 } // namespace serialization
00132 } // namespace ros
00133 
00134 namespace ros
00135 {
00136 namespace message_operations
00137 {
00138 
00139 template<class ContainerAllocator>
00140 struct Printer< ::fingertip_pressure::PressureInfo_<ContainerAllocator> >
00141 {
00142   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::fingertip_pressure::PressureInfo_<ContainerAllocator> & v) 
00143   {
00144     s << indent << "sensor[]" << std::endl;
00145     for (size_t i = 0; i < v.sensor.size(); ++i)
00146     {
00147       s << indent << "  sensor[" << i << "]: ";
00148       s << std::endl;
00149       s << indent;
00150       Printer< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> >::stream(s, indent + "    ", v.sensor[i]);
00151     }
00152   }
00153 };
00154 
00155 
00156 } // namespace message_operations
00157 } // namespace ros
00158 
00159 #endif // FINGERTIP_PRESSURE_MESSAGE_PRESSUREINFO_H
00160 


fingertip_pressure
Author(s): Blaise Gassend/blaise@willowgarage.com
autogenerated on Thu Jan 2 2014 11:39:26