Go to the documentation of this file.00001
00002 #ifndef OPENRAVEROS_MESSAGE_TRAJECTORY_H
00003 #define OPENRAVEROS_MESSAGE_TRAJECTORY_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 "openraveros/ConfigurationSpecification.h"
00018
00019 namespace openraveros
00020 {
00021 template <class ContainerAllocator>
00022 struct Trajectory_ {
00023 typedef Trajectory_<ContainerAllocator> Type;
00024
00025 Trajectory_()
00026 : spec()
00027 , points()
00028 , xmlid()
00029 {
00030 }
00031
00032 Trajectory_(const ContainerAllocator& _alloc)
00033 : spec(_alloc)
00034 , points(_alloc)
00035 , xmlid(_alloc)
00036 {
00037 }
00038
00039 typedef ::openraveros::ConfigurationSpecification_<ContainerAllocator> _spec_type;
00040 ::openraveros::ConfigurationSpecification_<ContainerAllocator> spec;
00041
00042 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _points_type;
00043 std::vector<double, typename ContainerAllocator::template rebind<double>::other > points;
00044
00045 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _xmlid_type;
00046 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > xmlid;
00047
00048
00049 typedef boost::shared_ptr< ::openraveros::Trajectory_<ContainerAllocator> > Ptr;
00050 typedef boost::shared_ptr< ::openraveros::Trajectory_<ContainerAllocator> const> ConstPtr;
00051 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00052 };
00053 typedef ::openraveros::Trajectory_<std::allocator<void> > Trajectory;
00054
00055 typedef boost::shared_ptr< ::openraveros::Trajectory> TrajectoryPtr;
00056 typedef boost::shared_ptr< ::openraveros::Trajectory const> TrajectoryConstPtr;
00057
00058
00059 template<typename ContainerAllocator>
00060 std::ostream& operator<<(std::ostream& s, const ::openraveros::Trajectory_<ContainerAllocator> & v)
00061 {
00062 ros::message_operations::Printer< ::openraveros::Trajectory_<ContainerAllocator> >::stream(s, "", v);
00063 return s;}
00064
00065 }
00066
00067 namespace ros
00068 {
00069 namespace message_traits
00070 {
00071 template<class ContainerAllocator> struct IsMessage< ::openraveros::Trajectory_<ContainerAllocator> > : public TrueType {};
00072 template<class ContainerAllocator> struct IsMessage< ::openraveros::Trajectory_<ContainerAllocator> const> : public TrueType {};
00073 template<class ContainerAllocator>
00074 struct MD5Sum< ::openraveros::Trajectory_<ContainerAllocator> > {
00075 static const char* value()
00076 {
00077 return "56e2013b47eeba891e94a2ed372e1604";
00078 }
00079
00080 static const char* value(const ::openraveros::Trajectory_<ContainerAllocator> &) { return value(); }
00081 static const uint64_t static_value1 = 0x56e2013b47eeba89ULL;
00082 static const uint64_t static_value2 = 0x1e94a2ed372e1604ULL;
00083 };
00084
00085 template<class ContainerAllocator>
00086 struct DataType< ::openraveros::Trajectory_<ContainerAllocator> > {
00087 static const char* value()
00088 {
00089 return "openraveros/Trajectory";
00090 }
00091
00092 static const char* value(const ::openraveros::Trajectory_<ContainerAllocator> &) { return value(); }
00093 };
00094
00095 template<class ContainerAllocator>
00096 struct Definition< ::openraveros::Trajectory_<ContainerAllocator> > {
00097 static const char* value()
00098 {
00099 return "ConfigurationSpecification spec\n\
00100 float64[] points\n\
00101 string xmlid\n\
00102 \n\
00103 ================================================================================\n\
00104 MSG: openraveros/ConfigurationSpecification\n\
00105 ConfigurationSpecificationGroup[] groups\n\
00106 \n\
00107 ================================================================================\n\
00108 MSG: openraveros/ConfigurationSpecificationGroup\n\
00109 int32 offset\n\
00110 int32 dof\n\
00111 string name\n\
00112 string interpolation\n\
00113 \n\
00114 ";
00115 }
00116
00117 static const char* value(const ::openraveros::Trajectory_<ContainerAllocator> &) { return value(); }
00118 };
00119
00120 }
00121 }
00122
00123 namespace ros
00124 {
00125 namespace serialization
00126 {
00127
00128 template<class ContainerAllocator> struct Serializer< ::openraveros::Trajectory_<ContainerAllocator> >
00129 {
00130 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00131 {
00132 stream.next(m.spec);
00133 stream.next(m.points);
00134 stream.next(m.xmlid);
00135 }
00136
00137 ROS_DECLARE_ALLINONE_SERIALIZER;
00138 };
00139 }
00140 }
00141
00142 namespace ros
00143 {
00144 namespace message_operations
00145 {
00146
00147 template<class ContainerAllocator>
00148 struct Printer< ::openraveros::Trajectory_<ContainerAllocator> >
00149 {
00150 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::openraveros::Trajectory_<ContainerAllocator> & v)
00151 {
00152 s << indent << "spec: ";
00153 s << std::endl;
00154 Printer< ::openraveros::ConfigurationSpecification_<ContainerAllocator> >::stream(s, indent + " ", v.spec);
00155 s << indent << "points[]" << std::endl;
00156 for (size_t i = 0; i < v.points.size(); ++i)
00157 {
00158 s << indent << " points[" << i << "]: ";
00159 Printer<double>::stream(s, indent + " ", v.points[i]);
00160 }
00161 s << indent << "xmlid: ";
00162 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.xmlid);
00163 }
00164 };
00165
00166
00167 }
00168 }
00169
00170 #endif // OPENRAVEROS_MESSAGE_TRAJECTORY_H
00171