$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-common_msgs/doc_stacks/2013-03-01_14-58-52.505545/common_msgs/geometry_msgs/msg/Pose.msg */ 00002 #ifndef GEOMETRY_MSGS_MESSAGE_POSE_H 00003 #define GEOMETRY_MSGS_MESSAGE_POSE_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/Point.h" 00018 #include "geometry_msgs/Quaternion.h" 00019 00020 namespace geometry_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct Pose_ { 00024 typedef Pose_<ContainerAllocator> Type; 00025 00026 Pose_() 00027 : position() 00028 , orientation() 00029 { 00030 } 00031 00032 Pose_(const ContainerAllocator& _alloc) 00033 : position(_alloc) 00034 , orientation(_alloc) 00035 { 00036 } 00037 00038 typedef ::geometry_msgs::Point_<ContainerAllocator> _position_type; 00039 ::geometry_msgs::Point_<ContainerAllocator> position; 00040 00041 typedef ::geometry_msgs::Quaternion_<ContainerAllocator> _orientation_type; 00042 ::geometry_msgs::Quaternion_<ContainerAllocator> orientation; 00043 00044 00045 private: 00046 static const char* __s_getDataType_() { return "geometry_msgs/Pose"; } 00047 public: 00048 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00049 00050 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00051 00052 private: 00053 static const char* __s_getMD5Sum_() { return "e45d45a5a1ce597b249e23fb30fc871f"; } 00054 public: 00055 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00056 00057 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00058 00059 private: 00060 static const char* __s_getMessageDefinition_() { return "# A representation of pose in free space, composed of postion and orientation. \n\ 00061 Point position\n\ 00062 Quaternion orientation\n\ 00063 \n\ 00064 ================================================================================\n\ 00065 MSG: geometry_msgs/Point\n\ 00066 # This contains the position of a point in free space\n\ 00067 float64 x\n\ 00068 float64 y\n\ 00069 float64 z\n\ 00070 \n\ 00071 ================================================================================\n\ 00072 MSG: geometry_msgs/Quaternion\n\ 00073 # This represents an orientation in free space in quaternion form.\n\ 00074 \n\ 00075 float64 x\n\ 00076 float64 y\n\ 00077 float64 z\n\ 00078 float64 w\n\ 00079 \n\ 00080 "; } 00081 public: 00082 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00083 00084 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00085 00086 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00087 { 00088 ros::serialization::OStream stream(write_ptr, 1000000000); 00089 ros::serialization::serialize(stream, position); 00090 ros::serialization::serialize(stream, orientation); 00091 return stream.getData(); 00092 } 00093 00094 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00095 { 00096 ros::serialization::IStream stream(read_ptr, 1000000000); 00097 ros::serialization::deserialize(stream, position); 00098 ros::serialization::deserialize(stream, orientation); 00099 return stream.getData(); 00100 } 00101 00102 ROS_DEPRECATED virtual uint32_t serializationLength() const 00103 { 00104 uint32_t size = 0; 00105 size += ros::serialization::serializationLength(position); 00106 size += ros::serialization::serializationLength(orientation); 00107 return size; 00108 } 00109 00110 typedef boost::shared_ptr< ::geometry_msgs::Pose_<ContainerAllocator> > Ptr; 00111 typedef boost::shared_ptr< ::geometry_msgs::Pose_<ContainerAllocator> const> ConstPtr; 00112 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00113 }; // struct Pose 00114 typedef ::geometry_msgs::Pose_<std::allocator<void> > Pose; 00115 00116 typedef boost::shared_ptr< ::geometry_msgs::Pose> PosePtr; 00117 typedef boost::shared_ptr< ::geometry_msgs::Pose const> PoseConstPtr; 00118 00119 00120 template<typename ContainerAllocator> 00121 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::Pose_<ContainerAllocator> & v) 00122 { 00123 ros::message_operations::Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, "", v); 00124 return s;} 00125 00126 } // namespace geometry_msgs 00127 00128 namespace ros 00129 { 00130 namespace message_traits 00131 { 00132 template<class ContainerAllocator> struct IsMessage< ::geometry_msgs::Pose_<ContainerAllocator> > : public TrueType {}; 00133 template<class ContainerAllocator> struct IsMessage< ::geometry_msgs::Pose_<ContainerAllocator> const> : public TrueType {}; 00134 template<class ContainerAllocator> 00135 struct MD5Sum< ::geometry_msgs::Pose_<ContainerAllocator> > { 00136 static const char* value() 00137 { 00138 return "e45d45a5a1ce597b249e23fb30fc871f"; 00139 } 00140 00141 static const char* value(const ::geometry_msgs::Pose_<ContainerAllocator> &) { return value(); } 00142 static const uint64_t static_value1 = 0xe45d45a5a1ce597bULL; 00143 static const uint64_t static_value2 = 0x249e23fb30fc871fULL; 00144 }; 00145 00146 template<class ContainerAllocator> 00147 struct DataType< ::geometry_msgs::Pose_<ContainerAllocator> > { 00148 static const char* value() 00149 { 00150 return "geometry_msgs/Pose"; 00151 } 00152 00153 static const char* value(const ::geometry_msgs::Pose_<ContainerAllocator> &) { return value(); } 00154 }; 00155 00156 template<class ContainerAllocator> 00157 struct Definition< ::geometry_msgs::Pose_<ContainerAllocator> > { 00158 static const char* value() 00159 { 00160 return "# A representation of pose in free space, composed of postion and orientation. \n\ 00161 Point position\n\ 00162 Quaternion orientation\n\ 00163 \n\ 00164 ================================================================================\n\ 00165 MSG: geometry_msgs/Point\n\ 00166 # This contains the position of a point in free space\n\ 00167 float64 x\n\ 00168 float64 y\n\ 00169 float64 z\n\ 00170 \n\ 00171 ================================================================================\n\ 00172 MSG: geometry_msgs/Quaternion\n\ 00173 # This represents an orientation in free space in quaternion form.\n\ 00174 \n\ 00175 float64 x\n\ 00176 float64 y\n\ 00177 float64 z\n\ 00178 float64 w\n\ 00179 \n\ 00180 "; 00181 } 00182 00183 static const char* value(const ::geometry_msgs::Pose_<ContainerAllocator> &) { return value(); } 00184 }; 00185 00186 template<class ContainerAllocator> struct IsFixedSize< ::geometry_msgs::Pose_<ContainerAllocator> > : public TrueType {}; 00187 } // namespace message_traits 00188 } // namespace ros 00189 00190 namespace ros 00191 { 00192 namespace serialization 00193 { 00194 00195 template<class ContainerAllocator> struct Serializer< ::geometry_msgs::Pose_<ContainerAllocator> > 00196 { 00197 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00198 { 00199 stream.next(m.position); 00200 stream.next(m.orientation); 00201 } 00202 00203 ROS_DECLARE_ALLINONE_SERIALIZER; 00204 }; // struct Pose_ 00205 } // namespace serialization 00206 } // namespace ros 00207 00208 namespace ros 00209 { 00210 namespace message_operations 00211 { 00212 00213 template<class ContainerAllocator> 00214 struct Printer< ::geometry_msgs::Pose_<ContainerAllocator> > 00215 { 00216 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::Pose_<ContainerAllocator> & v) 00217 { 00218 s << indent << "position: "; 00219 s << std::endl; 00220 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.position); 00221 s << indent << "orientation: "; 00222 s << std::endl; 00223 Printer< ::geometry_msgs::Quaternion_<ContainerAllocator> >::stream(s, indent + " ", v.orientation); 00224 } 00225 }; 00226 00227 00228 } // namespace message_operations 00229 } // namespace ros 00230 00231 #endif // GEOMETRY_MSGS_MESSAGE_POSE_H 00232