00001
00002 #ifndef SPLINE_SMOOTHER_MESSAGE_SPLINECOEFFICIENTS_H
00003 #define SPLINE_SMOOTHER_MESSAGE_SPLINECOEFFICIENTS_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 SplineCoefficients_ {
00022 typedef SplineCoefficients_<ContainerAllocator> Type;
00023
00024 SplineCoefficients_()
00025 : coefficients()
00026 {
00027 }
00028
00029 SplineCoefficients_(const ContainerAllocator& _alloc)
00030 : coefficients(_alloc)
00031 {
00032 }
00033
00034 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _coefficients_type;
00035 std::vector<double, typename ContainerAllocator::template rebind<double>::other > coefficients;
00036
00037
00038 ROS_DEPRECATED uint32_t get_coefficients_size() const { return (uint32_t)coefficients.size(); }
00039 ROS_DEPRECATED void set_coefficients_size(uint32_t size) { coefficients.resize((size_t)size); }
00040 ROS_DEPRECATED void get_coefficients_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->coefficients; }
00041 ROS_DEPRECATED void set_coefficients_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->coefficients = vec; }
00042 private:
00043 static const char* __s_getDataType_() { return "spline_smoother/SplineCoefficients"; }
00044 public:
00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00046
00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00048
00049 private:
00050 static const char* __s_getMD5Sum_() { return "c4e5d982f9108827e742320d3c247546"; }
00051 public:
00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00053
00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00055
00056 private:
00057 static const char* __s_getMessageDefinition_() { return "float64[] coefficients\n\
00058 \n\
00059 "; }
00060 public:
00061 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00062
00063 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00064
00065 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00066 {
00067 ros::serialization::OStream stream(write_ptr, 1000000000);
00068 ros::serialization::serialize(stream, coefficients);
00069 return stream.getData();
00070 }
00071
00072 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00073 {
00074 ros::serialization::IStream stream(read_ptr, 1000000000);
00075 ros::serialization::deserialize(stream, coefficients);
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(coefficients);
00083 return size;
00084 }
00085
00086 typedef boost::shared_ptr< ::spline_smoother::SplineCoefficients_<ContainerAllocator> > Ptr;
00087 typedef boost::shared_ptr< ::spline_smoother::SplineCoefficients_<ContainerAllocator> const> ConstPtr;
00088 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00089 };
00090 typedef ::spline_smoother::SplineCoefficients_<std::allocator<void> > SplineCoefficients;
00091
00092 typedef boost::shared_ptr< ::spline_smoother::SplineCoefficients> SplineCoefficientsPtr;
00093 typedef boost::shared_ptr< ::spline_smoother::SplineCoefficients const> SplineCoefficientsConstPtr;
00094
00095
00096 template<typename ContainerAllocator>
00097 std::ostream& operator<<(std::ostream& s, const ::spline_smoother::SplineCoefficients_<ContainerAllocator> & v)
00098 {
00099 ros::message_operations::Printer< ::spline_smoother::SplineCoefficients_<ContainerAllocator> >::stream(s, "", v);
00100 return s;}
00101
00102 }
00103
00104 namespace ros
00105 {
00106 namespace message_traits
00107 {
00108 template<class ContainerAllocator> struct IsMessage< ::spline_smoother::SplineCoefficients_<ContainerAllocator> > : public TrueType {};
00109 template<class ContainerAllocator> struct IsMessage< ::spline_smoother::SplineCoefficients_<ContainerAllocator> const> : public TrueType {};
00110 template<class ContainerAllocator>
00111 struct MD5Sum< ::spline_smoother::SplineCoefficients_<ContainerAllocator> > {
00112 static const char* value()
00113 {
00114 return "c4e5d982f9108827e742320d3c247546";
00115 }
00116
00117 static const char* value(const ::spline_smoother::SplineCoefficients_<ContainerAllocator> &) { return value(); }
00118 static const uint64_t static_value1 = 0xc4e5d982f9108827ULL;
00119 static const uint64_t static_value2 = 0xe742320d3c247546ULL;
00120 };
00121
00122 template<class ContainerAllocator>
00123 struct DataType< ::spline_smoother::SplineCoefficients_<ContainerAllocator> > {
00124 static const char* value()
00125 {
00126 return "spline_smoother/SplineCoefficients";
00127 }
00128
00129 static const char* value(const ::spline_smoother::SplineCoefficients_<ContainerAllocator> &) { return value(); }
00130 };
00131
00132 template<class ContainerAllocator>
00133 struct Definition< ::spline_smoother::SplineCoefficients_<ContainerAllocator> > {
00134 static const char* value()
00135 {
00136 return "float64[] coefficients\n\
00137 \n\
00138 ";
00139 }
00140
00141 static const char* value(const ::spline_smoother::SplineCoefficients_<ContainerAllocator> &) { return value(); }
00142 };
00143
00144 }
00145 }
00146
00147 namespace ros
00148 {
00149 namespace serialization
00150 {
00151
00152 template<class ContainerAllocator> struct Serializer< ::spline_smoother::SplineCoefficients_<ContainerAllocator> >
00153 {
00154 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00155 {
00156 stream.next(m.coefficients);
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< ::spline_smoother::SplineCoefficients_<ContainerAllocator> >
00171 {
00172 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::spline_smoother::SplineCoefficients_<ContainerAllocator> & v)
00173 {
00174 s << indent << "coefficients[]" << std::endl;
00175 for (size_t i = 0; i < v.coefficients.size(); ++i)
00176 {
00177 s << indent << " coefficients[" << i << "]: ";
00178 Printer<double>::stream(s, indent + " ", v.coefficients[i]);
00179 }
00180 }
00181 };
00182
00183
00184 }
00185 }
00186
00187 #endif // SPLINE_SMOOTHER_MESSAGE_SPLINECOEFFICIENTS_H
00188