Go to the documentation of this file.00001
00002 #ifndef COROBOT_MSGS_MESSAGE_SPATIAL_H
00003 #define COROBOT_MSGS_MESSAGE_SPATIAL_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 corobot_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct spatial_ {
00022 typedef spatial_<ContainerAllocator> Type;
00023
00024 spatial_()
00025 : acc1(0.0)
00026 , acc2(0.0)
00027 , acc3(0.0)
00028 , ang1(0.0)
00029 , ang2(0.0)
00030 , ang3(0.0)
00031 , mag1(0.0)
00032 , mag2(0.0)
00033 , mag3(0.0)
00034 {
00035 }
00036
00037 spatial_(const ContainerAllocator& _alloc)
00038 : acc1(0.0)
00039 , acc2(0.0)
00040 , acc3(0.0)
00041 , ang1(0.0)
00042 , ang2(0.0)
00043 , ang3(0.0)
00044 , mag1(0.0)
00045 , mag2(0.0)
00046 , mag3(0.0)
00047 {
00048 }
00049
00050 typedef float _acc1_type;
00051 float acc1;
00052
00053 typedef float _acc2_type;
00054 float acc2;
00055
00056 typedef float _acc3_type;
00057 float acc3;
00058
00059 typedef float _ang1_type;
00060 float ang1;
00061
00062 typedef float _ang2_type;
00063 float ang2;
00064
00065 typedef float _ang3_type;
00066 float ang3;
00067
00068 typedef float _mag1_type;
00069 float mag1;
00070
00071 typedef float _mag2_type;
00072 float mag2;
00073
00074 typedef float _mag3_type;
00075 float mag3;
00076
00077
00078 typedef boost::shared_ptr< ::corobot_msgs::spatial_<ContainerAllocator> > Ptr;
00079 typedef boost::shared_ptr< ::corobot_msgs::spatial_<ContainerAllocator> const> ConstPtr;
00080 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00081 };
00082 typedef ::corobot_msgs::spatial_<std::allocator<void> > spatial;
00083
00084 typedef boost::shared_ptr< ::corobot_msgs::spatial> spatialPtr;
00085 typedef boost::shared_ptr< ::corobot_msgs::spatial const> spatialConstPtr;
00086
00087
00088 template<typename ContainerAllocator>
00089 std::ostream& operator<<(std::ostream& s, const ::corobot_msgs::spatial_<ContainerAllocator> & v)
00090 {
00091 ros::message_operations::Printer< ::corobot_msgs::spatial_<ContainerAllocator> >::stream(s, "", v);
00092 return s;}
00093
00094 }
00095
00096 namespace ros
00097 {
00098 namespace message_traits
00099 {
00100 template<class ContainerAllocator> struct IsMessage< ::corobot_msgs::spatial_<ContainerAllocator> > : public TrueType {};
00101 template<class ContainerAllocator> struct IsMessage< ::corobot_msgs::spatial_<ContainerAllocator> const> : public TrueType {};
00102 template<class ContainerAllocator>
00103 struct MD5Sum< ::corobot_msgs::spatial_<ContainerAllocator> > {
00104 static const char* value()
00105 {
00106 return "88d5070ee7206e7a7c6044849f478293";
00107 }
00108
00109 static const char* value(const ::corobot_msgs::spatial_<ContainerAllocator> &) { return value(); }
00110 static const uint64_t static_value1 = 0x88d5070ee7206e7aULL;
00111 static const uint64_t static_value2 = 0x7c6044849f478293ULL;
00112 };
00113
00114 template<class ContainerAllocator>
00115 struct DataType< ::corobot_msgs::spatial_<ContainerAllocator> > {
00116 static const char* value()
00117 {
00118 return "corobot_msgs/spatial";
00119 }
00120
00121 static const char* value(const ::corobot_msgs::spatial_<ContainerAllocator> &) { return value(); }
00122 };
00123
00124 template<class ContainerAllocator>
00125 struct Definition< ::corobot_msgs::spatial_<ContainerAllocator> > {
00126 static const char* value()
00127 {
00128 return "float32 acc1\n\
00129 float32 acc2\n\
00130 float32 acc3\n\
00131 \n\
00132 float32 ang1\n\
00133 float32 ang2\n\
00134 float32 ang3\n\
00135 \n\
00136 float32 mag1\n\
00137 float32 mag2\n\
00138 float32 mag3\n\
00139 \n\
00140 ";
00141 }
00142
00143 static const char* value(const ::corobot_msgs::spatial_<ContainerAllocator> &) { return value(); }
00144 };
00145
00146 template<class ContainerAllocator> struct IsFixedSize< ::corobot_msgs::spatial_<ContainerAllocator> > : public TrueType {};
00147 }
00148 }
00149
00150 namespace ros
00151 {
00152 namespace serialization
00153 {
00154
00155 template<class ContainerAllocator> struct Serializer< ::corobot_msgs::spatial_<ContainerAllocator> >
00156 {
00157 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00158 {
00159 stream.next(m.acc1);
00160 stream.next(m.acc2);
00161 stream.next(m.acc3);
00162 stream.next(m.ang1);
00163 stream.next(m.ang2);
00164 stream.next(m.ang3);
00165 stream.next(m.mag1);
00166 stream.next(m.mag2);
00167 stream.next(m.mag3);
00168 }
00169
00170 ROS_DECLARE_ALLINONE_SERIALIZER;
00171 };
00172 }
00173 }
00174
00175 namespace ros
00176 {
00177 namespace message_operations
00178 {
00179
00180 template<class ContainerAllocator>
00181 struct Printer< ::corobot_msgs::spatial_<ContainerAllocator> >
00182 {
00183 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::corobot_msgs::spatial_<ContainerAllocator> & v)
00184 {
00185 s << indent << "acc1: ";
00186 Printer<float>::stream(s, indent + " ", v.acc1);
00187 s << indent << "acc2: ";
00188 Printer<float>::stream(s, indent + " ", v.acc2);
00189 s << indent << "acc3: ";
00190 Printer<float>::stream(s, indent + " ", v.acc3);
00191 s << indent << "ang1: ";
00192 Printer<float>::stream(s, indent + " ", v.ang1);
00193 s << indent << "ang2: ";
00194 Printer<float>::stream(s, indent + " ", v.ang2);
00195 s << indent << "ang3: ";
00196 Printer<float>::stream(s, indent + " ", v.ang3);
00197 s << indent << "mag1: ";
00198 Printer<float>::stream(s, indent + " ", v.mag1);
00199 s << indent << "mag2: ";
00200 Printer<float>::stream(s, indent + " ", v.mag2);
00201 s << indent << "mag3: ";
00202 Printer<float>::stream(s, indent + " ", v.mag3);
00203 }
00204 };
00205
00206
00207 }
00208 }
00209
00210 #endif // COROBOT_MSGS_MESSAGE_SPATIAL_H
00211