Go to the documentation of this file.00001
00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERPRESSUREDATA_H
00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERPRESSUREDATA_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 PR2GripperPressureData_ {
00022 typedef PR2GripperPressureData_<ContainerAllocator> Type;
00023
00024 PR2GripperPressureData_()
00025 : pressure_left()
00026 , pressure_right()
00027 , rostime(0.0)
00028 {
00029 pressure_left.assign(0.0);
00030 pressure_right.assign(0.0);
00031 }
00032
00033 PR2GripperPressureData_(const ContainerAllocator& _alloc)
00034 : pressure_left()
00035 , pressure_right()
00036 , rostime(0.0)
00037 {
00038 pressure_left.assign(0.0);
00039 pressure_right.assign(0.0);
00040 }
00041
00042 typedef boost::array<double, 22> _pressure_left_type;
00043 boost::array<double, 22> pressure_left;
00044
00045 typedef boost::array<double, 22> _pressure_right_type;
00046 boost::array<double, 22> pressure_right;
00047
00048 typedef double _rostime_type;
00049 double rostime;
00050
00051
00052 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> > Ptr;
00053 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> const> ConstPtr;
00054 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00055 };
00056 typedef ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<std::allocator<void> > PR2GripperPressureData;
00057
00058 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperPressureData> PR2GripperPressureDataPtr;
00059 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperPressureData const> PR2GripperPressureDataConstPtr;
00060
00061
00062 template<typename ContainerAllocator>
00063 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> & v)
00064 {
00065 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> >::stream(s, "", v);
00066 return s;}
00067
00068 }
00069
00070 namespace ros
00071 {
00072 namespace message_traits
00073 {
00074 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> > : public TrueType {};
00075 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> const> : public TrueType {};
00076 template<class ContainerAllocator>
00077 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> > {
00078 static const char* value()
00079 {
00080 return "b69255f5117bf05fdcd1e83d4e6ab779";
00081 }
00082
00083 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> &) { return value(); }
00084 static const uint64_t static_value1 = 0xb69255f5117bf05fULL;
00085 static const uint64_t static_value2 = 0xdcd1e83d4e6ab779ULL;
00086 };
00087
00088 template<class ContainerAllocator>
00089 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> > {
00090 static const char* value()
00091 {
00092 return "pr2_gripper_sensor_msgs/PR2GripperPressureData";
00093 }
00094
00095 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> &) { return value(); }
00096 };
00097
00098 template<class ContainerAllocator>
00099 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> > {
00100 static const char* value()
00101 {
00102 return "# Note: This message is intended for internal package use only and is NOT a part of the public API. This data is not publicaly published in ROS.\n\
00103 \n\
00104 # the pressure array for the left and right fingers\n\
00105 float64[22] pressure_left\n\
00106 float64[22] pressure_right\n\
00107 \n\
00108 float64 rostime\n\
00109 ";
00110 }
00111
00112 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> &) { return value(); }
00113 };
00114
00115 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> > : public TrueType {};
00116 }
00117 }
00118
00119 namespace ros
00120 {
00121 namespace serialization
00122 {
00123
00124 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> >
00125 {
00126 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00127 {
00128 stream.next(m.pressure_left);
00129 stream.next(m.pressure_right);
00130 stream.next(m.rostime);
00131 }
00132
00133 ROS_DECLARE_ALLINONE_SERIALIZER;
00134 };
00135 }
00136 }
00137
00138 namespace ros
00139 {
00140 namespace message_operations
00141 {
00142
00143 template<class ContainerAllocator>
00144 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> >
00145 {
00146 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> & v)
00147 {
00148 s << indent << "pressure_left[]" << std::endl;
00149 for (size_t i = 0; i < v.pressure_left.size(); ++i)
00150 {
00151 s << indent << " pressure_left[" << i << "]: ";
00152 Printer<double>::stream(s, indent + " ", v.pressure_left[i]);
00153 }
00154 s << indent << "pressure_right[]" << std::endl;
00155 for (size_t i = 0; i < v.pressure_right.size(); ++i)
00156 {
00157 s << indent << " pressure_right[" << i << "]: ";
00158 Printer<double>::stream(s, indent + " ", v.pressure_right[i]);
00159 }
00160 s << indent << "rostime: ";
00161 Printer<double>::stream(s, indent + " ", v.rostime);
00162 }
00163 };
00164
00165
00166 }
00167 }
00168
00169 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERPRESSUREDATA_H
00170