$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/ImageClick.msg */ 00002 #ifndef PR2_OBJECT_MANIPULATION_MSGS_MESSAGE_IMAGECLICK_H 00003 #define PR2_OBJECT_MANIPULATION_MSGS_MESSAGE_IMAGECLICK_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 "pr2_object_manipulation_msgs/Ray.h" 00018 00019 namespace pr2_object_manipulation_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct ImageClick_ { 00023 typedef ImageClick_<ContainerAllocator> Type; 00024 00025 ImageClick_() 00026 : ray() 00027 , camera_frame_id() 00028 { 00029 } 00030 00031 ImageClick_(const ContainerAllocator& _alloc) 00032 : ray(_alloc) 00033 , camera_frame_id(_alloc) 00034 { 00035 } 00036 00037 typedef ::pr2_object_manipulation_msgs::Ray_<ContainerAllocator> _ray_type; 00038 ::pr2_object_manipulation_msgs::Ray_<ContainerAllocator> ray; 00039 00040 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _camera_frame_id_type; 00041 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > camera_frame_id; 00042 00043 00044 private: 00045 static const char* __s_getDataType_() { return "pr2_object_manipulation_msgs/ImageClick"; } 00046 public: 00047 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00048 00049 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00050 00051 private: 00052 static const char* __s_getMD5Sum_() { return "6549d856fa5d392f2ffbeaf0a2f80931"; } 00053 public: 00054 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00055 00056 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00057 00058 private: 00059 static const char* __s_getMessageDefinition_() { return "# Info about a user click on an image\n\ 00060 \n\ 00061 # The ray in 3d space resulting from the click\n\ 00062 Ray ray\n\ 00063 \n\ 00064 # The frame_if of the camera that the click was in\n\ 00065 string camera_frame_id\n\ 00066 ================================================================================\n\ 00067 MSG: pr2_object_manipulation_msgs/Ray\n\ 00068 # Represents a ray through space.\n\ 00069 # Could probably move to a more general location\n\ 00070 \n\ 00071 Header header\n\ 00072 \n\ 00073 # the origin of the ray\n\ 00074 geometry_msgs/Point origin\n\ 00075 \n\ 00076 # the direction of the ray\n\ 00077 geometry_msgs/Vector3 direction\n\ 00078 ================================================================================\n\ 00079 MSG: std_msgs/Header\n\ 00080 # Standard metadata for higher-level stamped data types.\n\ 00081 # This is generally used to communicate timestamped data \n\ 00082 # in a particular coordinate frame.\n\ 00083 # \n\ 00084 # sequence ID: consecutively increasing ID \n\ 00085 uint32 seq\n\ 00086 #Two-integer timestamp that is expressed as:\n\ 00087 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00088 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00089 # time-handling sugar is provided by the client library\n\ 00090 time stamp\n\ 00091 #Frame this data is associated with\n\ 00092 # 0: no frame\n\ 00093 # 1: global frame\n\ 00094 string frame_id\n\ 00095 \n\ 00096 ================================================================================\n\ 00097 MSG: geometry_msgs/Point\n\ 00098 # This contains the position of a point in free space\n\ 00099 float64 x\n\ 00100 float64 y\n\ 00101 float64 z\n\ 00102 \n\ 00103 ================================================================================\n\ 00104 MSG: geometry_msgs/Vector3\n\ 00105 # This represents a vector in free space. \n\ 00106 \n\ 00107 float64 x\n\ 00108 float64 y\n\ 00109 float64 z\n\ 00110 "; } 00111 public: 00112 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00113 00114 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00115 00116 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00117 { 00118 ros::serialization::OStream stream(write_ptr, 1000000000); 00119 ros::serialization::serialize(stream, ray); 00120 ros::serialization::serialize(stream, camera_frame_id); 00121 return stream.getData(); 00122 } 00123 00124 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00125 { 00126 ros::serialization::IStream stream(read_ptr, 1000000000); 00127 ros::serialization::deserialize(stream, ray); 00128 ros::serialization::deserialize(stream, camera_frame_id); 00129 return stream.getData(); 00130 } 00131 00132 ROS_DEPRECATED virtual uint32_t serializationLength() const 00133 { 00134 uint32_t size = 0; 00135 size += ros::serialization::serializationLength(ray); 00136 size += ros::serialization::serializationLength(camera_frame_id); 00137 return size; 00138 } 00139 00140 typedef boost::shared_ptr< ::pr2_object_manipulation_msgs::ImageClick_<ContainerAllocator> > Ptr; 00141 typedef boost::shared_ptr< ::pr2_object_manipulation_msgs::ImageClick_<ContainerAllocator> const> ConstPtr; 00142 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00143 }; // struct ImageClick 00144 typedef ::pr2_object_manipulation_msgs::ImageClick_<std::allocator<void> > ImageClick; 00145 00146 typedef boost::shared_ptr< ::pr2_object_manipulation_msgs::ImageClick> ImageClickPtr; 00147 typedef boost::shared_ptr< ::pr2_object_manipulation_msgs::ImageClick const> ImageClickConstPtr; 00148 00149 00150 template<typename ContainerAllocator> 00151 std::ostream& operator<<(std::ostream& s, const ::pr2_object_manipulation_msgs::ImageClick_<ContainerAllocator> & v) 00152 { 00153 ros::message_operations::Printer< ::pr2_object_manipulation_msgs::ImageClick_<ContainerAllocator> >::stream(s, "", v); 00154 return s;} 00155 00156 } // namespace pr2_object_manipulation_msgs 00157 00158 namespace ros 00159 { 00160 namespace message_traits 00161 { 00162 template<class ContainerAllocator> struct IsMessage< ::pr2_object_manipulation_msgs::ImageClick_<ContainerAllocator> > : public TrueType {}; 00163 template<class ContainerAllocator> struct IsMessage< ::pr2_object_manipulation_msgs::ImageClick_<ContainerAllocator> const> : public TrueType {}; 00164 template<class ContainerAllocator> 00165 struct MD5Sum< ::pr2_object_manipulation_msgs::ImageClick_<ContainerAllocator> > { 00166 static const char* value() 00167 { 00168 return "6549d856fa5d392f2ffbeaf0a2f80931"; 00169 } 00170 00171 static const char* value(const ::pr2_object_manipulation_msgs::ImageClick_<ContainerAllocator> &) { return value(); } 00172 static const uint64_t static_value1 = 0x6549d856fa5d392fULL; 00173 static const uint64_t static_value2 = 0x2ffbeaf0a2f80931ULL; 00174 }; 00175 00176 template<class ContainerAllocator> 00177 struct DataType< ::pr2_object_manipulation_msgs::ImageClick_<ContainerAllocator> > { 00178 static const char* value() 00179 { 00180 return "pr2_object_manipulation_msgs/ImageClick"; 00181 } 00182 00183 static const char* value(const ::pr2_object_manipulation_msgs::ImageClick_<ContainerAllocator> &) { return value(); } 00184 }; 00185 00186 template<class ContainerAllocator> 00187 struct Definition< ::pr2_object_manipulation_msgs::ImageClick_<ContainerAllocator> > { 00188 static const char* value() 00189 { 00190 return "# Info about a user click on an image\n\ 00191 \n\ 00192 # The ray in 3d space resulting from the click\n\ 00193 Ray ray\n\ 00194 \n\ 00195 # The frame_if of the camera that the click was in\n\ 00196 string camera_frame_id\n\ 00197 ================================================================================\n\ 00198 MSG: pr2_object_manipulation_msgs/Ray\n\ 00199 # Represents a ray through space.\n\ 00200 # Could probably move to a more general location\n\ 00201 \n\ 00202 Header header\n\ 00203 \n\ 00204 # the origin of the ray\n\ 00205 geometry_msgs/Point origin\n\ 00206 \n\ 00207 # the direction of the ray\n\ 00208 geometry_msgs/Vector3 direction\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/Point\n\ 00229 # This contains the position of a point in free space\n\ 00230 float64 x\n\ 00231 float64 y\n\ 00232 float64 z\n\ 00233 \n\ 00234 ================================================================================\n\ 00235 MSG: geometry_msgs/Vector3\n\ 00236 # This represents a vector in free space. \n\ 00237 \n\ 00238 float64 x\n\ 00239 float64 y\n\ 00240 float64 z\n\ 00241 "; 00242 } 00243 00244 static const char* value(const ::pr2_object_manipulation_msgs::ImageClick_<ContainerAllocator> &) { return value(); } 00245 }; 00246 00247 } // namespace message_traits 00248 } // namespace ros 00249 00250 namespace ros 00251 { 00252 namespace serialization 00253 { 00254 00255 template<class ContainerAllocator> struct Serializer< ::pr2_object_manipulation_msgs::ImageClick_<ContainerAllocator> > 00256 { 00257 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00258 { 00259 stream.next(m.ray); 00260 stream.next(m.camera_frame_id); 00261 } 00262 00263 ROS_DECLARE_ALLINONE_SERIALIZER; 00264 }; // struct ImageClick_ 00265 } // namespace serialization 00266 } // namespace ros 00267 00268 namespace ros 00269 { 00270 namespace message_operations 00271 { 00272 00273 template<class ContainerAllocator> 00274 struct Printer< ::pr2_object_manipulation_msgs::ImageClick_<ContainerAllocator> > 00275 { 00276 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_object_manipulation_msgs::ImageClick_<ContainerAllocator> & v) 00277 { 00278 s << indent << "ray: "; 00279 s << std::endl; 00280 Printer< ::pr2_object_manipulation_msgs::Ray_<ContainerAllocator> >::stream(s, indent + " ", v.ray); 00281 s << indent << "camera_frame_id: "; 00282 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.camera_frame_id); 00283 } 00284 }; 00285 00286 00287 } // namespace message_operations 00288 } // namespace ros 00289 00290 #endif // PR2_OBJECT_MANIPULATION_MSGS_MESSAGE_IMAGECLICK_H 00291