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