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