$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_controllers/doc_stacks/2013-03-01_16-45-23.561928/pr2_controllers/pr2_controllers_msgs/msg/JointTrajectoryControllerState.msg */ 00002 #ifndef PR2_CONTROLLERS_MSGS_MESSAGE_JOINTTRAJECTORYCONTROLLERSTATE_H 00003 #define PR2_CONTROLLERS_MSGS_MESSAGE_JOINTTRAJECTORYCONTROLLERSTATE_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 #include "trajectory_msgs/JointTrajectoryPoint.h" 00020 #include "trajectory_msgs/JointTrajectoryPoint.h" 00021 00022 namespace pr2_controllers_msgs 00023 { 00024 template <class ContainerAllocator> 00025 struct JointTrajectoryControllerState_ { 00026 typedef JointTrajectoryControllerState_<ContainerAllocator> Type; 00027 00028 JointTrajectoryControllerState_() 00029 : header() 00030 , joint_names() 00031 , desired() 00032 , actual() 00033 , error() 00034 { 00035 } 00036 00037 JointTrajectoryControllerState_(const ContainerAllocator& _alloc) 00038 : header(_alloc) 00039 , joint_names(_alloc) 00040 , desired(_alloc) 00041 , actual(_alloc) 00042 , error(_alloc) 00043 { 00044 } 00045 00046 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00047 ::std_msgs::Header_<ContainerAllocator> header; 00048 00049 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; 00050 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; 00051 00052 typedef ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> _desired_type; 00053 ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> desired; 00054 00055 typedef ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> _actual_type; 00056 ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> actual; 00057 00058 typedef ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> _error_type; 00059 ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> error; 00060 00061 00062 ROS_DEPRECATED uint32_t get_joint_names_size() const { return (uint32_t)joint_names.size(); } 00063 ROS_DEPRECATED void set_joint_names_size(uint32_t size) { joint_names.resize((size_t)size); } 00064 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; } 00065 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; } 00066 private: 00067 static const char* __s_getDataType_() { return "pr2_controllers_msgs/JointTrajectoryControllerState"; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00070 00071 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00072 00073 private: 00074 static const char* __s_getMD5Sum_() { return "b11d532a92ee589417fdd76559eb1d9e"; } 00075 public: 00076 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00077 00078 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00079 00080 private: 00081 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00082 string[] joint_names\n\ 00083 trajectory_msgs/JointTrajectoryPoint desired\n\ 00084 trajectory_msgs/JointTrajectoryPoint actual\n\ 00085 trajectory_msgs/JointTrajectoryPoint error # Redundant, but useful\n\ 00086 \n\ 00087 ================================================================================\n\ 00088 MSG: std_msgs/Header\n\ 00089 # Standard metadata for higher-level stamped data types.\n\ 00090 # This is generally used to communicate timestamped data \n\ 00091 # in a particular coordinate frame.\n\ 00092 # \n\ 00093 # sequence ID: consecutively increasing ID \n\ 00094 uint32 seq\n\ 00095 #Two-integer timestamp that is expressed as:\n\ 00096 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00097 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00098 # time-handling sugar is provided by the client library\n\ 00099 time stamp\n\ 00100 #Frame this data is associated with\n\ 00101 # 0: no frame\n\ 00102 # 1: global frame\n\ 00103 string frame_id\n\ 00104 \n\ 00105 ================================================================================\n\ 00106 MSG: trajectory_msgs/JointTrajectoryPoint\n\ 00107 float64[] positions\n\ 00108 float64[] velocities\n\ 00109 float64[] accelerations\n\ 00110 duration time_from_start\n\ 00111 "; } 00112 public: 00113 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00114 00115 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00116 00117 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00118 { 00119 ros::serialization::OStream stream(write_ptr, 1000000000); 00120 ros::serialization::serialize(stream, header); 00121 ros::serialization::serialize(stream, joint_names); 00122 ros::serialization::serialize(stream, desired); 00123 ros::serialization::serialize(stream, actual); 00124 ros::serialization::serialize(stream, error); 00125 return stream.getData(); 00126 } 00127 00128 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00129 { 00130 ros::serialization::IStream stream(read_ptr, 1000000000); 00131 ros::serialization::deserialize(stream, header); 00132 ros::serialization::deserialize(stream, joint_names); 00133 ros::serialization::deserialize(stream, desired); 00134 ros::serialization::deserialize(stream, actual); 00135 ros::serialization::deserialize(stream, error); 00136 return stream.getData(); 00137 } 00138 00139 ROS_DEPRECATED virtual uint32_t serializationLength() const 00140 { 00141 uint32_t size = 0; 00142 size += ros::serialization::serializationLength(header); 00143 size += ros::serialization::serializationLength(joint_names); 00144 size += ros::serialization::serializationLength(desired); 00145 size += ros::serialization::serializationLength(actual); 00146 size += ros::serialization::serializationLength(error); 00147 return size; 00148 } 00149 00150 typedef boost::shared_ptr< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > Ptr; 00151 typedef boost::shared_ptr< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> const> ConstPtr; 00152 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00153 }; // struct JointTrajectoryControllerState 00154 typedef ::pr2_controllers_msgs::JointTrajectoryControllerState_<std::allocator<void> > JointTrajectoryControllerState; 00155 00156 typedef boost::shared_ptr< ::pr2_controllers_msgs::JointTrajectoryControllerState> JointTrajectoryControllerStatePtr; 00157 typedef boost::shared_ptr< ::pr2_controllers_msgs::JointTrajectoryControllerState const> JointTrajectoryControllerStateConstPtr; 00158 00159 00160 template<typename ContainerAllocator> 00161 std::ostream& operator<<(std::ostream& s, const ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> & v) 00162 { 00163 ros::message_operations::Printer< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> >::stream(s, "", v); 00164 return s;} 00165 00166 } // namespace pr2_controllers_msgs 00167 00168 namespace ros 00169 { 00170 namespace message_traits 00171 { 00172 template<class ContainerAllocator> struct IsMessage< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > : public TrueType {}; 00173 template<class ContainerAllocator> struct IsMessage< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> const> : public TrueType {}; 00174 template<class ContainerAllocator> 00175 struct MD5Sum< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > { 00176 static const char* value() 00177 { 00178 return "b11d532a92ee589417fdd76559eb1d9e"; 00179 } 00180 00181 static const char* value(const ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> &) { return value(); } 00182 static const uint64_t static_value1 = 0xb11d532a92ee5894ULL; 00183 static const uint64_t static_value2 = 0x17fdd76559eb1d9eULL; 00184 }; 00185 00186 template<class ContainerAllocator> 00187 struct DataType< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > { 00188 static const char* value() 00189 { 00190 return "pr2_controllers_msgs/JointTrajectoryControllerState"; 00191 } 00192 00193 static const char* value(const ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> &) { return value(); } 00194 }; 00195 00196 template<class ContainerAllocator> 00197 struct Definition< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > { 00198 static const char* value() 00199 { 00200 return "Header header\n\ 00201 string[] joint_names\n\ 00202 trajectory_msgs/JointTrajectoryPoint desired\n\ 00203 trajectory_msgs/JointTrajectoryPoint actual\n\ 00204 trajectory_msgs/JointTrajectoryPoint error # Redundant, but useful\n\ 00205 \n\ 00206 ================================================================================\n\ 00207 MSG: std_msgs/Header\n\ 00208 # Standard metadata for higher-level stamped data types.\n\ 00209 # This is generally used to communicate timestamped data \n\ 00210 # in a particular coordinate frame.\n\ 00211 # \n\ 00212 # sequence ID: consecutively increasing ID \n\ 00213 uint32 seq\n\ 00214 #Two-integer timestamp that is expressed as:\n\ 00215 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00216 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00217 # time-handling sugar is provided by the client library\n\ 00218 time stamp\n\ 00219 #Frame this data is associated with\n\ 00220 # 0: no frame\n\ 00221 # 1: global frame\n\ 00222 string frame_id\n\ 00223 \n\ 00224 ================================================================================\n\ 00225 MSG: trajectory_msgs/JointTrajectoryPoint\n\ 00226 float64[] positions\n\ 00227 float64[] velocities\n\ 00228 float64[] accelerations\n\ 00229 duration time_from_start\n\ 00230 "; 00231 } 00232 00233 static const char* value(const ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> &) { return value(); } 00234 }; 00235 00236 template<class ContainerAllocator> struct HasHeader< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > : public TrueType {}; 00237 template<class ContainerAllocator> struct HasHeader< const ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > : public TrueType {}; 00238 } // namespace message_traits 00239 } // namespace ros 00240 00241 namespace ros 00242 { 00243 namespace serialization 00244 { 00245 00246 template<class ContainerAllocator> struct Serializer< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > 00247 { 00248 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00249 { 00250 stream.next(m.header); 00251 stream.next(m.joint_names); 00252 stream.next(m.desired); 00253 stream.next(m.actual); 00254 stream.next(m.error); 00255 } 00256 00257 ROS_DECLARE_ALLINONE_SERIALIZER; 00258 }; // struct JointTrajectoryControllerState_ 00259 } // namespace serialization 00260 } // namespace ros 00261 00262 namespace ros 00263 { 00264 namespace message_operations 00265 { 00266 00267 template<class ContainerAllocator> 00268 struct Printer< ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> > 00269 { 00270 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_controllers_msgs::JointTrajectoryControllerState_<ContainerAllocator> & v) 00271 { 00272 s << indent << "header: "; 00273 s << std::endl; 00274 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00275 s << indent << "joint_names[]" << std::endl; 00276 for (size_t i = 0; i < v.joint_names.size(); ++i) 00277 { 00278 s << indent << " joint_names[" << i << "]: "; 00279 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.joint_names[i]); 00280 } 00281 s << indent << "desired: "; 00282 s << std::endl; 00283 Printer< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> >::stream(s, indent + " ", v.desired); 00284 s << indent << "actual: "; 00285 s << std::endl; 00286 Printer< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> >::stream(s, indent + " ", v.actual); 00287 s << indent << "error: "; 00288 s << std::endl; 00289 Printer< ::trajectory_msgs::JointTrajectoryPoint_<ContainerAllocator> >::stream(s, indent + " ", v.error); 00290 } 00291 }; 00292 00293 00294 } // namespace message_operations 00295 } // namespace ros 00296 00297 #endif // PR2_CONTROLLERS_MSGS_MESSAGE_JOINTTRAJECTORYCONTROLLERSTATE_H 00298