$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_mechanism_controllers/msg/BaseControllerState.msg */ 00002 #ifndef PR2_MECHANISM_CONTROLLERS_MESSAGE_BASECONTROLLERSTATE_H 00003 #define PR2_MECHANISM_CONTROLLERS_MESSAGE_BASECONTROLLERSTATE_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 "geometry_msgs/Twist.h" 00018 00019 namespace pr2_mechanism_controllers 00020 { 00021 template <class ContainerAllocator> 00022 struct BaseControllerState_ { 00023 typedef BaseControllerState_<ContainerAllocator> Type; 00024 00025 BaseControllerState_() 00026 : command() 00027 , joint_velocity_measured() 00028 , joint_velocity_commanded() 00029 , joint_velocity_error() 00030 , joint_effort_measured() 00031 , joint_effort_commanded() 00032 , joint_effort_error() 00033 , joint_names() 00034 { 00035 } 00036 00037 BaseControllerState_(const ContainerAllocator& _alloc) 00038 : command(_alloc) 00039 , joint_velocity_measured(_alloc) 00040 , joint_velocity_commanded(_alloc) 00041 , joint_velocity_error(_alloc) 00042 , joint_effort_measured(_alloc) 00043 , joint_effort_commanded(_alloc) 00044 , joint_effort_error(_alloc) 00045 , joint_names(_alloc) 00046 { 00047 } 00048 00049 typedef ::geometry_msgs::Twist_<ContainerAllocator> _command_type; 00050 ::geometry_msgs::Twist_<ContainerAllocator> command; 00051 00052 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _joint_velocity_measured_type; 00053 std::vector<double, typename ContainerAllocator::template rebind<double>::other > joint_velocity_measured; 00054 00055 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _joint_velocity_commanded_type; 00056 std::vector<double, typename ContainerAllocator::template rebind<double>::other > joint_velocity_commanded; 00057 00058 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _joint_velocity_error_type; 00059 std::vector<double, typename ContainerAllocator::template rebind<double>::other > joint_velocity_error; 00060 00061 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _joint_effort_measured_type; 00062 std::vector<double, typename ContainerAllocator::template rebind<double>::other > joint_effort_measured; 00063 00064 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _joint_effort_commanded_type; 00065 std::vector<double, typename ContainerAllocator::template rebind<double>::other > joint_effort_commanded; 00066 00067 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _joint_effort_error_type; 00068 std::vector<double, typename ContainerAllocator::template rebind<double>::other > joint_effort_error; 00069 00070 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; 00071 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; 00072 00073 00074 ROS_DEPRECATED uint32_t get_joint_velocity_measured_size() const { return (uint32_t)joint_velocity_measured.size(); } 00075 ROS_DEPRECATED void set_joint_velocity_measured_size(uint32_t size) { joint_velocity_measured.resize((size_t)size); } 00076 ROS_DEPRECATED void get_joint_velocity_measured_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->joint_velocity_measured; } 00077 ROS_DEPRECATED void set_joint_velocity_measured_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->joint_velocity_measured = vec; } 00078 ROS_DEPRECATED uint32_t get_joint_velocity_commanded_size() const { return (uint32_t)joint_velocity_commanded.size(); } 00079 ROS_DEPRECATED void set_joint_velocity_commanded_size(uint32_t size) { joint_velocity_commanded.resize((size_t)size); } 00080 ROS_DEPRECATED void get_joint_velocity_commanded_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->joint_velocity_commanded; } 00081 ROS_DEPRECATED void set_joint_velocity_commanded_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->joint_velocity_commanded = vec; } 00082 ROS_DEPRECATED uint32_t get_joint_velocity_error_size() const { return (uint32_t)joint_velocity_error.size(); } 00083 ROS_DEPRECATED void set_joint_velocity_error_size(uint32_t size) { joint_velocity_error.resize((size_t)size); } 00084 ROS_DEPRECATED void get_joint_velocity_error_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->joint_velocity_error; } 00085 ROS_DEPRECATED void set_joint_velocity_error_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->joint_velocity_error = vec; } 00086 ROS_DEPRECATED uint32_t get_joint_effort_measured_size() const { return (uint32_t)joint_effort_measured.size(); } 00087 ROS_DEPRECATED void set_joint_effort_measured_size(uint32_t size) { joint_effort_measured.resize((size_t)size); } 00088 ROS_DEPRECATED void get_joint_effort_measured_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->joint_effort_measured; } 00089 ROS_DEPRECATED void set_joint_effort_measured_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->joint_effort_measured = vec; } 00090 ROS_DEPRECATED uint32_t get_joint_effort_commanded_size() const { return (uint32_t)joint_effort_commanded.size(); } 00091 ROS_DEPRECATED void set_joint_effort_commanded_size(uint32_t size) { joint_effort_commanded.resize((size_t)size); } 00092 ROS_DEPRECATED void get_joint_effort_commanded_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->joint_effort_commanded; } 00093 ROS_DEPRECATED void set_joint_effort_commanded_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->joint_effort_commanded = vec; } 00094 ROS_DEPRECATED uint32_t get_joint_effort_error_size() const { return (uint32_t)joint_effort_error.size(); } 00095 ROS_DEPRECATED void set_joint_effort_error_size(uint32_t size) { joint_effort_error.resize((size_t)size); } 00096 ROS_DEPRECATED void get_joint_effort_error_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->joint_effort_error; } 00097 ROS_DEPRECATED void set_joint_effort_error_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->joint_effort_error = vec; } 00098 ROS_DEPRECATED uint32_t get_joint_names_size() const { return (uint32_t)joint_names.size(); } 00099 ROS_DEPRECATED void set_joint_names_size(uint32_t size) { joint_names.resize((size_t)size); } 00100 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; } 00101 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; } 00102 private: 00103 static const char* __s_getDataType_() { return "pr2_mechanism_controllers/BaseControllerState"; } 00104 public: 00105 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00106 00107 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00108 00109 private: 00110 static const char* __s_getMD5Sum_() { return "7a488aa492f9175d5fa35e22e56c4b28"; } 00111 public: 00112 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00113 00114 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00115 00116 private: 00117 static const char* __s_getMessageDefinition_() { return "geometry_msgs/Twist command\n\ 00118 float64[] joint_velocity_measured\n\ 00119 float64[] joint_velocity_commanded\n\ 00120 float64[] joint_velocity_error\n\ 00121 float64[] joint_effort_measured\n\ 00122 float64[] joint_effort_commanded\n\ 00123 float64[] joint_effort_error\n\ 00124 string[] joint_names\n\ 00125 \n\ 00126 \n\ 00127 ================================================================================\n\ 00128 MSG: geometry_msgs/Twist\n\ 00129 # This expresses velocity in free space broken into it's linear and angular parts. \n\ 00130 Vector3 linear\n\ 00131 Vector3 angular\n\ 00132 \n\ 00133 ================================================================================\n\ 00134 MSG: geometry_msgs/Vector3\n\ 00135 # This represents a vector in free space. \n\ 00136 \n\ 00137 float64 x\n\ 00138 float64 y\n\ 00139 float64 z\n\ 00140 "; } 00141 public: 00142 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00143 00144 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00145 00146 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00147 { 00148 ros::serialization::OStream stream(write_ptr, 1000000000); 00149 ros::serialization::serialize(stream, command); 00150 ros::serialization::serialize(stream, joint_velocity_measured); 00151 ros::serialization::serialize(stream, joint_velocity_commanded); 00152 ros::serialization::serialize(stream, joint_velocity_error); 00153 ros::serialization::serialize(stream, joint_effort_measured); 00154 ros::serialization::serialize(stream, joint_effort_commanded); 00155 ros::serialization::serialize(stream, joint_effort_error); 00156 ros::serialization::serialize(stream, joint_names); 00157 return stream.getData(); 00158 } 00159 00160 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00161 { 00162 ros::serialization::IStream stream(read_ptr, 1000000000); 00163 ros::serialization::deserialize(stream, command); 00164 ros::serialization::deserialize(stream, joint_velocity_measured); 00165 ros::serialization::deserialize(stream, joint_velocity_commanded); 00166 ros::serialization::deserialize(stream, joint_velocity_error); 00167 ros::serialization::deserialize(stream, joint_effort_measured); 00168 ros::serialization::deserialize(stream, joint_effort_commanded); 00169 ros::serialization::deserialize(stream, joint_effort_error); 00170 ros::serialization::deserialize(stream, joint_names); 00171 return stream.getData(); 00172 } 00173 00174 ROS_DEPRECATED virtual uint32_t serializationLength() const 00175 { 00176 uint32_t size = 0; 00177 size += ros::serialization::serializationLength(command); 00178 size += ros::serialization::serializationLength(joint_velocity_measured); 00179 size += ros::serialization::serializationLength(joint_velocity_commanded); 00180 size += ros::serialization::serializationLength(joint_velocity_error); 00181 size += ros::serialization::serializationLength(joint_effort_measured); 00182 size += ros::serialization::serializationLength(joint_effort_commanded); 00183 size += ros::serialization::serializationLength(joint_effort_error); 00184 size += ros::serialization::serializationLength(joint_names); 00185 return size; 00186 } 00187 00188 typedef boost::shared_ptr< ::pr2_mechanism_controllers::BaseControllerState_<ContainerAllocator> > Ptr; 00189 typedef boost::shared_ptr< ::pr2_mechanism_controllers::BaseControllerState_<ContainerAllocator> const> ConstPtr; 00190 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00191 }; // struct BaseControllerState 00192 typedef ::pr2_mechanism_controllers::BaseControllerState_<std::allocator<void> > BaseControllerState; 00193 00194 typedef boost::shared_ptr< ::pr2_mechanism_controllers::BaseControllerState> BaseControllerStatePtr; 00195 typedef boost::shared_ptr< ::pr2_mechanism_controllers::BaseControllerState const> BaseControllerStateConstPtr; 00196 00197 00198 template<typename ContainerAllocator> 00199 std::ostream& operator<<(std::ostream& s, const ::pr2_mechanism_controllers::BaseControllerState_<ContainerAllocator> & v) 00200 { 00201 ros::message_operations::Printer< ::pr2_mechanism_controllers::BaseControllerState_<ContainerAllocator> >::stream(s, "", v); 00202 return s;} 00203 00204 } // namespace pr2_mechanism_controllers 00205 00206 namespace ros 00207 { 00208 namespace message_traits 00209 { 00210 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_controllers::BaseControllerState_<ContainerAllocator> > : public TrueType {}; 00211 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_controllers::BaseControllerState_<ContainerAllocator> const> : public TrueType {}; 00212 template<class ContainerAllocator> 00213 struct MD5Sum< ::pr2_mechanism_controllers::BaseControllerState_<ContainerAllocator> > { 00214 static const char* value() 00215 { 00216 return "7a488aa492f9175d5fa35e22e56c4b28"; 00217 } 00218 00219 static const char* value(const ::pr2_mechanism_controllers::BaseControllerState_<ContainerAllocator> &) { return value(); } 00220 static const uint64_t static_value1 = 0x7a488aa492f9175dULL; 00221 static const uint64_t static_value2 = 0x5fa35e22e56c4b28ULL; 00222 }; 00223 00224 template<class ContainerAllocator> 00225 struct DataType< ::pr2_mechanism_controllers::BaseControllerState_<ContainerAllocator> > { 00226 static const char* value() 00227 { 00228 return "pr2_mechanism_controllers/BaseControllerState"; 00229 } 00230 00231 static const char* value(const ::pr2_mechanism_controllers::BaseControllerState_<ContainerAllocator> &) { return value(); } 00232 }; 00233 00234 template<class ContainerAllocator> 00235 struct Definition< ::pr2_mechanism_controllers::BaseControllerState_<ContainerAllocator> > { 00236 static const char* value() 00237 { 00238 return "geometry_msgs/Twist command\n\ 00239 float64[] joint_velocity_measured\n\ 00240 float64[] joint_velocity_commanded\n\ 00241 float64[] joint_velocity_error\n\ 00242 float64[] joint_effort_measured\n\ 00243 float64[] joint_effort_commanded\n\ 00244 float64[] joint_effort_error\n\ 00245 string[] joint_names\n\ 00246 \n\ 00247 \n\ 00248 ================================================================================\n\ 00249 MSG: geometry_msgs/Twist\n\ 00250 # This expresses velocity in free space broken into it's linear and angular parts. \n\ 00251 Vector3 linear\n\ 00252 Vector3 angular\n\ 00253 \n\ 00254 ================================================================================\n\ 00255 MSG: geometry_msgs/Vector3\n\ 00256 # This represents a vector in free space. \n\ 00257 \n\ 00258 float64 x\n\ 00259 float64 y\n\ 00260 float64 z\n\ 00261 "; 00262 } 00263 00264 static const char* value(const ::pr2_mechanism_controllers::BaseControllerState_<ContainerAllocator> &) { return value(); } 00265 }; 00266 00267 } // namespace message_traits 00268 } // namespace ros 00269 00270 namespace ros 00271 { 00272 namespace serialization 00273 { 00274 00275 template<class ContainerAllocator> struct Serializer< ::pr2_mechanism_controllers::BaseControllerState_<ContainerAllocator> > 00276 { 00277 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00278 { 00279 stream.next(m.command); 00280 stream.next(m.joint_velocity_measured); 00281 stream.next(m.joint_velocity_commanded); 00282 stream.next(m.joint_velocity_error); 00283 stream.next(m.joint_effort_measured); 00284 stream.next(m.joint_effort_commanded); 00285 stream.next(m.joint_effort_error); 00286 stream.next(m.joint_names); 00287 } 00288 00289 ROS_DECLARE_ALLINONE_SERIALIZER; 00290 }; // struct BaseControllerState_ 00291 } // namespace serialization 00292 } // namespace ros 00293 00294 namespace ros 00295 { 00296 namespace message_operations 00297 { 00298 00299 template<class ContainerAllocator> 00300 struct Printer< ::pr2_mechanism_controllers::BaseControllerState_<ContainerAllocator> > 00301 { 00302 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_mechanism_controllers::BaseControllerState_<ContainerAllocator> & v) 00303 { 00304 s << indent << "command: "; 00305 s << std::endl; 00306 Printer< ::geometry_msgs::Twist_<ContainerAllocator> >::stream(s, indent + " ", v.command); 00307 s << indent << "joint_velocity_measured[]" << std::endl; 00308 for (size_t i = 0; i < v.joint_velocity_measured.size(); ++i) 00309 { 00310 s << indent << " joint_velocity_measured[" << i << "]: "; 00311 Printer<double>::stream(s, indent + " ", v.joint_velocity_measured[i]); 00312 } 00313 s << indent << "joint_velocity_commanded[]" << std::endl; 00314 for (size_t i = 0; i < v.joint_velocity_commanded.size(); ++i) 00315 { 00316 s << indent << " joint_velocity_commanded[" << i << "]: "; 00317 Printer<double>::stream(s, indent + " ", v.joint_velocity_commanded[i]); 00318 } 00319 s << indent << "joint_velocity_error[]" << std::endl; 00320 for (size_t i = 0; i < v.joint_velocity_error.size(); ++i) 00321 { 00322 s << indent << " joint_velocity_error[" << i << "]: "; 00323 Printer<double>::stream(s, indent + " ", v.joint_velocity_error[i]); 00324 } 00325 s << indent << "joint_effort_measured[]" << std::endl; 00326 for (size_t i = 0; i < v.joint_effort_measured.size(); ++i) 00327 { 00328 s << indent << " joint_effort_measured[" << i << "]: "; 00329 Printer<double>::stream(s, indent + " ", v.joint_effort_measured[i]); 00330 } 00331 s << indent << "joint_effort_commanded[]" << std::endl; 00332 for (size_t i = 0; i < v.joint_effort_commanded.size(); ++i) 00333 { 00334 s << indent << " joint_effort_commanded[" << i << "]: "; 00335 Printer<double>::stream(s, indent + " ", v.joint_effort_commanded[i]); 00336 } 00337 s << indent << "joint_effort_error[]" << std::endl; 00338 for (size_t i = 0; i < v.joint_effort_error.size(); ++i) 00339 { 00340 s << indent << " joint_effort_error[" << i << "]: "; 00341 Printer<double>::stream(s, indent + " ", v.joint_effort_error[i]); 00342 } 00343 s << indent << "joint_names[]" << std::endl; 00344 for (size_t i = 0; i < v.joint_names.size(); ++i) 00345 { 00346 s << indent << " joint_names[" << i << "]: "; 00347 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.joint_names[i]); 00348 } 00349 } 00350 }; 00351 00352 00353 } // namespace message_operations 00354 } // namespace ros 00355 00356 #endif // PR2_MECHANISM_CONTROLLERS_MESSAGE_BASECONTROLLERSTATE_H 00357