$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/SplineTrajectorySegment.msg */ 00002 #ifndef SPLINE_SMOOTHER_MESSAGE_SPLINETRAJECTORYSEGMENT_H 00003 #define SPLINE_SMOOTHER_MESSAGE_SPLINETRAJECTORYSEGMENT_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 "spline_smoother/SplineCoefficients.h" 00018 00019 namespace spline_smoother 00020 { 00021 template <class ContainerAllocator> 00022 struct SplineTrajectorySegment_ { 00023 typedef SplineTrajectorySegment_<ContainerAllocator> Type; 00024 00025 SplineTrajectorySegment_() 00026 : duration() 00027 , joints() 00028 { 00029 } 00030 00031 SplineTrajectorySegment_(const ContainerAllocator& _alloc) 00032 : duration() 00033 , joints(_alloc) 00034 { 00035 } 00036 00037 typedef ros::Duration _duration_type; 00038 ros::Duration duration; 00039 00040 typedef std::vector< ::spline_smoother::SplineCoefficients_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::SplineCoefficients_<ContainerAllocator> >::other > _joints_type; 00041 std::vector< ::spline_smoother::SplineCoefficients_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::SplineCoefficients_<ContainerAllocator> >::other > joints; 00042 00043 00044 ROS_DEPRECATED uint32_t get_joints_size() const { return (uint32_t)joints.size(); } 00045 ROS_DEPRECATED void set_joints_size(uint32_t size) { joints.resize((size_t)size); } 00046 ROS_DEPRECATED void get_joints_vec(std::vector< ::spline_smoother::SplineCoefficients_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::SplineCoefficients_<ContainerAllocator> >::other > & vec) const { vec = this->joints; } 00047 ROS_DEPRECATED void set_joints_vec(const std::vector< ::spline_smoother::SplineCoefficients_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::spline_smoother::SplineCoefficients_<ContainerAllocator> >::other > & vec) { this->joints = vec; } 00048 private: 00049 static const char* __s_getDataType_() { return "spline_smoother/SplineTrajectorySegment"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "1c95257e91547459aede67dd02a209d6"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getMessageDefinition_() { return "duration duration\n\ 00064 SplineCoefficients[] joints\n\ 00065 \n\ 00066 ================================================================================\n\ 00067 MSG: spline_smoother/SplineCoefficients\n\ 00068 float64[] coefficients\n\ 00069 \n\ 00070 "; } 00071 public: 00072 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00073 00074 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00075 00076 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00077 { 00078 ros::serialization::OStream stream(write_ptr, 1000000000); 00079 ros::serialization::serialize(stream, duration); 00080 ros::serialization::serialize(stream, joints); 00081 return stream.getData(); 00082 } 00083 00084 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00085 { 00086 ros::serialization::IStream stream(read_ptr, 1000000000); 00087 ros::serialization::deserialize(stream, duration); 00088 ros::serialization::deserialize(stream, joints); 00089 return stream.getData(); 00090 } 00091 00092 ROS_DEPRECATED virtual uint32_t serializationLength() const 00093 { 00094 uint32_t size = 0; 00095 size += ros::serialization::serializationLength(duration); 00096 size += ros::serialization::serializationLength(joints); 00097 return size; 00098 } 00099 00100 typedef boost::shared_ptr< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> > Ptr; 00101 typedef boost::shared_ptr< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> const> ConstPtr; 00102 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00103 }; // struct SplineTrajectorySegment 00104 typedef ::spline_smoother::SplineTrajectorySegment_<std::allocator<void> > SplineTrajectorySegment; 00105 00106 typedef boost::shared_ptr< ::spline_smoother::SplineTrajectorySegment> SplineTrajectorySegmentPtr; 00107 typedef boost::shared_ptr< ::spline_smoother::SplineTrajectorySegment const> SplineTrajectorySegmentConstPtr; 00108 00109 00110 template<typename ContainerAllocator> 00111 std::ostream& operator<<(std::ostream& s, const ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> & v) 00112 { 00113 ros::message_operations::Printer< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> >::stream(s, "", v); 00114 return s;} 00115 00116 } // namespace spline_smoother 00117 00118 namespace ros 00119 { 00120 namespace message_traits 00121 { 00122 template<class ContainerAllocator> struct IsMessage< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> > : public TrueType {}; 00123 template<class ContainerAllocator> struct IsMessage< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> const> : public TrueType {}; 00124 template<class ContainerAllocator> 00125 struct MD5Sum< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> > { 00126 static const char* value() 00127 { 00128 return "1c95257e91547459aede67dd02a209d6"; 00129 } 00130 00131 static const char* value(const ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> &) { return value(); } 00132 static const uint64_t static_value1 = 0x1c95257e91547459ULL; 00133 static const uint64_t static_value2 = 0xaede67dd02a209d6ULL; 00134 }; 00135 00136 template<class ContainerAllocator> 00137 struct DataType< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> > { 00138 static const char* value() 00139 { 00140 return "spline_smoother/SplineTrajectorySegment"; 00141 } 00142 00143 static const char* value(const ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> &) { return value(); } 00144 }; 00145 00146 template<class ContainerAllocator> 00147 struct Definition< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> > { 00148 static const char* value() 00149 { 00150 return "duration duration\n\ 00151 SplineCoefficients[] joints\n\ 00152 \n\ 00153 ================================================================================\n\ 00154 MSG: spline_smoother/SplineCoefficients\n\ 00155 float64[] coefficients\n\ 00156 \n\ 00157 "; 00158 } 00159 00160 static const char* value(const ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> &) { return value(); } 00161 }; 00162 00163 } // namespace message_traits 00164 } // namespace ros 00165 00166 namespace ros 00167 { 00168 namespace serialization 00169 { 00170 00171 template<class ContainerAllocator> struct Serializer< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> > 00172 { 00173 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00174 { 00175 stream.next(m.duration); 00176 stream.next(m.joints); 00177 } 00178 00179 ROS_DECLARE_ALLINONE_SERIALIZER; 00180 }; // struct SplineTrajectorySegment_ 00181 } // namespace serialization 00182 } // namespace ros 00183 00184 namespace ros 00185 { 00186 namespace message_operations 00187 { 00188 00189 template<class ContainerAllocator> 00190 struct Printer< ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> > 00191 { 00192 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::spline_smoother::SplineTrajectorySegment_<ContainerAllocator> & v) 00193 { 00194 s << indent << "duration: "; 00195 Printer<ros::Duration>::stream(s, indent + " ", v.duration); 00196 s << indent << "joints[]" << std::endl; 00197 for (size_t i = 0; i < v.joints.size(); ++i) 00198 { 00199 s << indent << " joints[" << i << "]: "; 00200 s << std::endl; 00201 s << indent; 00202 Printer< ::spline_smoother::SplineCoefficients_<ContainerAllocator> >::stream(s, indent + " ", v.joints[i]); 00203 } 00204 } 00205 }; 00206 00207 00208 } // namespace message_operations 00209 } // namespace ros 00210 00211 #endif // SPLINE_SMOOTHER_MESSAGE_SPLINETRAJECTORYSEGMENT_H 00212