00001
00002 #ifndef BASE_LOCAL_PLANNER_MESSAGE_POSITION2DINT_H
00003 #define BASE_LOCAL_PLANNER_MESSAGE_POSITION2DINT_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
00014 namespace base_local_planner
00015 {
00016 template <class ContainerAllocator>
00017 struct Position2DInt_ : public ros::Message
00018 {
00019 typedef Position2DInt_<ContainerAllocator> Type;
00020
00021 Position2DInt_()
00022 : x(0)
00023 , y(0)
00024 {
00025 }
00026
00027 Position2DInt_(const ContainerAllocator& _alloc)
00028 : x(0)
00029 , y(0)
00030 {
00031 }
00032
00033 typedef int64_t _x_type;
00034 int64_t x;
00035
00036 typedef int64_t _y_type;
00037 int64_t y;
00038
00039
00040 private:
00041 static const char* __s_getDataType_() { return "base_local_planner/Position2DInt"; }
00042 public:
00043 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00044
00045 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00046
00047 private:
00048 static const char* __s_getMD5Sum_() { return "3b834ede922a0fff22c43585c533b49f"; }
00049 public:
00050 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00051
00052 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00053
00054 private:
00055 static const char* __s_getMessageDefinition_() { return "int64 x\n\
00056 int64 y\n\
00057 "; }
00058 public:
00059 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00060
00061 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00062
00063 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00064 {
00065 ros::serialization::OStream stream(write_ptr, 1000000000);
00066 ros::serialization::serialize(stream, x);
00067 ros::serialization::serialize(stream, y);
00068 return stream.getData();
00069 }
00070
00071 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00072 {
00073 ros::serialization::IStream stream(read_ptr, 1000000000);
00074 ros::serialization::deserialize(stream, x);
00075 ros::serialization::deserialize(stream, y);
00076 return stream.getData();
00077 }
00078
00079 ROS_DEPRECATED virtual uint32_t serializationLength() const
00080 {
00081 uint32_t size = 0;
00082 size += ros::serialization::serializationLength(x);
00083 size += ros::serialization::serializationLength(y);
00084 return size;
00085 }
00086
00087 typedef boost::shared_ptr< ::base_local_planner::Position2DInt_<ContainerAllocator> > Ptr;
00088 typedef boost::shared_ptr< ::base_local_planner::Position2DInt_<ContainerAllocator> const> ConstPtr;
00089 };
00090 typedef ::base_local_planner::Position2DInt_<std::allocator<void> > Position2DInt;
00091
00092 typedef boost::shared_ptr< ::base_local_planner::Position2DInt> Position2DIntPtr;
00093 typedef boost::shared_ptr< ::base_local_planner::Position2DInt const> Position2DIntConstPtr;
00094
00095
00096 template<typename ContainerAllocator>
00097 std::ostream& operator<<(std::ostream& s, const ::base_local_planner::Position2DInt_<ContainerAllocator> & v)
00098 {
00099 ros::message_operations::Printer< ::base_local_planner::Position2DInt_<ContainerAllocator> >::stream(s, "", v);
00100 return s;}
00101
00102 }
00103
00104 namespace ros
00105 {
00106 namespace message_traits
00107 {
00108 template<class ContainerAllocator>
00109 struct MD5Sum< ::base_local_planner::Position2DInt_<ContainerAllocator> > {
00110 static const char* value()
00111 {
00112 return "3b834ede922a0fff22c43585c533b49f";
00113 }
00114
00115 static const char* value(const ::base_local_planner::Position2DInt_<ContainerAllocator> &) { return value(); }
00116 static const uint64_t static_value1 = 0x3b834ede922a0fffULL;
00117 static const uint64_t static_value2 = 0x22c43585c533b49fULL;
00118 };
00119
00120 template<class ContainerAllocator>
00121 struct DataType< ::base_local_planner::Position2DInt_<ContainerAllocator> > {
00122 static const char* value()
00123 {
00124 return "base_local_planner/Position2DInt";
00125 }
00126
00127 static const char* value(const ::base_local_planner::Position2DInt_<ContainerAllocator> &) { return value(); }
00128 };
00129
00130 template<class ContainerAllocator>
00131 struct Definition< ::base_local_planner::Position2DInt_<ContainerAllocator> > {
00132 static const char* value()
00133 {
00134 return "int64 x\n\
00135 int64 y\n\
00136 ";
00137 }
00138
00139 static const char* value(const ::base_local_planner::Position2DInt_<ContainerAllocator> &) { return value(); }
00140 };
00141
00142 template<class ContainerAllocator> struct IsFixedSize< ::base_local_planner::Position2DInt_<ContainerAllocator> > : public TrueType {};
00143 }
00144 }
00145
00146 namespace ros
00147 {
00148 namespace serialization
00149 {
00150
00151 template<class ContainerAllocator> struct Serializer< ::base_local_planner::Position2DInt_<ContainerAllocator> >
00152 {
00153 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00154 {
00155 stream.next(m.x);
00156 stream.next(m.y);
00157 }
00158
00159 ROS_DECLARE_ALLINONE_SERIALIZER;
00160 };
00161 }
00162 }
00163
00164 namespace ros
00165 {
00166 namespace message_operations
00167 {
00168
00169 template<class ContainerAllocator>
00170 struct Printer< ::base_local_planner::Position2DInt_<ContainerAllocator> >
00171 {
00172 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::base_local_planner::Position2DInt_<ContainerAllocator> & v)
00173 {
00174 s << indent << "x: ";
00175 Printer<int64_t>::stream(s, indent + " ", v.x);
00176 s << indent << "y: ";
00177 Printer<int64_t>::stream(s, indent + " ", v.y);
00178 }
00179 };
00180
00181
00182 }
00183 }
00184
00185 #endif // BASE_LOCAL_PLANNER_MESSAGE_POSITION2DINT_H
00186