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