00001
00002 #ifndef SBA_MESSAGE_WORLDPOINT_H
00003 #define SBA_MESSAGE_WORLDPOINT_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 sba
00015 {
00016 template <class ContainerAllocator>
00017 struct WorldPoint_ : public ros::Message
00018 {
00019 typedef WorldPoint_<ContainerAllocator> Type;
00020
00021 WorldPoint_()
00022 : index(0)
00023 , x(0.0)
00024 , y(0.0)
00025 , z(0.0)
00026 , w(0.0)
00027 {
00028 }
00029
00030 WorldPoint_(const ContainerAllocator& _alloc)
00031 : index(0)
00032 , x(0.0)
00033 , y(0.0)
00034 , z(0.0)
00035 , w(0.0)
00036 {
00037 }
00038
00039 typedef uint32_t _index_type;
00040 uint32_t index;
00041
00042 typedef double _x_type;
00043 double x;
00044
00045 typedef double _y_type;
00046 double y;
00047
00048 typedef double _z_type;
00049 double z;
00050
00051 typedef double _w_type;
00052 double w;
00053
00054
00055 private:
00056 static const char* __s_getDataType_() { return "sba/WorldPoint"; }
00057 public:
00058 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00059
00060 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00061
00062 private:
00063 static const char* __s_getMD5Sum_() { return "39d176a0b9c218409063b0b8e9be53a7"; }
00064 public:
00065 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00066
00067 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00068
00069 private:
00070 static const char* __s_getMessageDefinition_() { return "# World Point parameters\n\
00071 \n\
00072 # Point index\n\
00073 uint32 index\n\
00074 \n\
00075 # Coordinates in the world frame\n\
00076 float64 x\n\
00077 float64 y\n\
00078 float64 z\n\
00079 float64 w\n\
00080 \n\
00081 "; }
00082 public:
00083 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00084
00085 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00086
00087 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00088 {
00089 ros::serialization::OStream stream(write_ptr, 1000000000);
00090 ros::serialization::serialize(stream, index);
00091 ros::serialization::serialize(stream, x);
00092 ros::serialization::serialize(stream, y);
00093 ros::serialization::serialize(stream, z);
00094 ros::serialization::serialize(stream, w);
00095 return stream.getData();
00096 }
00097
00098 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00099 {
00100 ros::serialization::IStream stream(read_ptr, 1000000000);
00101 ros::serialization::deserialize(stream, index);
00102 ros::serialization::deserialize(stream, x);
00103 ros::serialization::deserialize(stream, y);
00104 ros::serialization::deserialize(stream, z);
00105 ros::serialization::deserialize(stream, w);
00106 return stream.getData();
00107 }
00108
00109 ROS_DEPRECATED virtual uint32_t serializationLength() const
00110 {
00111 uint32_t size = 0;
00112 size += ros::serialization::serializationLength(index);
00113 size += ros::serialization::serializationLength(x);
00114 size += ros::serialization::serializationLength(y);
00115 size += ros::serialization::serializationLength(z);
00116 size += ros::serialization::serializationLength(w);
00117 return size;
00118 }
00119
00120 typedef boost::shared_ptr< ::sba::WorldPoint_<ContainerAllocator> > Ptr;
00121 typedef boost::shared_ptr< ::sba::WorldPoint_<ContainerAllocator> const> ConstPtr;
00122 };
00123 typedef ::sba::WorldPoint_<std::allocator<void> > WorldPoint;
00124
00125 typedef boost::shared_ptr< ::sba::WorldPoint> WorldPointPtr;
00126 typedef boost::shared_ptr< ::sba::WorldPoint const> WorldPointConstPtr;
00127
00128
00129 template<typename ContainerAllocator>
00130 std::ostream& operator<<(std::ostream& s, const ::sba::WorldPoint_<ContainerAllocator> & v)
00131 {
00132 ros::message_operations::Printer< ::sba::WorldPoint_<ContainerAllocator> >::stream(s, "", v);
00133 return s;}
00134
00135 }
00136
00137 namespace ros
00138 {
00139 namespace message_traits
00140 {
00141 template<class ContainerAllocator>
00142 struct MD5Sum< ::sba::WorldPoint_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "39d176a0b9c218409063b0b8e9be53a7";
00146 }
00147
00148 static const char* value(const ::sba::WorldPoint_<ContainerAllocator> &) { return value(); }
00149 static const uint64_t static_value1 = 0x39d176a0b9c21840ULL;
00150 static const uint64_t static_value2 = 0x9063b0b8e9be53a7ULL;
00151 };
00152
00153 template<class ContainerAllocator>
00154 struct DataType< ::sba::WorldPoint_<ContainerAllocator> > {
00155 static const char* value()
00156 {
00157 return "sba/WorldPoint";
00158 }
00159
00160 static const char* value(const ::sba::WorldPoint_<ContainerAllocator> &) { return value(); }
00161 };
00162
00163 template<class ContainerAllocator>
00164 struct Definition< ::sba::WorldPoint_<ContainerAllocator> > {
00165 static const char* value()
00166 {
00167 return "# World Point parameters\n\
00168 \n\
00169 # Point index\n\
00170 uint32 index\n\
00171 \n\
00172 # Coordinates in the world frame\n\
00173 float64 x\n\
00174 float64 y\n\
00175 float64 z\n\
00176 float64 w\n\
00177 \n\
00178 ";
00179 }
00180
00181 static const char* value(const ::sba::WorldPoint_<ContainerAllocator> &) { return value(); }
00182 };
00183
00184 template<class ContainerAllocator> struct IsFixedSize< ::sba::WorldPoint_<ContainerAllocator> > : public TrueType {};
00185 }
00186 }
00187
00188 namespace ros
00189 {
00190 namespace serialization
00191 {
00192
00193 template<class ContainerAllocator> struct Serializer< ::sba::WorldPoint_<ContainerAllocator> >
00194 {
00195 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00196 {
00197 stream.next(m.index);
00198 stream.next(m.x);
00199 stream.next(m.y);
00200 stream.next(m.z);
00201 stream.next(m.w);
00202 }
00203
00204 ROS_DECLARE_ALLINONE_SERIALIZER;
00205 };
00206 }
00207 }
00208
00209 namespace ros
00210 {
00211 namespace message_operations
00212 {
00213
00214 template<class ContainerAllocator>
00215 struct Printer< ::sba::WorldPoint_<ContainerAllocator> >
00216 {
00217 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sba::WorldPoint_<ContainerAllocator> & v)
00218 {
00219 s << indent << "index: ";
00220 Printer<uint32_t>::stream(s, indent + " ", v.index);
00221 s << indent << "x: ";
00222 Printer<double>::stream(s, indent + " ", v.x);
00223 s << indent << "y: ";
00224 Printer<double>::stream(s, indent + " ", v.y);
00225 s << indent << "z: ";
00226 Printer<double>::stream(s, indent + " ", v.z);
00227 s << indent << "w: ";
00228 Printer<double>::stream(s, indent + " ", v.w);
00229 }
00230 };
00231
00232
00233 }
00234 }
00235
00236 #endif // SBA_MESSAGE_WORLDPOINT_H
00237