Go to the documentation of this file.00001
00002 #ifndef SPLINE_SMOOTHER_MESSAGE_LSPBSPLINECOEFFICIENTS_H
00003 #define SPLINE_SMOOTHER_MESSAGE_LSPBSPLINECOEFFICIENTS_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 spline_smoother
00019 {
00020 template <class ContainerAllocator>
00021 struct LSPBSplineCoefficients_ {
00022 typedef LSPBSplineCoefficients_<ContainerAllocator> Type;
00023
00024 LSPBSplineCoefficients_()
00025 : coefficients()
00026 , linear_segment_duration(0.0)
00027 , quadratic_segment_duration(0.0)
00028 {
00029 }
00030
00031 LSPBSplineCoefficients_(const ContainerAllocator& _alloc)
00032 : coefficients(_alloc)
00033 , linear_segment_duration(0.0)
00034 , quadratic_segment_duration(0.0)
00035 {
00036 }
00037
00038 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _coefficients_type;
00039 std::vector<double, typename ContainerAllocator::template rebind<double>::other > coefficients;
00040
00041 typedef double _linear_segment_duration_type;
00042 double linear_segment_duration;
00043
00044 typedef double _quadratic_segment_duration_type;
00045 double quadratic_segment_duration;
00046
00047
00048 typedef boost::shared_ptr< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::spline_smoother::LSPBSplineCoefficients_<std::allocator<void> > LSPBSplineCoefficients;
00053
00054 typedef boost::shared_ptr< ::spline_smoother::LSPBSplineCoefficients> LSPBSplineCoefficientsPtr;
00055 typedef boost::shared_ptr< ::spline_smoother::LSPBSplineCoefficients const> LSPBSplineCoefficientsConstPtr;
00056
00057
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> & v)
00060 {
00061 ros::message_operations::Printer< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> >::stream(s, "", v);
00062 return s;}
00063
00064 }
00065
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> > {
00074 static const char* value()
00075 {
00076 return "c00dc8b55f1156bf5a7d2645875397b1";
00077 }
00078
00079 static const char* value(const ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> &) { return value(); }
00080 static const uint64_t static_value1 = 0xc00dc8b55f1156bfULL;
00081 static const uint64_t static_value2 = 0x5a7d2645875397b1ULL;
00082 };
00083
00084 template<class ContainerAllocator>
00085 struct DataType< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> > {
00086 static const char* value()
00087 {
00088 return "spline_smoother/LSPBSplineCoefficients";
00089 }
00090
00091 static const char* value(const ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> &) { return value(); }
00092 };
00093
00094 template<class ContainerAllocator>
00095 struct Definition< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> > {
00096 static const char* value()
00097 {
00098 return "float64[] coefficients\n\
00099 float64 linear_segment_duration\n\
00100 float64 quadratic_segment_duration\n\
00101 ";
00102 }
00103
00104 static const char* value(const ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> &) { return value(); }
00105 };
00106
00107 }
00108 }
00109
00110 namespace ros
00111 {
00112 namespace serialization
00113 {
00114
00115 template<class ContainerAllocator> struct Serializer< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> >
00116 {
00117 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00118 {
00119 stream.next(m.coefficients);
00120 stream.next(m.linear_segment_duration);
00121 stream.next(m.quadratic_segment_duration);
00122 }
00123
00124 ROS_DECLARE_ALLINONE_SERIALIZER;
00125 };
00126 }
00127 }
00128
00129 namespace ros
00130 {
00131 namespace message_operations
00132 {
00133
00134 template<class ContainerAllocator>
00135 struct Printer< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> >
00136 {
00137 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> & v)
00138 {
00139 s << indent << "coefficients[]" << std::endl;
00140 for (size_t i = 0; i < v.coefficients.size(); ++i)
00141 {
00142 s << indent << " coefficients[" << i << "]: ";
00143 Printer<double>::stream(s, indent + " ", v.coefficients[i]);
00144 }
00145 s << indent << "linear_segment_duration: ";
00146 Printer<double>::stream(s, indent + " ", v.linear_segment_duration);
00147 s << indent << "quadratic_segment_duration: ";
00148 Printer<double>::stream(s, indent + " ", v.quadratic_segment_duration);
00149 }
00150 };
00151
00152
00153 }
00154 }
00155
00156 #endif // SPLINE_SMOOTHER_MESSAGE_LSPBSPLINECOEFFICIENTS_H
00157