00001
00002 #ifndef MOTION_PLANNING_MSGS_MESSAGE_JOINTPATHPOINT_H
00003 #define MOTION_PLANNING_MSGS_MESSAGE_JOINTPATHPOINT_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
00014 namespace motion_planning_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct JointPathPoint_ : public ros::Message
00018 {
00019 typedef JointPathPoint_<ContainerAllocator> Type;
00020
00021 JointPathPoint_()
00022 : positions()
00023 {
00024 }
00025
00026 JointPathPoint_(const ContainerAllocator& _alloc)
00027 : positions(_alloc)
00028 {
00029 }
00030
00031 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _positions_type;
00032 std::vector<double, typename ContainerAllocator::template rebind<double>::other > positions;
00033
00034
00035 ROS_DEPRECATED uint32_t get_positions_size() const { return (uint32_t)positions.size(); }
00036 ROS_DEPRECATED void set_positions_size(uint32_t size) { positions.resize((size_t)size); }
00037 ROS_DEPRECATED void get_positions_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->positions; }
00038 ROS_DEPRECATED void set_positions_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->positions = vec; }
00039 private:
00040 static const char* __s_getDataType_() { return "motion_planning_msgs/JointPathPoint"; }
00041 public:
00042 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00043
00044 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00045
00046 private:
00047 static const char* __s_getMD5Sum_() { return "3b33cf2d1f9005e741ee291d519b97ee"; }
00048 public:
00049 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00050
00051 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00052
00053 private:
00054 static const char* __s_getMessageDefinition_() { return "# The joint path point contains a vector of joint positions.\n\
00055 float64[] positions\n\
00056 \n\
00057 "; }
00058 public:
00059 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00060
00061 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00062
00063 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00064 {
00065 ros::serialization::OStream stream(write_ptr, 1000000000);
00066 ros::serialization::serialize(stream, positions);
00067 return stream.getData();
00068 }
00069
00070 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00071 {
00072 ros::serialization::IStream stream(read_ptr, 1000000000);
00073 ros::serialization::deserialize(stream, positions);
00074 return stream.getData();
00075 }
00076
00077 ROS_DEPRECATED virtual uint32_t serializationLength() const
00078 {
00079 uint32_t size = 0;
00080 size += ros::serialization::serializationLength(positions);
00081 return size;
00082 }
00083
00084 typedef boost::shared_ptr< ::motion_planning_msgs::JointPathPoint_<ContainerAllocator> > Ptr;
00085 typedef boost::shared_ptr< ::motion_planning_msgs::JointPathPoint_<ContainerAllocator> const> ConstPtr;
00086 };
00087 typedef ::motion_planning_msgs::JointPathPoint_<std::allocator<void> > JointPathPoint;
00088
00089 typedef boost::shared_ptr< ::motion_planning_msgs::JointPathPoint> JointPathPointPtr;
00090 typedef boost::shared_ptr< ::motion_planning_msgs::JointPathPoint const> JointPathPointConstPtr;
00091
00092
00093 template<typename ContainerAllocator>
00094 std::ostream& operator<<(std::ostream& s, const ::motion_planning_msgs::JointPathPoint_<ContainerAllocator> & v)
00095 {
00096 ros::message_operations::Printer< ::motion_planning_msgs::JointPathPoint_<ContainerAllocator> >::stream(s, "", v);
00097 return s;}
00098
00099 }
00100
00101 namespace ros
00102 {
00103 namespace message_traits
00104 {
00105 template<class ContainerAllocator>
00106 struct MD5Sum< ::motion_planning_msgs::JointPathPoint_<ContainerAllocator> > {
00107 static const char* value()
00108 {
00109 return "3b33cf2d1f9005e741ee291d519b97ee";
00110 }
00111
00112 static const char* value(const ::motion_planning_msgs::JointPathPoint_<ContainerAllocator> &) { return value(); }
00113 static const uint64_t static_value1 = 0x3b33cf2d1f9005e7ULL;
00114 static const uint64_t static_value2 = 0x41ee291d519b97eeULL;
00115 };
00116
00117 template<class ContainerAllocator>
00118 struct DataType< ::motion_planning_msgs::JointPathPoint_<ContainerAllocator> > {
00119 static const char* value()
00120 {
00121 return "motion_planning_msgs/JointPathPoint";
00122 }
00123
00124 static const char* value(const ::motion_planning_msgs::JointPathPoint_<ContainerAllocator> &) { return value(); }
00125 };
00126
00127 template<class ContainerAllocator>
00128 struct Definition< ::motion_planning_msgs::JointPathPoint_<ContainerAllocator> > {
00129 static const char* value()
00130 {
00131 return "# The joint path point contains a vector of joint positions.\n\
00132 float64[] positions\n\
00133 \n\
00134 ";
00135 }
00136
00137 static const char* value(const ::motion_planning_msgs::JointPathPoint_<ContainerAllocator> &) { return value(); }
00138 };
00139
00140 }
00141 }
00142
00143 namespace ros
00144 {
00145 namespace serialization
00146 {
00147
00148 template<class ContainerAllocator> struct Serializer< ::motion_planning_msgs::JointPathPoint_<ContainerAllocator> >
00149 {
00150 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00151 {
00152 stream.next(m.positions);
00153 }
00154
00155 ROS_DECLARE_ALLINONE_SERIALIZER;
00156 };
00157 }
00158 }
00159
00160 namespace ros
00161 {
00162 namespace message_operations
00163 {
00164
00165 template<class ContainerAllocator>
00166 struct Printer< ::motion_planning_msgs::JointPathPoint_<ContainerAllocator> >
00167 {
00168 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::motion_planning_msgs::JointPathPoint_<ContainerAllocator> & v)
00169 {
00170 s << indent << "positions[]" << std::endl;
00171 for (size_t i = 0; i < v.positions.size(); ++i)
00172 {
00173 s << indent << " positions[" << i << "]: ";
00174 Printer<double>::stream(s, indent + " ", v.positions[i]);
00175 }
00176 }
00177 };
00178
00179
00180 }
00181 }
00182
00183 #endif // MOTION_PLANNING_MSGS_MESSAGE_JOINTPATHPOINT_H
00184