$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/PathPoint3d.msg */ 00002 #ifndef WALK_MSGS_MESSAGE_PATHPOINT3D_H 00003 #define WALK_MSGS_MESSAGE_PATHPOINT3D_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/PointStamped.h" 00019 00020 namespace walk_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct PathPoint3d_ { 00024 typedef PathPoint3d_<ContainerAllocator> Type; 00025 00026 PathPoint3d_() 00027 : header() 00028 , points() 00029 { 00030 } 00031 00032 PathPoint3d_(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< ::geometry_msgs::PointStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::PointStamped_<ContainerAllocator> >::other > _points_type; 00042 std::vector< ::geometry_msgs::PointStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::PointStamped_<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< ::geometry_msgs::PointStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::PointStamped_<ContainerAllocator> >::other > & vec) const { vec = this->points; } 00048 ROS_DEPRECATED void set_points_vec(const std::vector< ::geometry_msgs::PointStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::PointStamped_<ContainerAllocator> >::other > & vec) { this->points = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "walk_msgs/PathPoint3d"; } 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 "b8ec4b27b30b44420f0c462b1ebbe47d"; } 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 geometry_msgs/PointStamped[] 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: geometry_msgs/PointStamped\n\ 00087 # This represents a Point with reference coordinate frame and timestamp\n\ 00088 Header header\n\ 00089 Point point\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 "; } 00099 public: 00100 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00101 00102 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00103 00104 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00105 { 00106 ros::serialization::OStream stream(write_ptr, 1000000000); 00107 ros::serialization::serialize(stream, header); 00108 ros::serialization::serialize(stream, points); 00109 return stream.getData(); 00110 } 00111 00112 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00113 { 00114 ros::serialization::IStream stream(read_ptr, 1000000000); 00115 ros::serialization::deserialize(stream, header); 00116 ros::serialization::deserialize(stream, points); 00117 return stream.getData(); 00118 } 00119 00120 ROS_DEPRECATED virtual uint32_t serializationLength() const 00121 { 00122 uint32_t size = 0; 00123 size += ros::serialization::serializationLength(header); 00124 size += ros::serialization::serializationLength(points); 00125 return size; 00126 } 00127 00128 typedef boost::shared_ptr< ::walk_msgs::PathPoint3d_<ContainerAllocator> > Ptr; 00129 typedef boost::shared_ptr< ::walk_msgs::PathPoint3d_<ContainerAllocator> const> ConstPtr; 00130 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00131 }; // struct PathPoint3d 00132 typedef ::walk_msgs::PathPoint3d_<std::allocator<void> > PathPoint3d; 00133 00134 typedef boost::shared_ptr< ::walk_msgs::PathPoint3d> PathPoint3dPtr; 00135 typedef boost::shared_ptr< ::walk_msgs::PathPoint3d const> PathPoint3dConstPtr; 00136 00137 00138 template<typename ContainerAllocator> 00139 std::ostream& operator<<(std::ostream& s, const ::walk_msgs::PathPoint3d_<ContainerAllocator> & v) 00140 { 00141 ros::message_operations::Printer< ::walk_msgs::PathPoint3d_<ContainerAllocator> >::stream(s, "", v); 00142 return s;} 00143 00144 } // namespace walk_msgs 00145 00146 namespace ros 00147 { 00148 namespace message_traits 00149 { 00150 template<class ContainerAllocator> struct IsMessage< ::walk_msgs::PathPoint3d_<ContainerAllocator> > : public TrueType {}; 00151 template<class ContainerAllocator> struct IsMessage< ::walk_msgs::PathPoint3d_<ContainerAllocator> const> : public TrueType {}; 00152 template<class ContainerAllocator> 00153 struct MD5Sum< ::walk_msgs::PathPoint3d_<ContainerAllocator> > { 00154 static const char* value() 00155 { 00156 return "b8ec4b27b30b44420f0c462b1ebbe47d"; 00157 } 00158 00159 static const char* value(const ::walk_msgs::PathPoint3d_<ContainerAllocator> &) { return value(); } 00160 static const uint64_t static_value1 = 0xb8ec4b27b30b4442ULL; 00161 static const uint64_t static_value2 = 0x0f0c462b1ebbe47dULL; 00162 }; 00163 00164 template<class ContainerAllocator> 00165 struct DataType< ::walk_msgs::PathPoint3d_<ContainerAllocator> > { 00166 static const char* value() 00167 { 00168 return "walk_msgs/PathPoint3d"; 00169 } 00170 00171 static const char* value(const ::walk_msgs::PathPoint3d_<ContainerAllocator> &) { return value(); } 00172 }; 00173 00174 template<class ContainerAllocator> 00175 struct Definition< ::walk_msgs::PathPoint3d_<ContainerAllocator> > { 00176 static const char* value() 00177 { 00178 return "Header header\n\ 00179 geometry_msgs/PointStamped[] points\n\ 00180 \n\ 00181 ================================================================================\n\ 00182 MSG: std_msgs/Header\n\ 00183 # Standard metadata for higher-level stamped data types.\n\ 00184 # This is generally used to communicate timestamped data \n\ 00185 # in a particular coordinate frame.\n\ 00186 # \n\ 00187 # sequence ID: consecutively increasing ID \n\ 00188 uint32 seq\n\ 00189 #Two-integer timestamp that is expressed as:\n\ 00190 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00191 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00192 # time-handling sugar is provided by the client library\n\ 00193 time stamp\n\ 00194 #Frame this data is associated with\n\ 00195 # 0: no frame\n\ 00196 # 1: global frame\n\ 00197 string frame_id\n\ 00198 \n\ 00199 ================================================================================\n\ 00200 MSG: geometry_msgs/PointStamped\n\ 00201 # This represents a Point with reference coordinate frame and timestamp\n\ 00202 Header header\n\ 00203 Point point\n\ 00204 \n\ 00205 ================================================================================\n\ 00206 MSG: geometry_msgs/Point\n\ 00207 # This contains the position of a point in free space\n\ 00208 float64 x\n\ 00209 float64 y\n\ 00210 float64 z\n\ 00211 \n\ 00212 "; 00213 } 00214 00215 static const char* value(const ::walk_msgs::PathPoint3d_<ContainerAllocator> &) { return value(); } 00216 }; 00217 00218 template<class ContainerAllocator> struct HasHeader< ::walk_msgs::PathPoint3d_<ContainerAllocator> > : public TrueType {}; 00219 template<class ContainerAllocator> struct HasHeader< const ::walk_msgs::PathPoint3d_<ContainerAllocator> > : public TrueType {}; 00220 } // namespace message_traits 00221 } // namespace ros 00222 00223 namespace ros 00224 { 00225 namespace serialization 00226 { 00227 00228 template<class ContainerAllocator> struct Serializer< ::walk_msgs::PathPoint3d_<ContainerAllocator> > 00229 { 00230 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00231 { 00232 stream.next(m.header); 00233 stream.next(m.points); 00234 } 00235 00236 ROS_DECLARE_ALLINONE_SERIALIZER; 00237 }; // struct PathPoint3d_ 00238 } // namespace serialization 00239 } // namespace ros 00240 00241 namespace ros 00242 { 00243 namespace message_operations 00244 { 00245 00246 template<class ContainerAllocator> 00247 struct Printer< ::walk_msgs::PathPoint3d_<ContainerAllocator> > 00248 { 00249 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::walk_msgs::PathPoint3d_<ContainerAllocator> & v) 00250 { 00251 s << indent << "header: "; 00252 s << std::endl; 00253 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00254 s << indent << "points[]" << std::endl; 00255 for (size_t i = 0; i < v.points.size(); ++i) 00256 { 00257 s << indent << " points[" << i << "]: "; 00258 s << std::endl; 00259 s << indent; 00260 Printer< ::geometry_msgs::PointStamped_<ContainerAllocator> >::stream(s, indent + " ", v.points[i]); 00261 } 00262 } 00263 }; 00264 00265 00266 } // namespace message_operations 00267 } // namespace ros 00268 00269 #endif // WALK_MSGS_MESSAGE_PATHPOINT3D_H 00270