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 <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013
00014 namespace pr2_gripper_sensor_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct PR2GripperPressureData_ : public ros::Message
00018 {
00019 typedef PR2GripperPressureData_<ContainerAllocator> Type;
00020
00021 PR2GripperPressureData_()
00022 : pressure_left()
00023 , pressure_right()
00024 , rostime(0.0)
00025 {
00026 pressure_left.assign(0.0);
00027 pressure_right.assign(0.0);
00028 }
00029
00030 PR2GripperPressureData_(const ContainerAllocator& _alloc)
00031 : pressure_left()
00032 , pressure_right()
00033 , rostime(0.0)
00034 {
00035 pressure_left.assign(0.0);
00036 pressure_right.assign(0.0);
00037 }
00038
00039 typedef boost::array<double, 22> _pressure_left_type;
00040 boost::array<double, 22> pressure_left;
00041
00042 typedef boost::array<double, 22> _pressure_right_type;
00043 boost::array<double, 22> pressure_right;
00044
00045 typedef double _rostime_type;
00046 double rostime;
00047
00048
00049 ROS_DEPRECATED uint32_t get_pressure_left_size() const { return (uint32_t)pressure_left.size(); }
00050 ROS_DEPRECATED uint32_t get_pressure_right_size() const { return (uint32_t)pressure_right.size(); }
00051 private:
00052 static const char* __s_getDataType_() { return "pr2_gripper_sensor_msgs/PR2GripperPressureData"; }
00053 public:
00054 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00055
00056 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00057
00058 private:
00059 static const char* __s_getMD5Sum_() { return "b69255f5117bf05fdcd1e83d4e6ab779"; }
00060 public:
00061 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00062
00063 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00064
00065 private:
00066 static const char* __s_getMessageDefinition_() { 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\
00067 \n\
00068 # the pressure array for the left and right fingers\n\
00069 float64[22] pressure_left\n\
00070 float64[22] pressure_right\n\
00071 \n\
00072 float64 rostime\n\
00073 "; }
00074 public:
00075 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00076
00077 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00078
00079 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00080 {
00081 ros::serialization::OStream stream(write_ptr, 1000000000);
00082 ros::serialization::serialize(stream, pressure_left);
00083 ros::serialization::serialize(stream, pressure_right);
00084 ros::serialization::serialize(stream, rostime);
00085 return stream.getData();
00086 }
00087
00088 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00089 {
00090 ros::serialization::IStream stream(read_ptr, 1000000000);
00091 ros::serialization::deserialize(stream, pressure_left);
00092 ros::serialization::deserialize(stream, pressure_right);
00093 ros::serialization::deserialize(stream, rostime);
00094 return stream.getData();
00095 }
00096
00097 ROS_DEPRECATED virtual uint32_t serializationLength() const
00098 {
00099 uint32_t size = 0;
00100 size += ros::serialization::serializationLength(pressure_left);
00101 size += ros::serialization::serializationLength(pressure_right);
00102 size += ros::serialization::serializationLength(rostime);
00103 return size;
00104 }
00105
00106 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> > Ptr;
00107 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> const> ConstPtr;
00108 };
00109 typedef ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<std::allocator<void> > PR2GripperPressureData;
00110
00111 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperPressureData> PR2GripperPressureDataPtr;
00112 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperPressureData const> PR2GripperPressureDataConstPtr;
00113
00114
00115 template<typename ContainerAllocator>
00116 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> & v)
00117 {
00118 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> >::stream(s, "", v);
00119 return s;}
00120
00121 }
00122
00123 namespace ros
00124 {
00125 namespace message_traits
00126 {
00127 template<class ContainerAllocator>
00128 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> > {
00129 static const char* value()
00130 {
00131 return "b69255f5117bf05fdcd1e83d4e6ab779";
00132 }
00133
00134 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> &) { return value(); }
00135 static const uint64_t static_value1 = 0xb69255f5117bf05fULL;
00136 static const uint64_t static_value2 = 0xdcd1e83d4e6ab779ULL;
00137 };
00138
00139 template<class ContainerAllocator>
00140 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> > {
00141 static const char* value()
00142 {
00143 return "pr2_gripper_sensor_msgs/PR2GripperPressureData";
00144 }
00145
00146 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> &) { return value(); }
00147 };
00148
00149 template<class ContainerAllocator>
00150 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> > {
00151 static const char* value()
00152 {
00153 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\
00154 \n\
00155 # the pressure array for the left and right fingers\n\
00156 float64[22] pressure_left\n\
00157 float64[22] pressure_right\n\
00158 \n\
00159 float64 rostime\n\
00160 ";
00161 }
00162
00163 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> &) { return value(); }
00164 };
00165
00166 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> > : public TrueType {};
00167 }
00168 }
00169
00170 namespace ros
00171 {
00172 namespace serialization
00173 {
00174
00175 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> >
00176 {
00177 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00178 {
00179 stream.next(m.pressure_left);
00180 stream.next(m.pressure_right);
00181 stream.next(m.rostime);
00182 }
00183
00184 ROS_DECLARE_ALLINONE_SERIALIZER;
00185 };
00186 }
00187 }
00188
00189 namespace ros
00190 {
00191 namespace message_operations
00192 {
00193
00194 template<class ContainerAllocator>
00195 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> >
00196 {
00197 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperPressureData_<ContainerAllocator> & v)
00198 {
00199 s << indent << "pressure_left[]" << std::endl;
00200 for (size_t i = 0; i < v.pressure_left.size(); ++i)
00201 {
00202 s << indent << " pressure_left[" << i << "]: ";
00203 Printer<double>::stream(s, indent + " ", v.pressure_left[i]);
00204 }
00205 s << indent << "pressure_right[]" << std::endl;
00206 for (size_t i = 0; i < v.pressure_right.size(); ++i)
00207 {
00208 s << indent << " pressure_right[" << i << "]: ";
00209 Printer<double>::stream(s, indent + " ", v.pressure_right[i]);
00210 }
00211 s << indent << "rostime: ";
00212 Printer<double>::stream(s, indent + " ", v.rostime);
00213 }
00214 };
00215
00216
00217 }
00218 }
00219
00220 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERPRESSUREDATA_H
00221