$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-common_msgs/doc_stacks/2013-03-01_14-58-52.505545/common_msgs/trajectory_msgs/msg/JointTrajectoryPoint.msg */ 00002 #ifndef TRAJECTORY_MSGS_MESSAGE_JOINTTRAJECTORYPOINT_H 00003 #define TRAJECTORY_MSGS_MESSAGE_JOINTTRAJECTORYPOINT_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 00018 namespace trajectory_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct JointTrajectoryPoint_ { 00022 typedef JointTrajectoryPoint_<ContainerAllocator> Type; 00023 00024 JointTrajectoryPoint_() 00025 : positions() 00026 , velocities() 00027 , accelerations() 00028 , time_from_start() 00029 { 00030 } 00031 00032 JointTrajectoryPoint_(const ContainerAllocator& _alloc) 00033 : positions(_alloc) 00034 , velocities(_alloc) 00035 , accelerations(_alloc) 00036 , time_from_start() 00037 { 00038 } 00039 00040 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _positions_type; 00041 std::vector<double, typename ContainerAllocator::template rebind<double>::other > positions; 00042 00043 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _velocities_type; 00044 std::vector<double, typename ContainerAllocator::template rebind<double>::other > velocities; 00045 00046 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _accelerations_type; 00047 std::vector<double, typename ContainerAllocator::template rebind<double>::other > accelerations; 00048 00049 typedef ros::Duration _time_from_start_type; 00050 ros::Duration time_from_start; 00051 00052 00053 ROS_DEPRECATED uint32_t get_positions_size() const { return (uint32_t)positions.size(); } 00054 ROS_DEPRECATED void set_positions_size(uint32_t size) { positions.resize((size_t)size); } 00055 ROS_DEPRECATED void get_positions_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->positions; } 00056 ROS_DEPRECATED void set_positions_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->positions = vec; } 00057 ROS_DEPRECATED uint32_t get_velocities_size() const { return (uint32_t)velocities.size(); } 00058 ROS_DEPRECATED void set_velocities_size(uint32_t size) { velocities.resize((size_t)size); } 00059 ROS_DEPRECATED void get_velocities_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->velocities; } 00060 ROS_DEPRECATED void set_velocities_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->velocities = vec; } 00061 ROS_DEPRECATED uint32_t get_accelerations_size() const { return (uint32_t)accelerations.size(); } 00062 ROS_DEPRECATED void set_accelerations_size(uint32_t size) { accelerations.resize((size_t)size); } 00063 ROS_DEPRECATED void get_accelerations_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->accelerations; } 00064 ROS_DEPRECATED void set_accelerations_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->accelerations = vec; } 00065 private: 00066 static const char* __s_getDataType_() { return "trajectory_msgs/JointTrajectoryPoint"; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00069 00070 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00071 00072 private: 00073 static const char* __s_getMD5Sum_() { return "84fd2dcf68773c3dc0e9db894f4e8b40"; } 00074 public: 00075 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00076 00077 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00078 00079 private: 00080 static const char* __s_getMessageDefinition_() { return "float64[] positions\n\ 00081 float64[] velocities\n\ 00082 float64[] accelerations\n\ 00083 duration time_from_start\n\ 00084 "; } 00085 public: 00086 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00087 00088 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00089 00090 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00091 { 00092 ros::serialization::OStream stream(write_ptr, 1000000000); 00093 ros::serialization::serialize(stream, positions); 00094 ros::serialization::serialize(stream, velocities); 00095 ros::serialization::serialize(stream, accelerations); 00096 ros::serialization::serialize(stream, time_from_start); 00097 return stream.getData(); 00098 } 00099 00100 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00101 { 00102 ros::serialization::IStream stream(read_ptr, 1000000000); 00103 ros::serialization::deserialize(stream, positions); 00104 ros::serialization::deserialize(stream, velocities); 00105 ros::serialization::deserialize(stream, accelerations); 00106 ros::serialization::deserialize(stream, time_from_start); 00107 return stream.getData(); 00108 } 00109 00110 ROS_DEPRECATED virtual uint32_t serializationLength() const 00111 { 00112 uint32_t size = 0; 00113 size += ros::serialization::serializationLength(positions); 00114 size += ros::serialization::serializationLength(velocities); 00115 size += ros::serialization::serializationLength(accelerations); 00116 size += ros::serialization::serializationLength(time_from_start); 00117 return size; 00118 } 00119 00120 typedef boost::shared_ptr< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> > Ptr; 00121 typedef boost::shared_ptr< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> const> ConstPtr; 00122 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00123 }; // struct JointTrajectoryPoint 00124 typedef ::trajectory_msgs::JointTrajectoryPoint_<std::allocator<void> > JointTrajectoryPoint; 00125 00126 typedef boost::shared_ptr< ::trajectory_msgs::JointTrajectoryPoint> JointTrajectoryPointPtr; 00127 typedef boost::shared_ptr< ::trajectory_msgs::JointTrajectoryPoint const> JointTrajectoryPointConstPtr; 00128 00129 00130 template<typename ContainerAllocator> 00131 std::ostream& operator<<(std::ostream& s, const ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> & v) 00132 { 00133 ros::message_operations::Printer< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> >::stream(s, "", v); 00134 return s;} 00135 00136 } // namespace trajectory_msgs 00137 00138 namespace ros 00139 { 00140 namespace message_traits 00141 { 00142 template<class ContainerAllocator> struct IsMessage< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> > : public TrueType {}; 00143 template<class ContainerAllocator> struct IsMessage< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> const> : public TrueType {}; 00144 template<class ContainerAllocator> 00145 struct MD5Sum< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> > { 00146 static const char* value() 00147 { 00148 return "84fd2dcf68773c3dc0e9db894f4e8b40"; 00149 } 00150 00151 static const char* value(const ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> &) { return value(); } 00152 static const uint64_t static_value1 = 0x84fd2dcf68773c3dULL; 00153 static const uint64_t static_value2 = 0xc0e9db894f4e8b40ULL; 00154 }; 00155 00156 template<class ContainerAllocator> 00157 struct DataType< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> > { 00158 static const char* value() 00159 { 00160 return "trajectory_msgs/JointTrajectoryPoint"; 00161 } 00162 00163 static const char* value(const ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> &) { return value(); } 00164 }; 00165 00166 template<class ContainerAllocator> 00167 struct Definition< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> > { 00168 static const char* value() 00169 { 00170 return "float64[] positions\n\ 00171 float64[] velocities\n\ 00172 float64[] accelerations\n\ 00173 duration time_from_start\n\ 00174 "; 00175 } 00176 00177 static const char* value(const ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> &) { return value(); } 00178 }; 00179 00180 } // namespace message_traits 00181 } // namespace ros 00182 00183 namespace ros 00184 { 00185 namespace serialization 00186 { 00187 00188 template<class ContainerAllocator> struct Serializer< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> > 00189 { 00190 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00191 { 00192 stream.next(m.positions); 00193 stream.next(m.velocities); 00194 stream.next(m.accelerations); 00195 stream.next(m.time_from_start); 00196 } 00197 00198 ROS_DECLARE_ALLINONE_SERIALIZER; 00199 }; // struct JointTrajectoryPoint_ 00200 } // namespace serialization 00201 } // namespace ros 00202 00203 namespace ros 00204 { 00205 namespace message_operations 00206 { 00207 00208 template<class ContainerAllocator> 00209 struct Printer< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> > 00210 { 00211 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> & v) 00212 { 00213 s << indent << "positions[]" << std::endl; 00214 for (size_t i = 0; i < v.positions.size(); ++i) 00215 { 00216 s << indent << " positions[" << i << "]: "; 00217 Printer<double>::stream(s, indent + " ", v.positions[i]); 00218 } 00219 s << indent << "velocities[]" << std::endl; 00220 for (size_t i = 0; i < v.velocities.size(); ++i) 00221 { 00222 s << indent << " velocities[" << i << "]: "; 00223 Printer<double>::stream(s, indent + " ", v.velocities[i]); 00224 } 00225 s << indent << "accelerations[]" << std::endl; 00226 for (size_t i = 0; i < v.accelerations.size(); ++i) 00227 { 00228 s << indent << " accelerations[" << i << "]: "; 00229 Printer<double>::stream(s, indent + " ", v.accelerations[i]); 00230 } 00231 s << indent << "time_from_start: "; 00232 Printer<ros::Duration>::stream(s, indent + " ", v.time_from_start); 00233 } 00234 }; 00235 00236 00237 } // namespace message_operations 00238 } // namespace ros 00239 00240 #endif // TRAJECTORY_MSGS_MESSAGE_JOINTTRAJECTORYPOINT_H 00241