Go to the documentation of this file.00001
00002 #ifndef SPLINE_SMOOTHER_MESSAGE_SPLINETRAJECTORY_H
00003 #define SPLINE_SMOOTHER_MESSAGE_SPLINETRAJECTORY_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 "std_msgs/Header.h"
00018 #include "spline_smoother/SplineTrajectorySegment.h"
00019
00020 namespace spline_smoother
00021 {
00022 template <class ContainerAllocator>
00023 struct SplineTrajectory_ {
00024 typedef SplineTrajectory_<ContainerAllocator> Type;
00025
00026 SplineTrajectory_()
00027 : header()
00028 , names()
00029 , segments()
00030 {
00031 }
00032
00033 SplineTrajectory_(const ContainerAllocator& _alloc)
00034 : header(_alloc)
00035 , names(_alloc)
00036 , segments(_alloc)
00037 {
00038 }
00039
00040 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00041 ::std_msgs::Header_<ContainerAllocator> header;
00042
00043 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _names_type;
00044 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > names;
00045
00046 typedef std::vector< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> >::other > _segments_type;
00047 std::vector< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> >::other > segments;
00048
00049
00050 typedef boost::shared_ptr< ::spline_smoother::SplineTrajectory_<ContainerAllocator> > Ptr;
00051 typedef boost::shared_ptr< ::spline_smoother::SplineTrajectory_<ContainerAllocator> const> ConstPtr;
00052 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00053 };
00054 typedef ::spline_smoother::SplineTrajectory_<std::allocator<void> > SplineTrajectory;
00055
00056 typedef boost::shared_ptr< ::spline_smoother::SplineTrajectory> SplineTrajectoryPtr;
00057 typedef boost::shared_ptr< ::spline_smoother::SplineTrajectory const> SplineTrajectoryConstPtr;
00058
00059
00060 template<typename ContainerAllocator>
00061 std::ostream& operator<<(std::ostream& s, const ::spline_smoother::SplineTrajectory_<ContainerAllocator> & v)
00062 {
00063 ros::message_operations::Printer< ::spline_smoother::SplineTrajectory_<ContainerAllocator> >::stream(s, "", v);
00064 return s;}
00065
00066 }
00067
00068 namespace ros
00069 {
00070 namespace message_traits
00071 {
00072 template<class ContainerAllocator> struct IsMessage< ::spline_smoother::SplineTrajectory_<ContainerAllocator> > : public TrueType {};
00073 template<class ContainerAllocator> struct IsMessage< ::spline_smoother::SplineTrajectory_<ContainerAllocator> const> : public TrueType {};
00074 template<class ContainerAllocator>
00075 struct MD5Sum< ::spline_smoother::SplineTrajectory_<ContainerAllocator> > {
00076 static const char* value()
00077 {
00078 return "45d783dc5c58ac7ae093c93ba1b8d451";
00079 }
00080
00081 static const char* value(const ::spline_smoother::SplineTrajectory_<ContainerAllocator> &) { return value(); }
00082 static const uint64_t static_value1 = 0x45d783dc5c58ac7aULL;
00083 static const uint64_t static_value2 = 0xe093c93ba1b8d451ULL;
00084 };
00085
00086 template<class ContainerAllocator>
00087 struct DataType< ::spline_smoother::SplineTrajectory_<ContainerAllocator> > {
00088 static const char* value()
00089 {
00090 return "spline_smoother/SplineTrajectory";
00091 }
00092
00093 static const char* value(const ::spline_smoother::SplineTrajectory_<ContainerAllocator> &) { return value(); }
00094 };
00095
00096 template<class ContainerAllocator>
00097 struct Definition< ::spline_smoother::SplineTrajectory_<ContainerAllocator> > {
00098 static const char* value()
00099 {
00100 return "Header header\n\
00101 string[] names\n\
00102 SplineTrajectorySegment[] segments\n\
00103 \n\
00104 ================================================================================\n\
00105 MSG: std_msgs/Header\n\
00106 # Standard metadata for higher-level stamped data types.\n\
00107 # This is generally used to communicate timestamped data \n\
00108 # in a particular coordinate frame.\n\
00109 # \n\
00110 # sequence ID: consecutively increasing ID \n\
00111 uint32 seq\n\
00112 #Two-integer timestamp that is expressed as:\n\
00113 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00114 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00115 # time-handling sugar is provided by the client library\n\
00116 time stamp\n\
00117 #Frame this data is associated with\n\
00118 # 0: no frame\n\
00119 # 1: global frame\n\
00120 string frame_id\n\
00121 \n\
00122 ================================================================================\n\
00123 MSG: spline_smoother/SplineTrajectorySegment\n\
00124 duration duration\n\
00125 SplineCoefficients[] joints\n\
00126 \n\
00127 ================================================================================\n\
00128 MSG: spline_smoother/SplineCoefficients\n\
00129 float64[] coefficients\n\
00130 \n\
00131 ";
00132 }
00133
00134 static const char* value(const ::spline_smoother::SplineTrajectory_<ContainerAllocator> &) { return value(); }
00135 };
00136
00137 template<class ContainerAllocator> struct HasHeader< ::spline_smoother::SplineTrajectory_<ContainerAllocator> > : public TrueType {};
00138 template<class ContainerAllocator> struct HasHeader< const ::spline_smoother::SplineTrajectory_<ContainerAllocator> > : public TrueType {};
00139 }
00140 }
00141
00142 namespace ros
00143 {
00144 namespace serialization
00145 {
00146
00147 template<class ContainerAllocator> struct Serializer< ::spline_smoother::SplineTrajectory_<ContainerAllocator> >
00148 {
00149 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00150 {
00151 stream.next(m.header);
00152 stream.next(m.names);
00153 stream.next(m.segments);
00154 }
00155
00156 ROS_DECLARE_ALLINONE_SERIALIZER;
00157 };
00158 }
00159 }
00160
00161 namespace ros
00162 {
00163 namespace message_operations
00164 {
00165
00166 template<class ContainerAllocator>
00167 struct Printer< ::spline_smoother::SplineTrajectory_<ContainerAllocator> >
00168 {
00169 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::spline_smoother::SplineTrajectory_<ContainerAllocator> & v)
00170 {
00171 s << indent << "header: ";
00172 s << std::endl;
00173 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00174 s << indent << "names[]" << std::endl;
00175 for (size_t i = 0; i < v.names.size(); ++i)
00176 {
00177 s << indent << " names[" << i << "]: ";
00178 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.names[i]);
00179 }
00180 s << indent << "segments[]" << std::endl;
00181 for (size_t i = 0; i < v.segments.size(); ++i)
00182 {
00183 s << indent << " segments[" << i << "]: ";
00184 s << std::endl;
00185 s << indent;
00186 Printer< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> >::stream(s, indent + " ", v.segments[i]);
00187 }
00188 }
00189 };
00190
00191
00192 }
00193 }
00194
00195 #endif // SPLINE_SMOOTHER_MESSAGE_SPLINETRAJECTORY_H
00196