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