PressureInfoElement.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/PressureInfoElement.msg */
00002 #ifndef FINGERTIP_PRESSURE_MESSAGE_PRESSUREINFOELEMENT_H
00003 #define FINGERTIP_PRESSURE_MESSAGE_PRESSUREINFOELEMENT_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 "geometry_msgs/Vector3.h"
00018 #include "geometry_msgs/Vector3.h"
00019 #include "geometry_msgs/Vector3.h"
00020 
00021 namespace fingertip_pressure
00022 {
00023 template <class ContainerAllocator>
00024 struct PressureInfoElement_ {
00025   typedef PressureInfoElement_<ContainerAllocator> Type;
00026 
00027   PressureInfoElement_()
00028   : frame_id()
00029   , center()
00030   , halfside1()
00031   , halfside2()
00032   , force_per_unit()
00033   {
00034   }
00035 
00036   PressureInfoElement_(const ContainerAllocator& _alloc)
00037   : frame_id(_alloc)
00038   , center(_alloc)
00039   , halfside1(_alloc)
00040   , halfside2(_alloc)
00041   , force_per_unit(_alloc)
00042   {
00043   }
00044 
00045   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _frame_id_type;
00046   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  frame_id;
00047 
00048   typedef std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other >  _center_type;
00049   std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other >  center;
00050 
00051   typedef std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other >  _halfside1_type;
00052   std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other >  halfside1;
00053 
00054   typedef std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other >  _halfside2_type;
00055   std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other >  halfside2;
00056 
00057   typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other >  _force_per_unit_type;
00058   std::vector<double, typename ContainerAllocator::template rebind<double>::other >  force_per_unit;
00059 
00060 
00061   typedef boost::shared_ptr< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> > Ptr;
00062   typedef boost::shared_ptr< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator>  const> ConstPtr;
00063   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00064 }; // struct PressureInfoElement
00065 typedef  ::fingertip_pressure::PressureInfoElement_<std::allocator<void> > PressureInfoElement;
00066 
00067 typedef boost::shared_ptr< ::fingertip_pressure::PressureInfoElement> PressureInfoElementPtr;
00068 typedef boost::shared_ptr< ::fingertip_pressure::PressureInfoElement const> PressureInfoElementConstPtr;
00069 
00070 
00071 template<typename ContainerAllocator>
00072 std::ostream& operator<<(std::ostream& s, const  ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> & v)
00073 {
00074   ros::message_operations::Printer< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> >::stream(s, "", v);
00075   return s;}
00076 
00077 } // namespace fingertip_pressure
00078 
00079 namespace ros
00080 {
00081 namespace message_traits
00082 {
00083 template<class ContainerAllocator> struct IsMessage< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> > : public TrueType {};
00084 template<class ContainerAllocator> struct IsMessage< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator>  const> : public TrueType {};
00085 template<class ContainerAllocator>
00086 struct MD5Sum< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> > {
00087   static const char* value() 
00088   {
00089     return "1cb486bb542ab85e1ff8d84fe9cc899f";
00090   }
00091 
00092   static const char* value(const  ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> &) { return value(); } 
00093   static const uint64_t static_value1 = 0x1cb486bb542ab85eULL;
00094   static const uint64_t static_value2 = 0x1ff8d84fe9cc899fULL;
00095 };
00096 
00097 template<class ContainerAllocator>
00098 struct DataType< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> > {
00099   static const char* value() 
00100   {
00101     return "fingertip_pressure/PressureInfoElement";
00102   }
00103 
00104   static const char* value(const  ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> &) { return value(); } 
00105 };
00106 
00107 template<class ContainerAllocator>
00108 struct Definition< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> > {
00109   static const char* value() 
00110   {
00111     return "string frame_id # Frame ID\n\
00112 geometry_msgs/Vector3[] center # Corner of sensor (meters)\n\
00113 geometry_msgs/Vector3[] halfside1 # Half of one edge of sensor (meters)\n\
00114 geometry_msgs/Vector3[] halfside2 # Half of perpendicular edge of sensor (meters)\n\
00115 # Sensor corners are at center+-halfside1+-halfside2\n\
00116 # Cross product of halfside1 and halfside2 points out\n\
00117 float64[] force_per_unit # Multiply this by the raw sensor value to get a force\n\
00118 \n\
00119 ================================================================================\n\
00120 MSG: geometry_msgs/Vector3\n\
00121 # This represents a vector in free space. \n\
00122 \n\
00123 float64 x\n\
00124 float64 y\n\
00125 float64 z\n\
00126 ";
00127   }
00128 
00129   static const char* value(const  ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> &) { return value(); } 
00130 };
00131 
00132 } // namespace message_traits
00133 } // namespace ros
00134 
00135 namespace ros
00136 {
00137 namespace serialization
00138 {
00139 
00140 template<class ContainerAllocator> struct Serializer< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> >
00141 {
00142   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00143   {
00144     stream.next(m.frame_id);
00145     stream.next(m.center);
00146     stream.next(m.halfside1);
00147     stream.next(m.halfside2);
00148     stream.next(m.force_per_unit);
00149   }
00150 
00151   ROS_DECLARE_ALLINONE_SERIALIZER;
00152 }; // struct PressureInfoElement_
00153 } // namespace serialization
00154 } // namespace ros
00155 
00156 namespace ros
00157 {
00158 namespace message_operations
00159 {
00160 
00161 template<class ContainerAllocator>
00162 struct Printer< ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> >
00163 {
00164   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::fingertip_pressure::PressureInfoElement_<ContainerAllocator> & v) 
00165   {
00166     s << indent << "frame_id: ";
00167     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.frame_id);
00168     s << indent << "center[]" << std::endl;
00169     for (size_t i = 0; i < v.center.size(); ++i)
00170     {
00171       s << indent << "  center[" << i << "]: ";
00172       s << std::endl;
00173       s << indent;
00174       Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + "    ", v.center[i]);
00175     }
00176     s << indent << "halfside1[]" << std::endl;
00177     for (size_t i = 0; i < v.halfside1.size(); ++i)
00178     {
00179       s << indent << "  halfside1[" << i << "]: ";
00180       s << std::endl;
00181       s << indent;
00182       Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + "    ", v.halfside1[i]);
00183     }
00184     s << indent << "halfside2[]" << std::endl;
00185     for (size_t i = 0; i < v.halfside2.size(); ++i)
00186     {
00187       s << indent << "  halfside2[" << i << "]: ";
00188       s << std::endl;
00189       s << indent;
00190       Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + "    ", v.halfside2[i]);
00191     }
00192     s << indent << "force_per_unit[]" << std::endl;
00193     for (size_t i = 0; i < v.force_per_unit.size(); ++i)
00194     {
00195       s << indent << "  force_per_unit[" << i << "]: ";
00196       Printer<double>::stream(s, indent + "  ", v.force_per_unit[i]);
00197     }
00198   }
00199 };
00200 
00201 
00202 } // namespace message_operations
00203 } // namespace ros
00204 
00205 #endif // FINGERTIP_PRESSURE_MESSAGE_PRESSUREINFOELEMENT_H
00206 


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