$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/JointTrajectory.msg */ 00002 #ifndef TRAJECTORY_MSGS_MESSAGE_JOINTTRAJECTORY_H 00003 #define TRAJECTORY_MSGS_MESSAGE_JOINTTRAJECTORY_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 "trajectory_msgs/JointTrajectoryPoint.h" 00019 00020 namespace trajectory_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct JointTrajectory_ { 00024 typedef JointTrajectory_<ContainerAllocator> Type; 00025 00026 JointTrajectory_() 00027 : header() 00028 , joint_names() 00029 , points() 00030 { 00031 } 00032 00033 JointTrajectory_(const ContainerAllocator& _alloc) 00034 : header(_alloc) 00035 , joint_names(_alloc) 00036 , points(_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 > _joint_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 > joint_names; 00045 00046 typedef std::vector< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> >::other > _points_type; 00047 std::vector< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> >::other > points; 00048 00049 00050 ROS_DEPRECATED uint32_t get_joint_names_size() const { return (uint32_t)joint_names.size(); } 00051 ROS_DEPRECATED void set_joint_names_size(uint32_t size) { joint_names.resize((size_t)size); } 00052 ROS_DEPRECATED void get_joint_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->joint_names; } 00053 ROS_DEPRECATED void set_joint_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->joint_names = vec; } 00054 ROS_DEPRECATED uint32_t get_points_size() const { return (uint32_t)points.size(); } 00055 ROS_DEPRECATED void set_points_size(uint32_t size) { points.resize((size_t)size); } 00056 ROS_DEPRECATED void get_points_vec(std::vector< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> >::other > & vec) const { vec = this->points; } 00057 ROS_DEPRECATED void set_points_vec(const std::vector< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> >::other > & vec) { this->points = vec; } 00058 private: 00059 static const char* __s_getDataType_() { return "trajectory_msgs/JointTrajectory"; } 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 "72214029c6fba47b2135714577dd745e"; } 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[] joint_names\n\ 00075 JointTrajectoryPoint[] points\n\ 00076 ================================================================================\n\ 00077 MSG: std_msgs/Header\n\ 00078 # Standard metadata for higher-level stamped data types.\n\ 00079 # This is generally used to communicate timestamped data \n\ 00080 # in a particular coordinate frame.\n\ 00081 # \n\ 00082 # sequence ID: consecutively increasing ID \n\ 00083 uint32 seq\n\ 00084 #Two-integer timestamp that is expressed as:\n\ 00085 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00086 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00087 # time-handling sugar is provided by the client library\n\ 00088 time stamp\n\ 00089 #Frame this data is associated with\n\ 00090 # 0: no frame\n\ 00091 # 1: global frame\n\ 00092 string frame_id\n\ 00093 \n\ 00094 ================================================================================\n\ 00095 MSG: trajectory_msgs/JointTrajectoryPoint\n\ 00096 float64[] positions\n\ 00097 float64[] velocities\n\ 00098 float64[] accelerations\n\ 00099 duration time_from_start\n\ 00100 "; } 00101 public: 00102 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00103 00104 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00105 00106 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00107 { 00108 ros::serialization::OStream stream(write_ptr, 1000000000); 00109 ros::serialization::serialize(stream, header); 00110 ros::serialization::serialize(stream, joint_names); 00111 ros::serialization::serialize(stream, points); 00112 return stream.getData(); 00113 } 00114 00115 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00116 { 00117 ros::serialization::IStream stream(read_ptr, 1000000000); 00118 ros::serialization::deserialize(stream, header); 00119 ros::serialization::deserialize(stream, joint_names); 00120 ros::serialization::deserialize(stream, points); 00121 return stream.getData(); 00122 } 00123 00124 ROS_DEPRECATED virtual uint32_t serializationLength() const 00125 { 00126 uint32_t size = 0; 00127 size += ros::serialization::serializationLength(header); 00128 size += ros::serialization::serializationLength(joint_names); 00129 size += ros::serialization::serializationLength(points); 00130 return size; 00131 } 00132 00133 typedef boost::shared_ptr< ::trajectory_msgs::JointTrajectory_<ContainerAllocator> > Ptr; 00134 typedef boost::shared_ptr< ::trajectory_msgs::JointTrajectory_<ContainerAllocator> const> ConstPtr; 00135 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00136 }; // struct JointTrajectory 00137 typedef ::trajectory_msgs::JointTrajectory_<std::allocator<void> > JointTrajectory; 00138 00139 typedef boost::shared_ptr< ::trajectory_msgs::JointTrajectory> JointTrajectoryPtr; 00140 typedef boost::shared_ptr< ::trajectory_msgs::JointTrajectory const> JointTrajectoryConstPtr; 00141 00142 00143 template<typename ContainerAllocator> 00144 std::ostream& operator<<(std::ostream& s, const ::trajectory_msgs::JointTrajectory_<ContainerAllocator> & v) 00145 { 00146 ros::message_operations::Printer< ::trajectory_msgs::JointTrajectory_<ContainerAllocator> >::stream(s, "", v); 00147 return s;} 00148 00149 } // namespace trajectory_msgs 00150 00151 namespace ros 00152 { 00153 namespace message_traits 00154 { 00155 template<class ContainerAllocator> struct IsMessage< ::trajectory_msgs::JointTrajectory_<ContainerAllocator> > : public TrueType {}; 00156 template<class ContainerAllocator> struct IsMessage< ::trajectory_msgs::JointTrajectory_<ContainerAllocator> const> : public TrueType {}; 00157 template<class ContainerAllocator> 00158 struct MD5Sum< ::trajectory_msgs::JointTrajectory_<ContainerAllocator> > { 00159 static const char* value() 00160 { 00161 return "72214029c6fba47b2135714577dd745e"; 00162 } 00163 00164 static const char* value(const ::trajectory_msgs::JointTrajectory_<ContainerAllocator> &) { return value(); } 00165 static const uint64_t static_value1 = 0x72214029c6fba47bULL; 00166 static const uint64_t static_value2 = 0x2135714577dd745eULL; 00167 }; 00168 00169 template<class ContainerAllocator> 00170 struct DataType< ::trajectory_msgs::JointTrajectory_<ContainerAllocator> > { 00171 static const char* value() 00172 { 00173 return "trajectory_msgs/JointTrajectory"; 00174 } 00175 00176 static const char* value(const ::trajectory_msgs::JointTrajectory_<ContainerAllocator> &) { return value(); } 00177 }; 00178 00179 template<class ContainerAllocator> 00180 struct Definition< ::trajectory_msgs::JointTrajectory_<ContainerAllocator> > { 00181 static const char* value() 00182 { 00183 return "Header header\n\ 00184 string[] joint_names\n\ 00185 JointTrajectoryPoint[] points\n\ 00186 ================================================================================\n\ 00187 MSG: std_msgs/Header\n\ 00188 # Standard metadata for higher-level stamped data types.\n\ 00189 # This is generally used to communicate timestamped data \n\ 00190 # in a particular coordinate frame.\n\ 00191 # \n\ 00192 # sequence ID: consecutively increasing ID \n\ 00193 uint32 seq\n\ 00194 #Two-integer timestamp that is expressed as:\n\ 00195 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00196 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00197 # time-handling sugar is provided by the client library\n\ 00198 time stamp\n\ 00199 #Frame this data is associated with\n\ 00200 # 0: no frame\n\ 00201 # 1: global frame\n\ 00202 string frame_id\n\ 00203 \n\ 00204 ================================================================================\n\ 00205 MSG: trajectory_msgs/JointTrajectoryPoint\n\ 00206 float64[] positions\n\ 00207 float64[] velocities\n\ 00208 float64[] accelerations\n\ 00209 duration time_from_start\n\ 00210 "; 00211 } 00212 00213 static const char* value(const ::trajectory_msgs::JointTrajectory_<ContainerAllocator> &) { return value(); } 00214 }; 00215 00216 template<class ContainerAllocator> struct HasHeader< ::trajectory_msgs::JointTrajectory_<ContainerAllocator> > : public TrueType {}; 00217 template<class ContainerAllocator> struct HasHeader< const ::trajectory_msgs::JointTrajectory_<ContainerAllocator> > : public TrueType {}; 00218 } // namespace message_traits 00219 } // namespace ros 00220 00221 namespace ros 00222 { 00223 namespace serialization 00224 { 00225 00226 template<class ContainerAllocator> struct Serializer< ::trajectory_msgs::JointTrajectory_<ContainerAllocator> > 00227 { 00228 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00229 { 00230 stream.next(m.header); 00231 stream.next(m.joint_names); 00232 stream.next(m.points); 00233 } 00234 00235 ROS_DECLARE_ALLINONE_SERIALIZER; 00236 }; // struct JointTrajectory_ 00237 } // namespace serialization 00238 } // namespace ros 00239 00240 namespace ros 00241 { 00242 namespace message_operations 00243 { 00244 00245 template<class ContainerAllocator> 00246 struct Printer< ::trajectory_msgs::JointTrajectory_<ContainerAllocator> > 00247 { 00248 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::trajectory_msgs::JointTrajectory_<ContainerAllocator> & v) 00249 { 00250 s << indent << "header: "; 00251 s << std::endl; 00252 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00253 s << indent << "joint_names[]" << std::endl; 00254 for (size_t i = 0; i < v.joint_names.size(); ++i) 00255 { 00256 s << indent << " joint_names[" << i << "]: "; 00257 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.joint_names[i]); 00258 } 00259 s << indent << "points[]" << std::endl; 00260 for (size_t i = 0; i < v.points.size(); ++i) 00261 { 00262 s << indent << " points[" << i << "]: "; 00263 s << std::endl; 00264 s << indent; 00265 Printer< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> >::stream(s, indent + " ", v.points[i]); 00266 } 00267 } 00268 }; 00269 00270 00271 } // namespace message_operations 00272 } // namespace ros 00273 00274 #endif // TRAJECTORY_MSGS_MESSAGE_JOINTTRAJECTORY_H 00275