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