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