$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_msgs/msg/Grasp.msg */ 00002 #ifndef SRS_MSGS_MESSAGE_GRASP_H 00003 #define SRS_MSGS_MESSAGE_GRASP_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 "srs_msgs/DBGrasp.h" 00018 00019 namespace srs_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct Grasp_ { 00023 typedef Grasp_<ContainerAllocator> Type; 00024 00025 Grasp_() 00026 : grasp_configuration() 00027 { 00028 } 00029 00030 Grasp_(const ContainerAllocator& _alloc) 00031 : grasp_configuration(_alloc) 00032 { 00033 } 00034 00035 typedef std::vector< ::srs_msgs::DBGrasp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_msgs::DBGrasp_<ContainerAllocator> >::other > _grasp_configuration_type; 00036 std::vector< ::srs_msgs::DBGrasp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_msgs::DBGrasp_<ContainerAllocator> >::other > grasp_configuration; 00037 00038 00039 ROS_DEPRECATED uint32_t get_grasp_configuration_size() const { return (uint32_t)grasp_configuration.size(); } 00040 ROS_DEPRECATED void set_grasp_configuration_size(uint32_t size) { grasp_configuration.resize((size_t)size); } 00041 ROS_DEPRECATED void get_grasp_configuration_vec(std::vector< ::srs_msgs::DBGrasp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_msgs::DBGrasp_<ContainerAllocator> >::other > & vec) const { vec = this->grasp_configuration; } 00042 ROS_DEPRECATED void set_grasp_configuration_vec(const std::vector< ::srs_msgs::DBGrasp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_msgs::DBGrasp_<ContainerAllocator> >::other > & vec) { this->grasp_configuration = vec; } 00043 private: 00044 static const char* __s_getDataType_() { return "srs_msgs/Grasp"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "b4ba413db436f6f49754dff4bc4a1739"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getMessageDefinition_() { return "srs_msgs/DBGrasp[] grasp_configuration\n\ 00059 \n\ 00060 ================================================================================\n\ 00061 MSG: srs_msgs/DBGrasp\n\ 00062 int32 object_id\n\ 00063 string hand_type\n\ 00064 float64[] sdh_joint_values\n\ 00065 geometry_msgs/PoseStamped pre_grasp\n\ 00066 geometry_msgs/PoseStamped grasp\n\ 00067 string category\n\ 00068 \n\ 00069 ================================================================================\n\ 00070 MSG: geometry_msgs/PoseStamped\n\ 00071 # A Pose with reference coordinate frame and timestamp\n\ 00072 Header header\n\ 00073 Pose pose\n\ 00074 \n\ 00075 ================================================================================\n\ 00076 MSG: std_msgs/Header\n\ 00077 # Standard metadata for higher-level stamped data types.\n\ 00078 # This is generally used to communicate timestamped data \n\ 00079 # in a particular coordinate frame.\n\ 00080 # \n\ 00081 # sequence ID: consecutively increasing ID \n\ 00082 uint32 seq\n\ 00083 #Two-integer timestamp that is expressed as:\n\ 00084 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00085 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00086 # time-handling sugar is provided by the client library\n\ 00087 time stamp\n\ 00088 #Frame this data is associated with\n\ 00089 # 0: no frame\n\ 00090 # 1: global frame\n\ 00091 string frame_id\n\ 00092 \n\ 00093 ================================================================================\n\ 00094 MSG: geometry_msgs/Pose\n\ 00095 # A representation of pose in free space, composed of postion and orientation. \n\ 00096 Point position\n\ 00097 Quaternion orientation\n\ 00098 \n\ 00099 ================================================================================\n\ 00100 MSG: geometry_msgs/Point\n\ 00101 # This contains the position of a point in free space\n\ 00102 float64 x\n\ 00103 float64 y\n\ 00104 float64 z\n\ 00105 \n\ 00106 ================================================================================\n\ 00107 MSG: geometry_msgs/Quaternion\n\ 00108 # This represents an orientation in free space in quaternion form.\n\ 00109 \n\ 00110 float64 x\n\ 00111 float64 y\n\ 00112 float64 z\n\ 00113 float64 w\n\ 00114 \n\ 00115 "; } 00116 public: 00117 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00118 00119 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00120 00121 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00122 { 00123 ros::serialization::OStream stream(write_ptr, 1000000000); 00124 ros::serialization::serialize(stream, grasp_configuration); 00125 return stream.getData(); 00126 } 00127 00128 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00129 { 00130 ros::serialization::IStream stream(read_ptr, 1000000000); 00131 ros::serialization::deserialize(stream, grasp_configuration); 00132 return stream.getData(); 00133 } 00134 00135 ROS_DEPRECATED virtual uint32_t serializationLength() const 00136 { 00137 uint32_t size = 0; 00138 size += ros::serialization::serializationLength(grasp_configuration); 00139 return size; 00140 } 00141 00142 typedef boost::shared_ptr< ::srs_msgs::Grasp_<ContainerAllocator> > Ptr; 00143 typedef boost::shared_ptr< ::srs_msgs::Grasp_<ContainerAllocator> const> ConstPtr; 00144 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00145 }; // struct Grasp 00146 typedef ::srs_msgs::Grasp_<std::allocator<void> > Grasp; 00147 00148 typedef boost::shared_ptr< ::srs_msgs::Grasp> GraspPtr; 00149 typedef boost::shared_ptr< ::srs_msgs::Grasp const> GraspConstPtr; 00150 00151 00152 template<typename ContainerAllocator> 00153 std::ostream& operator<<(std::ostream& s, const ::srs_msgs::Grasp_<ContainerAllocator> & v) 00154 { 00155 ros::message_operations::Printer< ::srs_msgs::Grasp_<ContainerAllocator> >::stream(s, "", v); 00156 return s;} 00157 00158 } // namespace srs_msgs 00159 00160 namespace ros 00161 { 00162 namespace message_traits 00163 { 00164 template<class ContainerAllocator> struct IsMessage< ::srs_msgs::Grasp_<ContainerAllocator> > : public TrueType {}; 00165 template<class ContainerAllocator> struct IsMessage< ::srs_msgs::Grasp_<ContainerAllocator> const> : public TrueType {}; 00166 template<class ContainerAllocator> 00167 struct MD5Sum< ::srs_msgs::Grasp_<ContainerAllocator> > { 00168 static const char* value() 00169 { 00170 return "b4ba413db436f6f49754dff4bc4a1739"; 00171 } 00172 00173 static const char* value(const ::srs_msgs::Grasp_<ContainerAllocator> &) { return value(); } 00174 static const uint64_t static_value1 = 0xb4ba413db436f6f4ULL; 00175 static const uint64_t static_value2 = 0x9754dff4bc4a1739ULL; 00176 }; 00177 00178 template<class ContainerAllocator> 00179 struct DataType< ::srs_msgs::Grasp_<ContainerAllocator> > { 00180 static const char* value() 00181 { 00182 return "srs_msgs/Grasp"; 00183 } 00184 00185 static const char* value(const ::srs_msgs::Grasp_<ContainerAllocator> &) { return value(); } 00186 }; 00187 00188 template<class ContainerAllocator> 00189 struct Definition< ::srs_msgs::Grasp_<ContainerAllocator> > { 00190 static const char* value() 00191 { 00192 return "srs_msgs/DBGrasp[] grasp_configuration\n\ 00193 \n\ 00194 ================================================================================\n\ 00195 MSG: srs_msgs/DBGrasp\n\ 00196 int32 object_id\n\ 00197 string hand_type\n\ 00198 float64[] sdh_joint_values\n\ 00199 geometry_msgs/PoseStamped pre_grasp\n\ 00200 geometry_msgs/PoseStamped grasp\n\ 00201 string category\n\ 00202 \n\ 00203 ================================================================================\n\ 00204 MSG: geometry_msgs/PoseStamped\n\ 00205 # A Pose with reference coordinate frame and timestamp\n\ 00206 Header header\n\ 00207 Pose pose\n\ 00208 \n\ 00209 ================================================================================\n\ 00210 MSG: std_msgs/Header\n\ 00211 # Standard metadata for higher-level stamped data types.\n\ 00212 # This is generally used to communicate timestamped data \n\ 00213 # in a particular coordinate frame.\n\ 00214 # \n\ 00215 # sequence ID: consecutively increasing ID \n\ 00216 uint32 seq\n\ 00217 #Two-integer timestamp that is expressed as:\n\ 00218 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00219 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00220 # time-handling sugar is provided by the client library\n\ 00221 time stamp\n\ 00222 #Frame this data is associated with\n\ 00223 # 0: no frame\n\ 00224 # 1: global frame\n\ 00225 string frame_id\n\ 00226 \n\ 00227 ================================================================================\n\ 00228 MSG: geometry_msgs/Pose\n\ 00229 # A representation of pose in free space, composed of postion and orientation. \n\ 00230 Point position\n\ 00231 Quaternion orientation\n\ 00232 \n\ 00233 ================================================================================\n\ 00234 MSG: geometry_msgs/Point\n\ 00235 # This contains the position of a point in free space\n\ 00236 float64 x\n\ 00237 float64 y\n\ 00238 float64 z\n\ 00239 \n\ 00240 ================================================================================\n\ 00241 MSG: geometry_msgs/Quaternion\n\ 00242 # This represents an orientation in free space in quaternion form.\n\ 00243 \n\ 00244 float64 x\n\ 00245 float64 y\n\ 00246 float64 z\n\ 00247 float64 w\n\ 00248 \n\ 00249 "; 00250 } 00251 00252 static const char* value(const ::srs_msgs::Grasp_<ContainerAllocator> &) { return value(); } 00253 }; 00254 00255 } // namespace message_traits 00256 } // namespace ros 00257 00258 namespace ros 00259 { 00260 namespace serialization 00261 { 00262 00263 template<class ContainerAllocator> struct Serializer< ::srs_msgs::Grasp_<ContainerAllocator> > 00264 { 00265 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00266 { 00267 stream.next(m.grasp_configuration); 00268 } 00269 00270 ROS_DECLARE_ALLINONE_SERIALIZER; 00271 }; // struct Grasp_ 00272 } // namespace serialization 00273 } // namespace ros 00274 00275 namespace ros 00276 { 00277 namespace message_operations 00278 { 00279 00280 template<class ContainerAllocator> 00281 struct Printer< ::srs_msgs::Grasp_<ContainerAllocator> > 00282 { 00283 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_msgs::Grasp_<ContainerAllocator> & v) 00284 { 00285 s << indent << "grasp_configuration[]" << std::endl; 00286 for (size_t i = 0; i < v.grasp_configuration.size(); ++i) 00287 { 00288 s << indent << " grasp_configuration[" << i << "]: "; 00289 s << std::endl; 00290 s << indent; 00291 Printer< ::srs_msgs::DBGrasp_<ContainerAllocator> >::stream(s, indent + " ", v.grasp_configuration[i]); 00292 } 00293 } 00294 }; 00295 00296 00297 } // namespace message_operations 00298 } // namespace ros 00299 00300 #endif // SRS_MSGS_MESSAGE_GRASP_H 00301