00001
00002 #ifndef SPLINE_SMOOTHER_MESSAGE_LSPBTRAJECTORYSEGMENTMSG_H
00003 #define SPLINE_SMOOTHER_MESSAGE_LSPBTRAJECTORYSEGMENTMSG_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/LSPBSplineCoefficients.h"
00014
00015 namespace spline_smoother
00016 {
00017 template <class ContainerAllocator>
00018 struct LSPBTrajectorySegmentMsg_ : public ros::Message
00019 {
00020 typedef LSPBTrajectorySegmentMsg_<ContainerAllocator> Type;
00021
00022 LSPBTrajectorySegmentMsg_()
00023 : duration()
00024 , joints()
00025 {
00026 }
00027
00028 LSPBTrajectorySegmentMsg_(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::LSPBSplineCoefficients_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> >::other > _joints_type;
00038 std::vector< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::LSPBSplineCoefficients_<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::LSPBSplineCoefficients_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> >::other > & vec) const { vec = this->joints; }
00044 ROS_DEPRECATED void set_joints_vec(const std::vector< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> >::other > & vec) { this->joints = vec; }
00045 private:
00046 static const char* __s_getDataType_() { return "spline_smoother/LSPBTrajectorySegmentMsg"; }
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 "53054857ee1d2a19ca83edc07b14eef2"; }
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 LSPBSplineCoefficients[] joints\n\
00062 \n\
00063 ================================================================================\n\
00064 MSG: spline_smoother/LSPBSplineCoefficients\n\
00065 float64[] coefficients\n\
00066 float64 linear_segment_duration\n\
00067 float64 quadratic_segment_duration\n\
00068 "; }
00069 public:
00070 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00071
00072 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00073
00074 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00075 {
00076 ros::serialization::OStream stream(write_ptr, 1000000000);
00077 ros::serialization::serialize(stream, duration);
00078 ros::serialization::serialize(stream, joints);
00079 return stream.getData();
00080 }
00081
00082 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00083 {
00084 ros::serialization::IStream stream(read_ptr, 1000000000);
00085 ros::serialization::deserialize(stream, duration);
00086 ros::serialization::deserialize(stream, joints);
00087 return stream.getData();
00088 }
00089
00090 ROS_DEPRECATED virtual uint32_t serializationLength() const
00091 {
00092 uint32_t size = 0;
00093 size += ros::serialization::serializationLength(duration);
00094 size += ros::serialization::serializationLength(joints);
00095 return size;
00096 }
00097
00098 typedef boost::shared_ptr< ::spline_smoother::LSPBTrajectorySegmentMsg_<ContainerAllocator> > Ptr;
00099 typedef boost::shared_ptr< ::spline_smoother::LSPBTrajectorySegmentMsg_<ContainerAllocator> const> ConstPtr;
00100 };
00101 typedef ::spline_smoother::LSPBTrajectorySegmentMsg_<std::allocator<void> > LSPBTrajectorySegmentMsg;
00102
00103 typedef boost::shared_ptr< ::spline_smoother::LSPBTrajectorySegmentMsg> LSPBTrajectorySegmentMsgPtr;
00104 typedef boost::shared_ptr< ::spline_smoother::LSPBTrajectorySegmentMsg const> LSPBTrajectorySegmentMsgConstPtr;
00105
00106
00107 template<typename ContainerAllocator>
00108 std::ostream& operator<<(std::ostream& s, const ::spline_smoother::LSPBTrajectorySegmentMsg_<ContainerAllocator> & v)
00109 {
00110 ros::message_operations::Printer< ::spline_smoother::LSPBTrajectorySegmentMsg_<ContainerAllocator> >::stream(s, "", v);
00111 return s;}
00112
00113 }
00114
00115 namespace ros
00116 {
00117 namespace message_traits
00118 {
00119 template<class ContainerAllocator>
00120 struct MD5Sum< ::spline_smoother::LSPBTrajectorySegmentMsg_<ContainerAllocator> > {
00121 static const char* value()
00122 {
00123 return "53054857ee1d2a19ca83edc07b14eef2";
00124 }
00125
00126 static const char* value(const ::spline_smoother::LSPBTrajectorySegmentMsg_<ContainerAllocator> &) { return value(); }
00127 static const uint64_t static_value1 = 0x53054857ee1d2a19ULL;
00128 static const uint64_t static_value2 = 0xca83edc07b14eef2ULL;
00129 };
00130
00131 template<class ContainerAllocator>
00132 struct DataType< ::spline_smoother::LSPBTrajectorySegmentMsg_<ContainerAllocator> > {
00133 static const char* value()
00134 {
00135 return "spline_smoother/LSPBTrajectorySegmentMsg";
00136 }
00137
00138 static const char* value(const ::spline_smoother::LSPBTrajectorySegmentMsg_<ContainerAllocator> &) { return value(); }
00139 };
00140
00141 template<class ContainerAllocator>
00142 struct Definition< ::spline_smoother::LSPBTrajectorySegmentMsg_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "duration duration\n\
00146 LSPBSplineCoefficients[] joints\n\
00147 \n\
00148 ================================================================================\n\
00149 MSG: spline_smoother/LSPBSplineCoefficients\n\
00150 float64[] coefficients\n\
00151 float64 linear_segment_duration\n\
00152 float64 quadratic_segment_duration\n\
00153 ";
00154 }
00155
00156 static const char* value(const ::spline_smoother::LSPBTrajectorySegmentMsg_<ContainerAllocator> &) { return value(); }
00157 };
00158
00159 }
00160 }
00161
00162 namespace ros
00163 {
00164 namespace serialization
00165 {
00166
00167 template<class ContainerAllocator> struct Serializer< ::spline_smoother::LSPBTrajectorySegmentMsg_<ContainerAllocator> >
00168 {
00169 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00170 {
00171 stream.next(m.duration);
00172 stream.next(m.joints);
00173 }
00174
00175 ROS_DECLARE_ALLINONE_SERIALIZER;
00176 };
00177 }
00178 }
00179
00180 namespace ros
00181 {
00182 namespace message_operations
00183 {
00184
00185 template<class ContainerAllocator>
00186 struct Printer< ::spline_smoother::LSPBTrajectorySegmentMsg_<ContainerAllocator> >
00187 {
00188 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::spline_smoother::LSPBTrajectorySegmentMsg_<ContainerAllocator> & v)
00189 {
00190 s << indent << "duration: ";
00191 Printer<ros::Duration>::stream(s, indent + " ", v.duration);
00192 s << indent << "joints[]" << std::endl;
00193 for (size_t i = 0; i < v.joints.size(); ++i)
00194 {
00195 s << indent << " joints[" << i << "]: ";
00196 s << std::endl;
00197 s << indent;
00198 Printer< ::spline_smoother::LSPBSplineCoefficients_<ContainerAllocator> >::stream(s, indent + " ", v.joints[i]);
00199 }
00200 }
00201 };
00202
00203
00204 }
00205 }
00206
00207 #endif // SPLINE_SMOOTHER_MESSAGE_LSPBTRAJECTORYSEGMENTMSG_H
00208