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