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