$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-arm_navigation/doc_stacks/2013-03-01_14-05-03.553953/arm_navigation/spline_smoother/msg/LSPBSplineCoefficients.msg */ 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 ROS_DEPRECATED uint32_t get_coefficients_size() const { return (uint32_t)coefficients.size(); } 00049 ROS_DEPRECATED void set_coefficients_size(uint32_t size) { coefficients.resize((size_t)size); } 00050 ROS_DEPRECATED void get_coefficients_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->coefficients; } 00051 ROS_DEPRECATED void set_coefficients_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->coefficients = vec; } 00052 private: 00053 static const char* __s_getDataType_() { return "spline_smoother/LSPBSplineCoefficients"; } 00054 public: 00055 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00056 00057 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00058 00059 private: 00060 static const char* __s_getMD5Sum_() { return "c00dc8b55f1156bf5a7d2645875397b1"; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00063 00064 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00065 00066 private: 00067 static const char* __s_getMessageDefinition_() { return "float64[] coefficients\n\ 00068 float64 linear_segment_duration\n\ 00069 float64 quadratic_segment_duration\n\ 00070 "; } 00071 public: 00072 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00073 00074 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00075 00076 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00077 { 00078 ros::serialization::OStream stream(write_ptr, 1000000000); 00079 ros::serialization::serialize(stream, coefficients); 00080 ros::serialization::serialize(stream, linear_segment_duration); 00081 ros::serialization::serialize(stream, quadratic_segment_duration); 00082 return stream.getData(); 00083 } 00084 00085 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00086 { 00087 ros::serialization::IStream stream(read_ptr, 1000000000); 00088 ros::serialization::deserialize(stream, coefficients); 00089 ros::serialization::deserialize(stream, linear_segment_duration); 00090 ros::serialization::deserialize(stream, quadratic_segment_duration); 00091 return stream.getData(); 00092 } 00093 00094 ROS_DEPRECATED virtual uint32_t serializationLength() const 00095 { 00096 uint32_t size = 0; 00097 size += ros::serialization::serializationLength(coefficients); 00098 size += ros::serialization::serializationLength(linear_segment_duration); 00099 size += ros::serialization::serializationLength(quadratic_segment_duration); 00100 return size; 00101 } 00102 00103 typedef boost::shared_ptr< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> > Ptr; 00104 typedef boost::shared_ptr< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> const> ConstPtr; 00105 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00106 }; // struct LSPBSplineCoefficients 00107 typedef ::spline_smoother::LSPBSplineCoefficients_<std::allocator<void> > LSPBSplineCoefficients; 00108 00109 typedef boost::shared_ptr< ::spline_smoother::LSPBSplineCoefficients> LSPBSplineCoefficientsPtr; 00110 typedef boost::shared_ptr< ::spline_smoother::LSPBSplineCoefficients const> LSPBSplineCoefficientsConstPtr; 00111 00112 00113 template<typename ContainerAllocator> 00114 std::ostream& operator<<(std::ostream& s, const ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> & v) 00115 { 00116 ros::message_operations::Printer< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> >::stream(s, "", v); 00117 return s;} 00118 00119 } // namespace spline_smoother 00120 00121 namespace ros 00122 { 00123 namespace message_traits 00124 { 00125 template<class ContainerAllocator> struct IsMessage< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> > : public TrueType {}; 00126 template<class ContainerAllocator> struct IsMessage< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> const> : public TrueType {}; 00127 template<class ContainerAllocator> 00128 struct MD5Sum< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> > { 00129 static const char* value() 00130 { 00131 return "c00dc8b55f1156bf5a7d2645875397b1"; 00132 } 00133 00134 static const char* value(const ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> &) { return value(); } 00135 static const uint64_t static_value1 = 0xc00dc8b55f1156bfULL; 00136 static const uint64_t static_value2 = 0x5a7d2645875397b1ULL; 00137 }; 00138 00139 template<class ContainerAllocator> 00140 struct DataType< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> > { 00141 static const char* value() 00142 { 00143 return "spline_smoother/LSPBSplineCoefficients"; 00144 } 00145 00146 static const char* value(const ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> &) { return value(); } 00147 }; 00148 00149 template<class ContainerAllocator> 00150 struct Definition< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> > { 00151 static const char* value() 00152 { 00153 return "float64[] coefficients\n\ 00154 float64 linear_segment_duration\n\ 00155 float64 quadratic_segment_duration\n\ 00156 "; 00157 } 00158 00159 static const char* value(const ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> &) { return value(); } 00160 }; 00161 00162 } // namespace message_traits 00163 } // namespace ros 00164 00165 namespace ros 00166 { 00167 namespace serialization 00168 { 00169 00170 template<class ContainerAllocator> struct Serializer< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> > 00171 { 00172 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00173 { 00174 stream.next(m.coefficients); 00175 stream.next(m.linear_segment_duration); 00176 stream.next(m.quadratic_segment_duration); 00177 } 00178 00179 ROS_DECLARE_ALLINONE_SERIALIZER; 00180 }; // struct LSPBSplineCoefficients_ 00181 } // namespace serialization 00182 } // namespace ros 00183 00184 namespace ros 00185 { 00186 namespace message_operations 00187 { 00188 00189 template<class ContainerAllocator> 00190 struct Printer< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> > 00191 { 00192 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> & v) 00193 { 00194 s << indent << "coefficients[]" << std::endl; 00195 for (size_t i = 0; i < v.coefficients.size(); ++i) 00196 { 00197 s << indent << " coefficients[" << i << "]: "; 00198 Printer<double>::stream(s, indent + " ", v.coefficients[i]); 00199 } 00200 s << indent << "linear_segment_duration: "; 00201 Printer<double>::stream(s, indent + " ", v.linear_segment_duration); 00202 s << indent << "quadratic_segment_duration: "; 00203 Printer<double>::stream(s, indent + " ", v.quadratic_segment_duration); 00204 } 00205 }; 00206 00207 00208 } // namespace message_operations 00209 } // namespace ros 00210 00211 #endif // SPLINE_SMOOTHER_MESSAGE_LSPBSPLINECOEFFICIENTS_H 00212