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