00001
00002 #ifndef SPLINE_SMOOTHER_MESSAGE_SPLINETRAJECTORYSEGMENT_H
00003 #define SPLINE_SMOOTHER_MESSAGE_SPLINETRAJECTORYSEGMENT_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "spline_smoother/SplineCoefficients.h"
00014
00015 namespace spline_smoother
00016 {
00017 template <class ContainerAllocator>
00018 struct SplineTrajectorySegment_ : public ros::Message
00019 {
00020 typedef SplineTrajectorySegment_<ContainerAllocator> Type;
00021
00022 SplineTrajectorySegment_()
00023 : duration()
00024 , joints()
00025 {
00026 }
00027
00028 SplineTrajectorySegment_(const ContainerAllocator& _alloc)
00029 : duration()
00030 , joints(_alloc)
00031 {
00032 }
00033
00034 typedef ros::Duration _duration_type;
00035 ros::Duration duration;
00036
00037 typedef std::vector< ::spline_smoother::SplineCoefficients_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::SplineCoefficients_<ContainerAllocator> >::other > _joints_type;
00038 std::vector< ::spline_smoother::SplineCoefficients_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::SplineCoefficients_<ContainerAllocator> >::other > joints;
00039
00040
00041 ROS_DEPRECATED uint32_t get_joints_size() const { return (uint32_t)joints.size(); }
00042 ROS_DEPRECATED void set_joints_size(uint32_t size) { joints.resize((size_t)size); }
00043 ROS_DEPRECATED void get_joints_vec(std::vector< ::spline_smoother::SplineCoefficients_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::SplineCoefficients_<ContainerAllocator> >::other > & vec) const { vec = this->joints; }
00044 ROS_DEPRECATED void set_joints_vec(const std::vector< ::spline_smoother::SplineCoefficients_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::SplineCoefficients_<ContainerAllocator> >::other > & vec) { this->joints = vec; }
00045 private:
00046 static const char* __s_getDataType_() { return "spline_smoother/SplineTrajectorySegment"; }
00047 public:
00048 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00049
00050 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00051
00052 private:
00053 static const char* __s_getMD5Sum_() { return "1c95257e91547459aede67dd02a209d6"; }
00054 public:
00055 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00056
00057 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00058
00059 private:
00060 static const char* __s_getMessageDefinition_() { return "duration duration\n\
00061 SplineCoefficients[] joints\n\
00062 \n\
00063 ================================================================================\n\
00064 MSG: spline_smoother/SplineCoefficients\n\
00065 float64[] coefficients\n\
00066 \n\
00067 "; }
00068 public:
00069 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00070
00071 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00072
00073 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00074 {
00075 ros::serialization::OStream stream(write_ptr, 1000000000);
00076 ros::serialization::serialize(stream, duration);
00077 ros::serialization::serialize(stream, joints);
00078 return stream.getData();
00079 }
00080
00081 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00082 {
00083 ros::serialization::IStream stream(read_ptr, 1000000000);
00084 ros::serialization::deserialize(stream, duration);
00085 ros::serialization::deserialize(stream, joints);
00086 return stream.getData();
00087 }
00088
00089 ROS_DEPRECATED virtual uint32_t serializationLength() const
00090 {
00091 uint32_t size = 0;
00092 size += ros::serialization::serializationLength(duration);
00093 size += ros::serialization::serializationLength(joints);
00094 return size;
00095 }
00096
00097 typedef boost::shared_ptr< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> > Ptr;
00098 typedef boost::shared_ptr< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> const> ConstPtr;
00099 };
00100 typedef ::spline_smoother::SplineTrajectorySegment_<std::allocator<void> > SplineTrajectorySegment;
00101
00102 typedef boost::shared_ptr< ::spline_smoother::SplineTrajectorySegment> SplineTrajectorySegmentPtr;
00103 typedef boost::shared_ptr< ::spline_smoother::SplineTrajectorySegment const> SplineTrajectorySegmentConstPtr;
00104
00105
00106 template<typename ContainerAllocator>
00107 std::ostream& operator<<(std::ostream& s, const ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> & v)
00108 {
00109 ros::message_operations::Printer< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> >::stream(s, "", v);
00110 return s;}
00111
00112 }
00113
00114 namespace ros
00115 {
00116 namespace message_traits
00117 {
00118 template<class ContainerAllocator>
00119 struct MD5Sum< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> > {
00120 static const char* value()
00121 {
00122 return "1c95257e91547459aede67dd02a209d6";
00123 }
00124
00125 static const char* value(const ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> &) { return value(); }
00126 static const uint64_t static_value1 = 0x1c95257e91547459ULL;
00127 static const uint64_t static_value2 = 0xaede67dd02a209d6ULL;
00128 };
00129
00130 template<class ContainerAllocator>
00131 struct DataType< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> > {
00132 static const char* value()
00133 {
00134 return "spline_smoother/SplineTrajectorySegment";
00135 }
00136
00137 static const char* value(const ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> &) { return value(); }
00138 };
00139
00140 template<class ContainerAllocator>
00141 struct Definition< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> > {
00142 static const char* value()
00143 {
00144 return "duration duration\n\
00145 SplineCoefficients[] joints\n\
00146 \n\
00147 ================================================================================\n\
00148 MSG: spline_smoother/SplineCoefficients\n\
00149 float64[] coefficients\n\
00150 \n\
00151 ";
00152 }
00153
00154 static const char* value(const ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> &) { return value(); }
00155 };
00156
00157 }
00158 }
00159
00160 namespace ros
00161 {
00162 namespace serialization
00163 {
00164
00165 template<class ContainerAllocator> struct Serializer< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> >
00166 {
00167 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00168 {
00169 stream.next(m.duration);
00170 stream.next(m.joints);
00171 }
00172
00173 ROS_DECLARE_ALLINONE_SERIALIZER;
00174 };
00175 }
00176 }
00177
00178 namespace ros
00179 {
00180 namespace message_operations
00181 {
00182
00183 template<class ContainerAllocator>
00184 struct Printer< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> >
00185 {
00186 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> & v)
00187 {
00188 s << indent << "duration: ";
00189 Printer<ros::Duration>::stream(s, indent + " ", v.duration);
00190 s << indent << "joints[]" << std::endl;
00191 for (size_t i = 0; i < v.joints.size(); ++i)
00192 {
00193 s << indent << " joints[" << i << "]: ";
00194 s << std::endl;
00195 s << indent;
00196 Printer< ::spline_smoother::SplineCoefficients_<ContainerAllocator> >::stream(s, indent + " ", v.joints[i]);
00197 }
00198 }
00199 };
00200
00201
00202 }
00203 }
00204
00205 #endif // SPLINE_SMOOTHER_MESSAGE_SPLINETRAJECTORYSEGMENT_H
00206