Go to the documentation of this file.00001
00002 #ifndef PR2_MSGS_MESSAGE_PRESSURESTATE_H
00003 #define PR2_MSGS_MESSAGE_PRESSURESTATE_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 "std_msgs/Header.h"
00018
00019 namespace pr2_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct PressureState_ {
00023 typedef PressureState_<ContainerAllocator> Type;
00024
00025 PressureState_()
00026 : header()
00027 , l_finger_tip()
00028 , r_finger_tip()
00029 {
00030 }
00031
00032 PressureState_(const ContainerAllocator& _alloc)
00033 : header(_alloc)
00034 , l_finger_tip(_alloc)
00035 , r_finger_tip(_alloc)
00036 {
00037 }
00038
00039 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00040 ::std_msgs::Header_<ContainerAllocator> header;
00041
00042 typedef std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other > _l_finger_tip_type;
00043 std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other > l_finger_tip;
00044
00045 typedef std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other > _r_finger_tip_type;
00046 std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other > r_finger_tip;
00047
00048
00049 typedef boost::shared_ptr< ::pr2_msgs::PressureState_<ContainerAllocator> > Ptr;
00050 typedef boost::shared_ptr< ::pr2_msgs::PressureState_<ContainerAllocator> const> ConstPtr;
00051 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00052 };
00053 typedef ::pr2_msgs::PressureState_<std::allocator<void> > PressureState;
00054
00055 typedef boost::shared_ptr< ::pr2_msgs::PressureState> PressureStatePtr;
00056 typedef boost::shared_ptr< ::pr2_msgs::PressureState const> PressureStateConstPtr;
00057
00058
00059 template<typename ContainerAllocator>
00060 std::ostream& operator<<(std::ostream& s, const ::pr2_msgs::PressureState_<ContainerAllocator> & v)
00061 {
00062 ros::message_operations::Printer< ::pr2_msgs::PressureState_<ContainerAllocator> >::stream(s, "", v);
00063 return s;}
00064
00065 }
00066
00067 namespace ros
00068 {
00069 namespace message_traits
00070 {
00071 template<class ContainerAllocator> struct IsMessage< ::pr2_msgs::PressureState_<ContainerAllocator> > : public TrueType {};
00072 template<class ContainerAllocator> struct IsMessage< ::pr2_msgs::PressureState_<ContainerAllocator> const> : public TrueType {};
00073 template<class ContainerAllocator>
00074 struct MD5Sum< ::pr2_msgs::PressureState_<ContainerAllocator> > {
00075 static const char* value()
00076 {
00077 return "756fb3b75fa8884524fd0789a78eb04b";
00078 }
00079
00080 static const char* value(const ::pr2_msgs::PressureState_<ContainerAllocator> &) { return value(); }
00081 static const uint64_t static_value1 = 0x756fb3b75fa88845ULL;
00082 static const uint64_t static_value2 = 0x24fd0789a78eb04bULL;
00083 };
00084
00085 template<class ContainerAllocator>
00086 struct DataType< ::pr2_msgs::PressureState_<ContainerAllocator> > {
00087 static const char* value()
00088 {
00089 return "pr2_msgs/PressureState";
00090 }
00091
00092 static const char* value(const ::pr2_msgs::PressureState_<ContainerAllocator> &) { return value(); }
00093 };
00094
00095 template<class ContainerAllocator>
00096 struct Definition< ::pr2_msgs::PressureState_<ContainerAllocator> > {
00097 static const char* value()
00098 {
00099 return "#Output from finger-tip pressure sensors on PR2\n\
00100 #Higher number correspond to more pressure, but there is no explicit unit and you will have to calibrate for offset\n\
00101 #The numbers reported are the raw values from the I2C hardware\n\
00102 \n\
00103 Header header\n\
00104 int16[] l_finger_tip\n\
00105 int16[] r_finger_tip\n\
00106 \n\
00107 ================================================================================\n\
00108 MSG: std_msgs/Header\n\
00109 # Standard metadata for higher-level stamped data types.\n\
00110 # This is generally used to communicate timestamped data \n\
00111 # in a particular coordinate frame.\n\
00112 # \n\
00113 # sequence ID: consecutively increasing ID \n\
00114 uint32 seq\n\
00115 #Two-integer timestamp that is expressed as:\n\
00116 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00117 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00118 # time-handling sugar is provided by the client library\n\
00119 time stamp\n\
00120 #Frame this data is associated with\n\
00121 # 0: no frame\n\
00122 # 1: global frame\n\
00123 string frame_id\n\
00124 \n\
00125 ";
00126 }
00127
00128 static const char* value(const ::pr2_msgs::PressureState_<ContainerAllocator> &) { return value(); }
00129 };
00130
00131 template<class ContainerAllocator> struct HasHeader< ::pr2_msgs::PressureState_<ContainerAllocator> > : public TrueType {};
00132 template<class ContainerAllocator> struct HasHeader< const ::pr2_msgs::PressureState_<ContainerAllocator> > : public TrueType {};
00133 }
00134 }
00135
00136 namespace ros
00137 {
00138 namespace serialization
00139 {
00140
00141 template<class ContainerAllocator> struct Serializer< ::pr2_msgs::PressureState_<ContainerAllocator> >
00142 {
00143 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00144 {
00145 stream.next(m.header);
00146 stream.next(m.l_finger_tip);
00147 stream.next(m.r_finger_tip);
00148 }
00149
00150 ROS_DECLARE_ALLINONE_SERIALIZER;
00151 };
00152 }
00153 }
00154
00155 namespace ros
00156 {
00157 namespace message_operations
00158 {
00159
00160 template<class ContainerAllocator>
00161 struct Printer< ::pr2_msgs::PressureState_<ContainerAllocator> >
00162 {
00163 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_msgs::PressureState_<ContainerAllocator> & v)
00164 {
00165 s << indent << "header: ";
00166 s << std::endl;
00167 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00168 s << indent << "l_finger_tip[]" << std::endl;
00169 for (size_t i = 0; i < v.l_finger_tip.size(); ++i)
00170 {
00171 s << indent << " l_finger_tip[" << i << "]: ";
00172 Printer<int16_t>::stream(s, indent + " ", v.l_finger_tip[i]);
00173 }
00174 s << indent << "r_finger_tip[]" << std::endl;
00175 for (size_t i = 0; i < v.r_finger_tip.size(); ++i)
00176 {
00177 s << indent << " r_finger_tip[" << i << "]: ";
00178 Printer<int16_t>::stream(s, indent + " ", v.r_finger_tip[i]);
00179 }
00180 }
00181 };
00182
00183
00184 }
00185 }
00186
00187 #endif // PR2_MSGS_MESSAGE_PRESSURESTATE_H
00188