$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-humanoid_walk/doc_stacks/2013-03-01_15-40-38.607083/humanoid_walk/walk_msgs/msg/PathPoint2d.msg */ 00002 #ifndef WALK_MSGS_MESSAGE_PATHPOINT2D_H 00003 #define WALK_MSGS_MESSAGE_PATHPOINT2D_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 "walk_msgs/Point2dStamped.h" 00019 00020 namespace walk_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct PathPoint2d_ { 00024 typedef PathPoint2d_<ContainerAllocator> Type; 00025 00026 PathPoint2d_() 00027 : header() 00028 , points() 00029 { 00030 } 00031 00032 PathPoint2d_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , points(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00039 ::std_msgs::Header_<ContainerAllocator> header; 00040 00041 typedef std::vector< ::walk_msgs::Point2dStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::walk_msgs::Point2dStamped_<ContainerAllocator> >::other > _points_type; 00042 std::vector< ::walk_msgs::Point2dStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::walk_msgs::Point2dStamped_<ContainerAllocator> >::other > points; 00043 00044 00045 ROS_DEPRECATED uint32_t get_points_size() const { return (uint32_t)points.size(); } 00046 ROS_DEPRECATED void set_points_size(uint32_t size) { points.resize((size_t)size); } 00047 ROS_DEPRECATED void get_points_vec(std::vector< ::walk_msgs::Point2dStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::walk_msgs::Point2dStamped_<ContainerAllocator> >::other > & vec) const { vec = this->points; } 00048 ROS_DEPRECATED void set_points_vec(const std::vector< ::walk_msgs::Point2dStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::walk_msgs::Point2dStamped_<ContainerAllocator> >::other > & vec) { this->points = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "walk_msgs/PathPoint2d"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "365a75fd6de0c9b9ad6ea474162db164"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00065 walk_msgs/Point2dStamped[] points\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: walk_msgs/Point2dStamped\n\ 00087 Header header\n\ 00088 Point2d point\n\ 00089 \n\ 00090 ================================================================================\n\ 00091 MSG: walk_msgs/Point2d\n\ 00092 float64 x\n\ 00093 float64 y\n\ 00094 \n\ 00095 "; } 00096 public: 00097 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00098 00099 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00100 00101 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00102 { 00103 ros::serialization::OStream stream(write_ptr, 1000000000); 00104 ros::serialization::serialize(stream, header); 00105 ros::serialization::serialize(stream, points); 00106 return stream.getData(); 00107 } 00108 00109 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00110 { 00111 ros::serialization::IStream stream(read_ptr, 1000000000); 00112 ros::serialization::deserialize(stream, header); 00113 ros::serialization::deserialize(stream, points); 00114 return stream.getData(); 00115 } 00116 00117 ROS_DEPRECATED virtual uint32_t serializationLength() const 00118 { 00119 uint32_t size = 0; 00120 size += ros::serialization::serializationLength(header); 00121 size += ros::serialization::serializationLength(points); 00122 return size; 00123 } 00124 00125 typedef boost::shared_ptr< ::walk_msgs::PathPoint2d_<ContainerAllocator> > Ptr; 00126 typedef boost::shared_ptr< ::walk_msgs::PathPoint2d_<ContainerAllocator> const> ConstPtr; 00127 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00128 }; // struct PathPoint2d 00129 typedef ::walk_msgs::PathPoint2d_<std::allocator<void> > PathPoint2d; 00130 00131 typedef boost::shared_ptr< ::walk_msgs::PathPoint2d> PathPoint2dPtr; 00132 typedef boost::shared_ptr< ::walk_msgs::PathPoint2d const> PathPoint2dConstPtr; 00133 00134 00135 template<typename ContainerAllocator> 00136 std::ostream& operator<<(std::ostream& s, const ::walk_msgs::PathPoint2d_<ContainerAllocator> & v) 00137 { 00138 ros::message_operations::Printer< ::walk_msgs::PathPoint2d_<ContainerAllocator> >::stream(s, "", v); 00139 return s;} 00140 00141 } // namespace walk_msgs 00142 00143 namespace ros 00144 { 00145 namespace message_traits 00146 { 00147 template<class ContainerAllocator> struct IsMessage< ::walk_msgs::PathPoint2d_<ContainerAllocator> > : public TrueType {}; 00148 template<class ContainerAllocator> struct IsMessage< ::walk_msgs::PathPoint2d_<ContainerAllocator> const> : public TrueType {}; 00149 template<class ContainerAllocator> 00150 struct MD5Sum< ::walk_msgs::PathPoint2d_<ContainerAllocator> > { 00151 static const char* value() 00152 { 00153 return "365a75fd6de0c9b9ad6ea474162db164"; 00154 } 00155 00156 static const char* value(const ::walk_msgs::PathPoint2d_<ContainerAllocator> &) { return value(); } 00157 static const uint64_t static_value1 = 0x365a75fd6de0c9b9ULL; 00158 static const uint64_t static_value2 = 0xad6ea474162db164ULL; 00159 }; 00160 00161 template<class ContainerAllocator> 00162 struct DataType< ::walk_msgs::PathPoint2d_<ContainerAllocator> > { 00163 static const char* value() 00164 { 00165 return "walk_msgs/PathPoint2d"; 00166 } 00167 00168 static const char* value(const ::walk_msgs::PathPoint2d_<ContainerAllocator> &) { return value(); } 00169 }; 00170 00171 template<class ContainerAllocator> 00172 struct Definition< ::walk_msgs::PathPoint2d_<ContainerAllocator> > { 00173 static const char* value() 00174 { 00175 return "Header header\n\ 00176 walk_msgs/Point2dStamped[] points\n\ 00177 \n\ 00178 ================================================================================\n\ 00179 MSG: std_msgs/Header\n\ 00180 # Standard metadata for higher-level stamped data types.\n\ 00181 # This is generally used to communicate timestamped data \n\ 00182 # in a particular coordinate frame.\n\ 00183 # \n\ 00184 # sequence ID: consecutively increasing ID \n\ 00185 uint32 seq\n\ 00186 #Two-integer timestamp that is expressed as:\n\ 00187 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00188 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00189 # time-handling sugar is provided by the client library\n\ 00190 time stamp\n\ 00191 #Frame this data is associated with\n\ 00192 # 0: no frame\n\ 00193 # 1: global frame\n\ 00194 string frame_id\n\ 00195 \n\ 00196 ================================================================================\n\ 00197 MSG: walk_msgs/Point2dStamped\n\ 00198 Header header\n\ 00199 Point2d point\n\ 00200 \n\ 00201 ================================================================================\n\ 00202 MSG: walk_msgs/Point2d\n\ 00203 float64 x\n\ 00204 float64 y\n\ 00205 \n\ 00206 "; 00207 } 00208 00209 static const char* value(const ::walk_msgs::PathPoint2d_<ContainerAllocator> &) { return value(); } 00210 }; 00211 00212 template<class ContainerAllocator> struct HasHeader< ::walk_msgs::PathPoint2d_<ContainerAllocator> > : public TrueType {}; 00213 template<class ContainerAllocator> struct HasHeader< const ::walk_msgs::PathPoint2d_<ContainerAllocator> > : public TrueType {}; 00214 } // namespace message_traits 00215 } // namespace ros 00216 00217 namespace ros 00218 { 00219 namespace serialization 00220 { 00221 00222 template<class ContainerAllocator> struct Serializer< ::walk_msgs::PathPoint2d_<ContainerAllocator> > 00223 { 00224 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00225 { 00226 stream.next(m.header); 00227 stream.next(m.points); 00228 } 00229 00230 ROS_DECLARE_ALLINONE_SERIALIZER; 00231 }; // struct PathPoint2d_ 00232 } // namespace serialization 00233 } // namespace ros 00234 00235 namespace ros 00236 { 00237 namespace message_operations 00238 { 00239 00240 template<class ContainerAllocator> 00241 struct Printer< ::walk_msgs::PathPoint2d_<ContainerAllocator> > 00242 { 00243 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::walk_msgs::PathPoint2d_<ContainerAllocator> & v) 00244 { 00245 s << indent << "header: "; 00246 s << std::endl; 00247 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00248 s << indent << "points[]" << std::endl; 00249 for (size_t i = 0; i < v.points.size(); ++i) 00250 { 00251 s << indent << " points[" << i << "]: "; 00252 s << std::endl; 00253 s << indent; 00254 Printer< ::walk_msgs::Point2dStamped_<ContainerAllocator> >::stream(s, indent + " ", v.points[i]); 00255 } 00256 } 00257 }; 00258 00259 00260 } // namespace message_operations 00261 } // namespace ros 00262 00263 #endif // WALK_MSGS_MESSAGE_PATHPOINT2D_H 00264