$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_object_manipulation/doc_stacks/2013-03-05_12-10-38.333207/pr2_object_manipulation/manipulation/pr2_object_manipulation_msgs/msg/TestGripperPoseResult.msg */ 00002 #ifndef PR2_OBJECT_MANIPULATION_MSGS_MESSAGE_TESTGRIPPERPOSERESULT_H 00003 #define PR2_OBJECT_MANIPULATION_MSGS_MESSAGE_TESTGRIPPERPOSERESULT_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_object_manipulation_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct TestGripperPoseResult_ { 00022 typedef TestGripperPoseResult_<ContainerAllocator> Type; 00023 00024 TestGripperPoseResult_() 00025 : valid() 00026 { 00027 } 00028 00029 TestGripperPoseResult_(const ContainerAllocator& _alloc) 00030 : valid(_alloc) 00031 { 00032 } 00033 00034 typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _valid_type; 00035 std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > valid; 00036 00037 00038 ROS_DEPRECATED uint32_t get_valid_size() const { return (uint32_t)valid.size(); } 00039 ROS_DEPRECATED void set_valid_size(uint32_t size) { valid.resize((size_t)size); } 00040 ROS_DEPRECATED void get_valid_vec(std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) const { vec = this->valid; } 00041 ROS_DEPRECATED void set_valid_vec(const std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) { this->valid = vec; } 00042 private: 00043 static const char* __s_getDataType_() { return "pr2_object_manipulation_msgs/TestGripperPoseResult"; } 00044 public: 00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00046 00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00048 00049 private: 00050 static const char* __s_getMD5Sum_() { return "cfaed1ee6ab7b908dad0b6cb846159b6"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00053 00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00055 00056 private: 00057 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00058 bool[] valid\n\ 00059 \n\ 00060 "; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00063 00064 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00065 00066 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00067 { 00068 ros::serialization::OStream stream(write_ptr, 1000000000); 00069 ros::serialization::serialize(stream, valid); 00070 return stream.getData(); 00071 } 00072 00073 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00074 { 00075 ros::serialization::IStream stream(read_ptr, 1000000000); 00076 ros::serialization::deserialize(stream, valid); 00077 return stream.getData(); 00078 } 00079 00080 ROS_DEPRECATED virtual uint32_t serializationLength() const 00081 { 00082 uint32_t size = 0; 00083 size += ros::serialization::serializationLength(valid); 00084 return size; 00085 } 00086 00087 typedef boost::shared_ptr< ::pr2_object_manipulation_msgs::TestGripperPoseResult_<ContainerAllocator> > Ptr; 00088 typedef boost::shared_ptr< ::pr2_object_manipulation_msgs::TestGripperPoseResult_<ContainerAllocator> const> ConstPtr; 00089 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00090 }; // struct TestGripperPoseResult 00091 typedef ::pr2_object_manipulation_msgs::TestGripperPoseResult_<std::allocator<void> > TestGripperPoseResult; 00092 00093 typedef boost::shared_ptr< ::pr2_object_manipulation_msgs::TestGripperPoseResult> TestGripperPoseResultPtr; 00094 typedef boost::shared_ptr< ::pr2_object_manipulation_msgs::TestGripperPoseResult const> TestGripperPoseResultConstPtr; 00095 00096 00097 template<typename ContainerAllocator> 00098 std::ostream& operator<<(std::ostream& s, const ::pr2_object_manipulation_msgs::TestGripperPoseResult_<ContainerAllocator> & v) 00099 { 00100 ros::message_operations::Printer< ::pr2_object_manipulation_msgs::TestGripperPoseResult_<ContainerAllocator> >::stream(s, "", v); 00101 return s;} 00102 00103 } // namespace pr2_object_manipulation_msgs 00104 00105 namespace ros 00106 { 00107 namespace message_traits 00108 { 00109 template<class ContainerAllocator> struct IsMessage< ::pr2_object_manipulation_msgs::TestGripperPoseResult_<ContainerAllocator> > : public TrueType {}; 00110 template<class ContainerAllocator> struct IsMessage< ::pr2_object_manipulation_msgs::TestGripperPoseResult_<ContainerAllocator> const> : public TrueType {}; 00111 template<class ContainerAllocator> 00112 struct MD5Sum< ::pr2_object_manipulation_msgs::TestGripperPoseResult_<ContainerAllocator> > { 00113 static const char* value() 00114 { 00115 return "cfaed1ee6ab7b908dad0b6cb846159b6"; 00116 } 00117 00118 static const char* value(const ::pr2_object_manipulation_msgs::TestGripperPoseResult_<ContainerAllocator> &) { return value(); } 00119 static const uint64_t static_value1 = 0xcfaed1ee6ab7b908ULL; 00120 static const uint64_t static_value2 = 0xdad0b6cb846159b6ULL; 00121 }; 00122 00123 template<class ContainerAllocator> 00124 struct DataType< ::pr2_object_manipulation_msgs::TestGripperPoseResult_<ContainerAllocator> > { 00125 static const char* value() 00126 { 00127 return "pr2_object_manipulation_msgs/TestGripperPoseResult"; 00128 } 00129 00130 static const char* value(const ::pr2_object_manipulation_msgs::TestGripperPoseResult_<ContainerAllocator> &) { return value(); } 00131 }; 00132 00133 template<class ContainerAllocator> 00134 struct Definition< ::pr2_object_manipulation_msgs::TestGripperPoseResult_<ContainerAllocator> > { 00135 static const char* value() 00136 { 00137 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00138 bool[] valid\n\ 00139 \n\ 00140 "; 00141 } 00142 00143 static const char* value(const ::pr2_object_manipulation_msgs::TestGripperPoseResult_<ContainerAllocator> &) { return value(); } 00144 }; 00145 00146 } // namespace message_traits 00147 } // namespace ros 00148 00149 namespace ros 00150 { 00151 namespace serialization 00152 { 00153 00154 template<class ContainerAllocator> struct Serializer< ::pr2_object_manipulation_msgs::TestGripperPoseResult_<ContainerAllocator> > 00155 { 00156 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00157 { 00158 stream.next(m.valid); 00159 } 00160 00161 ROS_DECLARE_ALLINONE_SERIALIZER; 00162 }; // struct TestGripperPoseResult_ 00163 } // namespace serialization 00164 } // namespace ros 00165 00166 namespace ros 00167 { 00168 namespace message_operations 00169 { 00170 00171 template<class ContainerAllocator> 00172 struct Printer< ::pr2_object_manipulation_msgs::TestGripperPoseResult_<ContainerAllocator> > 00173 { 00174 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_object_manipulation_msgs::TestGripperPoseResult_<ContainerAllocator> & v) 00175 { 00176 s << indent << "valid[]" << std::endl; 00177 for (size_t i = 0; i < v.valid.size(); ++i) 00178 { 00179 s << indent << " valid[" << i << "]: "; 00180 Printer<uint8_t>::stream(s, indent + " ", v.valid[i]); 00181 } 00182 } 00183 }; 00184 00185 00186 } // namespace message_operations 00187 } // namespace ros 00188 00189 #endif // PR2_OBJECT_MANIPULATION_MSGS_MESSAGE_TESTGRIPPERPOSERESULT_H 00190