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