00001
00002 #ifndef SPLINE_SMOOTHER_MESSAGE_LSPBTRAJECTORYMSG_H
00003 #define SPLINE_SMOOTHER_MESSAGE_LSPBTRAJECTORYMSG_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/LSPBTrajectorySegmentMsg.h"
00015
00016 namespace spline_smoother
00017 {
00018 template <class ContainerAllocator>
00019 struct LSPBTrajectoryMsg_ : public ros::Message
00020 {
00021 typedef LSPBTrajectoryMsg_<ContainerAllocator> Type;
00022
00023 LSPBTrajectoryMsg_()
00024 : header()
00025 , names()
00026 , segments()
00027 {
00028 }
00029
00030 LSPBTrajectoryMsg_(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::LSPBTrajectorySegmentMsg_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::LSPBTrajectorySegmentMsg_<ContainerAllocator> >::other > _segments_type;
00044 std::vector< ::spline_smoother::LSPBTrajectorySegmentMsg_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::LSPBTrajectorySegmentMsg_<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::LSPBTrajectorySegmentMsg_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::LSPBTrajectorySegmentMsg_<ContainerAllocator> >::other > & vec) const { vec = this->segments; }
00054 ROS_DEPRECATED void set_segments_vec(const std::vector< ::spline_smoother::LSPBTrajectorySegmentMsg_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::LSPBTrajectorySegmentMsg_<ContainerAllocator> >::other > & vec) { this->segments = vec; }
00055 private:
00056 static const char* __s_getDataType_() { return "spline_smoother/LSPBTrajectoryMsg"; }
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 "ce1139991f603c3d37b77cd9b60c5c3d"; }
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 LSPBTrajectorySegmentMsg[] 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/LSPBTrajectorySegmentMsg\n\
00094 duration duration\n\
00095 LSPBSplineCoefficients[] joints\n\
00096 \n\
00097 ================================================================================\n\
00098 MSG: spline_smoother/LSPBSplineCoefficients\n\
00099 float64[] coefficients\n\
00100 float64 linear_segment_duration\n\
00101 float64 quadratic_segment_duration\n\
00102 "; }
00103 public:
00104 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00105
00106 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00107
00108 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00109 {
00110 ros::serialization::OStream stream(write_ptr, 1000000000);
00111 ros::serialization::serialize(stream, header);
00112 ros::serialization::serialize(stream, names);
00113 ros::serialization::serialize(stream, segments);
00114 return stream.getData();
00115 }
00116
00117 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00118 {
00119 ros::serialization::IStream stream(read_ptr, 1000000000);
00120 ros::serialization::deserialize(stream, header);
00121 ros::serialization::deserialize(stream, names);
00122 ros::serialization::deserialize(stream, segments);
00123 return stream.getData();
00124 }
00125
00126 ROS_DEPRECATED virtual uint32_t serializationLength() const
00127 {
00128 uint32_t size = 0;
00129 size += ros::serialization::serializationLength(header);
00130 size += ros::serialization::serializationLength(names);
00131 size += ros::serialization::serializationLength(segments);
00132 return size;
00133 }
00134
00135 typedef boost::shared_ptr< ::spline_smoother::LSPBTrajectoryMsg_<ContainerAllocator> > Ptr;
00136 typedef boost::shared_ptr< ::spline_smoother::LSPBTrajectoryMsg_<ContainerAllocator> const> ConstPtr;
00137 };
00138 typedef ::spline_smoother::LSPBTrajectoryMsg_<std::allocator<void> > LSPBTrajectoryMsg;
00139
00140 typedef boost::shared_ptr< ::spline_smoother::LSPBTrajectoryMsg> LSPBTrajectoryMsgPtr;
00141 typedef boost::shared_ptr< ::spline_smoother::LSPBTrajectoryMsg const> LSPBTrajectoryMsgConstPtr;
00142
00143
00144 template<typename ContainerAllocator>
00145 std::ostream& operator<<(std::ostream& s, const ::spline_smoother::LSPBTrajectoryMsg_<ContainerAllocator> & v)
00146 {
00147 ros::message_operations::Printer< ::spline_smoother::LSPBTrajectoryMsg_<ContainerAllocator> >::stream(s, "", v);
00148 return s;}
00149
00150 }
00151
00152 namespace ros
00153 {
00154 namespace message_traits
00155 {
00156 template<class ContainerAllocator>
00157 struct MD5Sum< ::spline_smoother::LSPBTrajectoryMsg_<ContainerAllocator> > {
00158 static const char* value()
00159 {
00160 return "ce1139991f603c3d37b77cd9b60c5c3d";
00161 }
00162
00163 static const char* value(const ::spline_smoother::LSPBTrajectoryMsg_<ContainerAllocator> &) { return value(); }
00164 static const uint64_t static_value1 = 0xce1139991f603c3dULL;
00165 static const uint64_t static_value2 = 0x37b77cd9b60c5c3dULL;
00166 };
00167
00168 template<class ContainerAllocator>
00169 struct DataType< ::spline_smoother::LSPBTrajectoryMsg_<ContainerAllocator> > {
00170 static const char* value()
00171 {
00172 return "spline_smoother/LSPBTrajectoryMsg";
00173 }
00174
00175 static const char* value(const ::spline_smoother::LSPBTrajectoryMsg_<ContainerAllocator> &) { return value(); }
00176 };
00177
00178 template<class ContainerAllocator>
00179 struct Definition< ::spline_smoother::LSPBTrajectoryMsg_<ContainerAllocator> > {
00180 static const char* value()
00181 {
00182 return "Header header\n\
00183 string[] names\n\
00184 LSPBTrajectorySegmentMsg[] segments\n\
00185 \n\
00186 ================================================================================\n\
00187 MSG: std_msgs/Header\n\
00188 # Standard metadata for higher-level stamped data types.\n\
00189 # This is generally used to communicate timestamped data \n\
00190 # in a particular coordinate frame.\n\
00191 # \n\
00192 # sequence ID: consecutively increasing ID \n\
00193 uint32 seq\n\
00194 #Two-integer timestamp that is expressed as:\n\
00195 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00196 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00197 # time-handling sugar is provided by the client library\n\
00198 time stamp\n\
00199 #Frame this data is associated with\n\
00200 # 0: no frame\n\
00201 # 1: global frame\n\
00202 string frame_id\n\
00203 \n\
00204 ================================================================================\n\
00205 MSG: spline_smoother/LSPBTrajectorySegmentMsg\n\
00206 duration duration\n\
00207 LSPBSplineCoefficients[] joints\n\
00208 \n\
00209 ================================================================================\n\
00210 MSG: spline_smoother/LSPBSplineCoefficients\n\
00211 float64[] coefficients\n\
00212 float64 linear_segment_duration\n\
00213 float64 quadratic_segment_duration\n\
00214 ";
00215 }
00216
00217 static const char* value(const ::spline_smoother::LSPBTrajectoryMsg_<ContainerAllocator> &) { return value(); }
00218 };
00219
00220 template<class ContainerAllocator> struct HasHeader< ::spline_smoother::LSPBTrajectoryMsg_<ContainerAllocator> > : public TrueType {};
00221 template<class ContainerAllocator> struct HasHeader< const ::spline_smoother::LSPBTrajectoryMsg_<ContainerAllocator> > : public TrueType {};
00222 }
00223 }
00224
00225 namespace ros
00226 {
00227 namespace serialization
00228 {
00229
00230 template<class ContainerAllocator> struct Serializer< ::spline_smoother::LSPBTrajectoryMsg_<ContainerAllocator> >
00231 {
00232 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00233 {
00234 stream.next(m.header);
00235 stream.next(m.names);
00236 stream.next(m.segments);
00237 }
00238
00239 ROS_DECLARE_ALLINONE_SERIALIZER;
00240 };
00241 }
00242 }
00243
00244 namespace ros
00245 {
00246 namespace message_operations
00247 {
00248
00249 template<class ContainerAllocator>
00250 struct Printer< ::spline_smoother::LSPBTrajectoryMsg_<ContainerAllocator> >
00251 {
00252 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::spline_smoother::LSPBTrajectoryMsg_<ContainerAllocator> & v)
00253 {
00254 s << indent << "header: ";
00255 s << std::endl;
00256 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00257 s << indent << "names[]" << std::endl;
00258 for (size_t i = 0; i < v.names.size(); ++i)
00259 {
00260 s << indent << " names[" << i << "]: ";
00261 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.names[i]);
00262 }
00263 s << indent << "segments[]" << std::endl;
00264 for (size_t i = 0; i < v.segments.size(); ++i)
00265 {
00266 s << indent << " segments[" << i << "]: ";
00267 s << std::endl;
00268 s << indent;
00269 Printer< ::spline_smoother::LSPBTrajectorySegmentMsg_<ContainerAllocator> >::stream(s, indent + " ", v.segments[i]);
00270 }
00271 }
00272 };
00273
00274
00275 }
00276 }
00277
00278 #endif // SPLINE_SMOOTHER_MESSAGE_LSPBTRAJECTORYMSG_H
00279