Go to the documentation of this file.00001
00002 #ifndef SBA_MESSAGE_WORLDPOINT_H
00003 #define SBA_MESSAGE_WORLDPOINT_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
00018 namespace sba
00019 {
00020 template <class ContainerAllocator>
00021 struct WorldPoint_ {
00022 typedef WorldPoint_<ContainerAllocator> Type;
00023
00024 WorldPoint_()
00025 : index(0)
00026 , x(0.0)
00027 , y(0.0)
00028 , z(0.0)
00029 , w(0.0)
00030 {
00031 }
00032
00033 WorldPoint_(const ContainerAllocator& _alloc)
00034 : index(0)
00035 , x(0.0)
00036 , y(0.0)
00037 , z(0.0)
00038 , w(0.0)
00039 {
00040 }
00041
00042 typedef uint32_t _index_type;
00043 uint32_t index;
00044
00045 typedef double _x_type;
00046 double x;
00047
00048 typedef double _y_type;
00049 double y;
00050
00051 typedef double _z_type;
00052 double z;
00053
00054 typedef double _w_type;
00055 double w;
00056
00057
00058 typedef boost::shared_ptr< ::sba::WorldPoint_<ContainerAllocator> > Ptr;
00059 typedef boost::shared_ptr< ::sba::WorldPoint_<ContainerAllocator> const> ConstPtr;
00060 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00061 };
00062 typedef ::sba::WorldPoint_<std::allocator<void> > WorldPoint;
00063
00064 typedef boost::shared_ptr< ::sba::WorldPoint> WorldPointPtr;
00065 typedef boost::shared_ptr< ::sba::WorldPoint const> WorldPointConstPtr;
00066
00067
00068 template<typename ContainerAllocator>
00069 std::ostream& operator<<(std::ostream& s, const ::sba::WorldPoint_<ContainerAllocator> & v)
00070 {
00071 ros::message_operations::Printer< ::sba::WorldPoint_<ContainerAllocator> >::stream(s, "", v);
00072 return s;}
00073
00074 }
00075
00076 namespace ros
00077 {
00078 namespace message_traits
00079 {
00080 template<class ContainerAllocator> struct IsMessage< ::sba::WorldPoint_<ContainerAllocator> > : public TrueType {};
00081 template<class ContainerAllocator> struct IsMessage< ::sba::WorldPoint_<ContainerAllocator> const> : public TrueType {};
00082 template<class ContainerAllocator>
00083 struct MD5Sum< ::sba::WorldPoint_<ContainerAllocator> > {
00084 static const char* value()
00085 {
00086 return "39d176a0b9c218409063b0b8e9be53a7";
00087 }
00088
00089 static const char* value(const ::sba::WorldPoint_<ContainerAllocator> &) { return value(); }
00090 static const uint64_t static_value1 = 0x39d176a0b9c21840ULL;
00091 static const uint64_t static_value2 = 0x9063b0b8e9be53a7ULL;
00092 };
00093
00094 template<class ContainerAllocator>
00095 struct DataType< ::sba::WorldPoint_<ContainerAllocator> > {
00096 static const char* value()
00097 {
00098 return "sba/WorldPoint";
00099 }
00100
00101 static const char* value(const ::sba::WorldPoint_<ContainerAllocator> &) { return value(); }
00102 };
00103
00104 template<class ContainerAllocator>
00105 struct Definition< ::sba::WorldPoint_<ContainerAllocator> > {
00106 static const char* value()
00107 {
00108 return "# World Point parameters\n\
00109 \n\
00110 # Point index\n\
00111 uint32 index\n\
00112 \n\
00113 # Coordinates in the world frame\n\
00114 float64 x\n\
00115 float64 y\n\
00116 float64 z\n\
00117 float64 w\n\
00118 \n\
00119 ";
00120 }
00121
00122 static const char* value(const ::sba::WorldPoint_<ContainerAllocator> &) { return value(); }
00123 };
00124
00125 template<class ContainerAllocator> struct IsFixedSize< ::sba::WorldPoint_<ContainerAllocator> > : public TrueType {};
00126 }
00127 }
00128
00129 namespace ros
00130 {
00131 namespace serialization
00132 {
00133
00134 template<class ContainerAllocator> struct Serializer< ::sba::WorldPoint_<ContainerAllocator> >
00135 {
00136 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00137 {
00138 stream.next(m.index);
00139 stream.next(m.x);
00140 stream.next(m.y);
00141 stream.next(m.z);
00142 stream.next(m.w);
00143 }
00144
00145 ROS_DECLARE_ALLINONE_SERIALIZER;
00146 };
00147 }
00148 }
00149
00150 namespace ros
00151 {
00152 namespace message_operations
00153 {
00154
00155 template<class ContainerAllocator>
00156 struct Printer< ::sba::WorldPoint_<ContainerAllocator> >
00157 {
00158 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sba::WorldPoint_<ContainerAllocator> & v)
00159 {
00160 s << indent << "index: ";
00161 Printer<uint32_t>::stream(s, indent + " ", v.index);
00162 s << indent << "x: ";
00163 Printer<double>::stream(s, indent + " ", v.x);
00164 s << indent << "y: ";
00165 Printer<double>::stream(s, indent + " ", v.y);
00166 s << indent << "z: ";
00167 Printer<double>::stream(s, indent + " ", v.z);
00168 s << indent << "w: ";
00169 Printer<double>::stream(s, indent + " ", v.w);
00170 }
00171 };
00172
00173
00174 }
00175 }
00176
00177 #endif // SBA_MESSAGE_WORLDPOINT_H
00178