00001
00002 #ifndef SPLINE_SMOOTHER_MESSAGE_SPLINETRAJECTORY_H
00003 #define SPLINE_SMOOTHER_MESSAGE_SPLINETRAJECTORY_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 "std_msgs/Header.h"
00014 #include "spline_smoother/SplineTrajectorySegment.h"
00015
00016 namespace spline_smoother
00017 {
00018 template <class ContainerAllocator>
00019 struct SplineTrajectory_ : public ros::Message
00020 {
00021 typedef SplineTrajectory_<ContainerAllocator> Type;
00022
00023 SplineTrajectory_()
00024 : header()
00025 , names()
00026 , segments()
00027 {
00028 }
00029
00030 SplineTrajectory_(const ContainerAllocator& _alloc)
00031 : header(_alloc)
00032 , names(_alloc)
00033 , segments(_alloc)
00034 {
00035 }
00036
00037 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00038 ::std_msgs::Header_<ContainerAllocator> header;
00039
00040 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;
00041 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;
00042
00043 typedef std::vector< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> >::other > _segments_type;
00044 std::vector< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> >::other > segments;
00045
00046
00047 ROS_DEPRECATED uint32_t get_names_size() const { return (uint32_t)names.size(); }
00048 ROS_DEPRECATED void set_names_size(uint32_t size) { names.resize((size_t)size); }
00049 ROS_DEPRECATED void get_names_vec(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 > & vec) const { vec = this->names; }
00050 ROS_DEPRECATED void set_names_vec(const 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 > & vec) { this->names = vec; }
00051 ROS_DEPRECATED uint32_t get_segments_size() const { return (uint32_t)segments.size(); }
00052 ROS_DEPRECATED void set_segments_size(uint32_t size) { segments.resize((size_t)size); }
00053 ROS_DEPRECATED void get_segments_vec(std::vector< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> >::other > & vec) const { vec = this->segments; }
00054 ROS_DEPRECATED void set_segments_vec(const std::vector< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> >::other > & vec) { this->segments = vec; }
00055 private:
00056 static const char* __s_getDataType_() { return "spline_smoother/SplineTrajectory"; }
00057 public:
00058 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00059
00060 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00061
00062 private:
00063 static const char* __s_getMD5Sum_() { return "45d783dc5c58ac7ae093c93ba1b8d451"; }
00064 public:
00065 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00066
00067 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00068
00069 private:
00070 static const char* __s_getMessageDefinition_() { return "Header header\n\
00071 string[] names\n\
00072 SplineTrajectorySegment[] segments\n\
00073 \n\
00074 ================================================================================\n\
00075 MSG: std_msgs/Header\n\
00076 # Standard metadata for higher-level stamped data types.\n\
00077 # This is generally used to communicate timestamped data \n\
00078 # in a particular coordinate frame.\n\
00079 # \n\
00080 # sequence ID: consecutively increasing ID \n\
00081 uint32 seq\n\
00082 #Two-integer timestamp that is expressed as:\n\
00083 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00084 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00085 # time-handling sugar is provided by the client library\n\
00086 time stamp\n\
00087 #Frame this data is associated with\n\
00088 # 0: no frame\n\
00089 # 1: global frame\n\
00090 string frame_id\n\
00091 \n\
00092 ================================================================================\n\
00093 MSG: spline_smoother/SplineTrajectorySegment\n\
00094 duration duration\n\
00095 SplineCoefficients[] joints\n\
00096 \n\
00097 ================================================================================\n\
00098 MSG: spline_smoother/SplineCoefficients\n\
00099 float64[] coefficients\n\
00100 \n\
00101 "; }
00102 public:
00103 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00104
00105 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00106
00107 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00108 {
00109 ros::serialization::OStream stream(write_ptr, 1000000000);
00110 ros::serialization::serialize(stream, header);
00111 ros::serialization::serialize(stream, names);
00112 ros::serialization::serialize(stream, segments);
00113 return stream.getData();
00114 }
00115
00116 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00117 {
00118 ros::serialization::IStream stream(read_ptr, 1000000000);
00119 ros::serialization::deserialize(stream, header);
00120 ros::serialization::deserialize(stream, names);
00121 ros::serialization::deserialize(stream, segments);
00122 return stream.getData();
00123 }
00124
00125 ROS_DEPRECATED virtual uint32_t serializationLength() const
00126 {
00127 uint32_t size = 0;
00128 size += ros::serialization::serializationLength(header);
00129 size += ros::serialization::serializationLength(names);
00130 size += ros::serialization::serializationLength(segments);
00131 return size;
00132 }
00133
00134 typedef boost::shared_ptr< ::spline_smoother::SplineTrajectory_<ContainerAllocator> > Ptr;
00135 typedef boost::shared_ptr< ::spline_smoother::SplineTrajectory_<ContainerAllocator> const> ConstPtr;
00136 };
00137 typedef ::spline_smoother::SplineTrajectory_<std::allocator<void> > SplineTrajectory;
00138
00139 typedef boost::shared_ptr< ::spline_smoother::SplineTrajectory> SplineTrajectoryPtr;
00140 typedef boost::shared_ptr< ::spline_smoother::SplineTrajectory const> SplineTrajectoryConstPtr;
00141
00142
00143 template<typename ContainerAllocator>
00144 std::ostream& operator<<(std::ostream& s, const ::spline_smoother::SplineTrajectory_<ContainerAllocator> & v)
00145 {
00146 ros::message_operations::Printer< ::spline_smoother::SplineTrajectory_<ContainerAllocator> >::stream(s, "", v);
00147 return s;}
00148
00149 }
00150
00151 namespace ros
00152 {
00153 namespace message_traits
00154 {
00155 template<class ContainerAllocator>
00156 struct MD5Sum< ::spline_smoother::SplineTrajectory_<ContainerAllocator> > {
00157 static const char* value()
00158 {
00159 return "45d783dc5c58ac7ae093c93ba1b8d451";
00160 }
00161
00162 static const char* value(const ::spline_smoother::SplineTrajectory_<ContainerAllocator> &) { return value(); }
00163 static const uint64_t static_value1 = 0x45d783dc5c58ac7aULL;
00164 static const uint64_t static_value2 = 0xe093c93ba1b8d451ULL;
00165 };
00166
00167 template<class ContainerAllocator>
00168 struct DataType< ::spline_smoother::SplineTrajectory_<ContainerAllocator> > {
00169 static const char* value()
00170 {
00171 return "spline_smoother/SplineTrajectory";
00172 }
00173
00174 static const char* value(const ::spline_smoother::SplineTrajectory_<ContainerAllocator> &) { return value(); }
00175 };
00176
00177 template<class ContainerAllocator>
00178 struct Definition< ::spline_smoother::SplineTrajectory_<ContainerAllocator> > {
00179 static const char* value()
00180 {
00181 return "Header header\n\
00182 string[] names\n\
00183 SplineTrajectorySegment[] segments\n\
00184 \n\
00185 ================================================================================\n\
00186 MSG: std_msgs/Header\n\
00187 # Standard metadata for higher-level stamped data types.\n\
00188 # This is generally used to communicate timestamped data \n\
00189 # in a particular coordinate frame.\n\
00190 # \n\
00191 # sequence ID: consecutively increasing ID \n\
00192 uint32 seq\n\
00193 #Two-integer timestamp that is expressed as:\n\
00194 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00195 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00196 # time-handling sugar is provided by the client library\n\
00197 time stamp\n\
00198 #Frame this data is associated with\n\
00199 # 0: no frame\n\
00200 # 1: global frame\n\
00201 string frame_id\n\
00202 \n\
00203 ================================================================================\n\
00204 MSG: spline_smoother/SplineTrajectorySegment\n\
00205 duration duration\n\
00206 SplineCoefficients[] joints\n\
00207 \n\
00208 ================================================================================\n\
00209 MSG: spline_smoother/SplineCoefficients\n\
00210 float64[] coefficients\n\
00211 \n\
00212 ";
00213 }
00214
00215 static const char* value(const ::spline_smoother::SplineTrajectory_<ContainerAllocator> &) { return value(); }
00216 };
00217
00218 template<class ContainerAllocator> struct HasHeader< ::spline_smoother::SplineTrajectory_<ContainerAllocator> > : public TrueType {};
00219 template<class ContainerAllocator> struct HasHeader< const ::spline_smoother::SplineTrajectory_<ContainerAllocator> > : public TrueType {};
00220 }
00221 }
00222
00223 namespace ros
00224 {
00225 namespace serialization
00226 {
00227
00228 template<class ContainerAllocator> struct Serializer< ::spline_smoother::SplineTrajectory_<ContainerAllocator> >
00229 {
00230 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00231 {
00232 stream.next(m.header);
00233 stream.next(m.names);
00234 stream.next(m.segments);
00235 }
00236
00237 ROS_DECLARE_ALLINONE_SERIALIZER;
00238 };
00239 }
00240 }
00241
00242 namespace ros
00243 {
00244 namespace message_operations
00245 {
00246
00247 template<class ContainerAllocator>
00248 struct Printer< ::spline_smoother::SplineTrajectory_<ContainerAllocator> >
00249 {
00250 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::spline_smoother::SplineTrajectory_<ContainerAllocator> & v)
00251 {
00252 s << indent << "header: ";
00253 s << std::endl;
00254 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00255 s << indent << "names[]" << std::endl;
00256 for (size_t i = 0; i < v.names.size(); ++i)
00257 {
00258 s << indent << " names[" << i << "]: ";
00259 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.names[i]);
00260 }
00261 s << indent << "segments[]" << std::endl;
00262 for (size_t i = 0; i < v.segments.size(); ++i)
00263 {
00264 s << indent << " segments[" << i << "]: ";
00265 s << std::endl;
00266 s << indent;
00267 Printer< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> >::stream(s, indent + " ", v.segments[i]);
00268 }
00269 }
00270 };
00271
00272
00273 }
00274 }
00275
00276 #endif // SPLINE_SMOOTHER_MESSAGE_SPLINETRAJECTORY_H
00277