$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_self_test/doc_stacks/2013-03-02_13-02-42.165655/pr2_self_test/joint_qualification_controllers/msg/RobotData.msg */ 00002 #ifndef JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_ROBOTDATA_H 00003 #define JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_ROBOTDATA_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 "joint_qualification_controllers/JointData.h" 00018 #include "joint_qualification_controllers/ActuatorData.h" 00019 00020 namespace joint_qualification_controllers 00021 { 00022 template <class ContainerAllocator> 00023 struct RobotData_ { 00024 typedef RobotData_<ContainerAllocator> Type; 00025 00026 RobotData_() 00027 : test_time(0.0) 00028 , timeout(false) 00029 , num_joints(0) 00030 , num_actuators(0) 00031 , joint_data() 00032 , actuator_data() 00033 { 00034 } 00035 00036 RobotData_(const ContainerAllocator& _alloc) 00037 : test_time(0.0) 00038 , timeout(false) 00039 , num_joints(0) 00040 , num_actuators(0) 00041 , joint_data(_alloc) 00042 , actuator_data(_alloc) 00043 { 00044 } 00045 00046 typedef float _test_time_type; 00047 float test_time; 00048 00049 typedef uint8_t _timeout_type; 00050 uint8_t timeout; 00051 00052 typedef int32_t _num_joints_type; 00053 int32_t num_joints; 00054 00055 typedef int32_t _num_actuators_type; 00056 int32_t num_actuators; 00057 00058 typedef std::vector< ::joint_qualification_controllers::JointData_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::joint_qualification_controllers::JointData_<ContainerAllocator> >::other > _joint_data_type; 00059 std::vector< ::joint_qualification_controllers::JointData_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::joint_qualification_controllers::JointData_<ContainerAllocator> >::other > joint_data; 00060 00061 typedef std::vector< ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> >::other > _actuator_data_type; 00062 std::vector< ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> >::other > actuator_data; 00063 00064 00065 ROS_DEPRECATED uint32_t get_joint_data_size() const { return (uint32_t)joint_data.size(); } 00066 ROS_DEPRECATED void set_joint_data_size(uint32_t size) { joint_data.resize((size_t)size); } 00067 ROS_DEPRECATED void get_joint_data_vec(std::vector< ::joint_qualification_controllers::JointData_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::joint_qualification_controllers::JointData_<ContainerAllocator> >::other > & vec) const { vec = this->joint_data; } 00068 ROS_DEPRECATED void set_joint_data_vec(const std::vector< ::joint_qualification_controllers::JointData_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::joint_qualification_controllers::JointData_<ContainerAllocator> >::other > & vec) { this->joint_data = vec; } 00069 ROS_DEPRECATED uint32_t get_actuator_data_size() const { return (uint32_t)actuator_data.size(); } 00070 ROS_DEPRECATED void set_actuator_data_size(uint32_t size) { actuator_data.resize((size_t)size); } 00071 ROS_DEPRECATED void get_actuator_data_vec(std::vector< ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> >::other > & vec) const { vec = this->actuator_data; } 00072 ROS_DEPRECATED void set_actuator_data_vec(const std::vector< ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> >::other > & vec) { this->actuator_data = vec; } 00073 private: 00074 static const char* __s_getDataType_() { return "joint_qualification_controllers/RobotData"; } 00075 public: 00076 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00077 00078 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00079 00080 private: 00081 static const char* __s_getMD5Sum_() { return "025931e8023fe22bd8228a980121730a"; } 00082 public: 00083 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00084 00085 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00086 00087 private: 00088 static const char* __s_getMessageDefinition_() { return "float32 test_time\n\ 00089 bool timeout\n\ 00090 int32 num_joints\n\ 00091 int32 num_actuators\n\ 00092 JointData[] joint_data\n\ 00093 ActuatorData[] actuator_data\n\ 00094 \n\ 00095 ================================================================================\n\ 00096 MSG: joint_qualification_controllers/JointData\n\ 00097 int16 index\n\ 00098 string name\n\ 00099 byte is_cal\n\ 00100 byte has_safety\n\ 00101 string type\n\ 00102 \n\ 00103 \n\ 00104 ================================================================================\n\ 00105 MSG: joint_qualification_controllers/ActuatorData\n\ 00106 int16 index\n\ 00107 string name\n\ 00108 int16 id\n\ 00109 \n\ 00110 \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, test_time); 00121 ros::serialization::serialize(stream, timeout); 00122 ros::serialization::serialize(stream, num_joints); 00123 ros::serialization::serialize(stream, num_actuators); 00124 ros::serialization::serialize(stream, joint_data); 00125 ros::serialization::serialize(stream, actuator_data); 00126 return stream.getData(); 00127 } 00128 00129 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00130 { 00131 ros::serialization::IStream stream(read_ptr, 1000000000); 00132 ros::serialization::deserialize(stream, test_time); 00133 ros::serialization::deserialize(stream, timeout); 00134 ros::serialization::deserialize(stream, num_joints); 00135 ros::serialization::deserialize(stream, num_actuators); 00136 ros::serialization::deserialize(stream, joint_data); 00137 ros::serialization::deserialize(stream, actuator_data); 00138 return stream.getData(); 00139 } 00140 00141 ROS_DEPRECATED virtual uint32_t serializationLength() const 00142 { 00143 uint32_t size = 0; 00144 size += ros::serialization::serializationLength(test_time); 00145 size += ros::serialization::serializationLength(timeout); 00146 size += ros::serialization::serializationLength(num_joints); 00147 size += ros::serialization::serializationLength(num_actuators); 00148 size += ros::serialization::serializationLength(joint_data); 00149 size += ros::serialization::serializationLength(actuator_data); 00150 return size; 00151 } 00152 00153 typedef boost::shared_ptr< ::joint_qualification_controllers::RobotData_<ContainerAllocator> > Ptr; 00154 typedef boost::shared_ptr< ::joint_qualification_controllers::RobotData_<ContainerAllocator> const> ConstPtr; 00155 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00156 }; // struct RobotData 00157 typedef ::joint_qualification_controllers::RobotData_<std::allocator<void> > RobotData; 00158 00159 typedef boost::shared_ptr< ::joint_qualification_controllers::RobotData> RobotDataPtr; 00160 typedef boost::shared_ptr< ::joint_qualification_controllers::RobotData const> RobotDataConstPtr; 00161 00162 00163 template<typename ContainerAllocator> 00164 std::ostream& operator<<(std::ostream& s, const ::joint_qualification_controllers::RobotData_<ContainerAllocator> & v) 00165 { 00166 ros::message_operations::Printer< ::joint_qualification_controllers::RobotData_<ContainerAllocator> >::stream(s, "", v); 00167 return s;} 00168 00169 } // namespace joint_qualification_controllers 00170 00171 namespace ros 00172 { 00173 namespace message_traits 00174 { 00175 template<class ContainerAllocator> struct IsMessage< ::joint_qualification_controllers::RobotData_<ContainerAllocator> > : public TrueType {}; 00176 template<class ContainerAllocator> struct IsMessage< ::joint_qualification_controllers::RobotData_<ContainerAllocator> const> : public TrueType {}; 00177 template<class ContainerAllocator> 00178 struct MD5Sum< ::joint_qualification_controllers::RobotData_<ContainerAllocator> > { 00179 static const char* value() 00180 { 00181 return "025931e8023fe22bd8228a980121730a"; 00182 } 00183 00184 static const char* value(const ::joint_qualification_controllers::RobotData_<ContainerAllocator> &) { return value(); } 00185 static const uint64_t static_value1 = 0x025931e8023fe22bULL; 00186 static const uint64_t static_value2 = 0xd8228a980121730aULL; 00187 }; 00188 00189 template<class ContainerAllocator> 00190 struct DataType< ::joint_qualification_controllers::RobotData_<ContainerAllocator> > { 00191 static const char* value() 00192 { 00193 return "joint_qualification_controllers/RobotData"; 00194 } 00195 00196 static const char* value(const ::joint_qualification_controllers::RobotData_<ContainerAllocator> &) { return value(); } 00197 }; 00198 00199 template<class ContainerAllocator> 00200 struct Definition< ::joint_qualification_controllers::RobotData_<ContainerAllocator> > { 00201 static const char* value() 00202 { 00203 return "float32 test_time\n\ 00204 bool timeout\n\ 00205 int32 num_joints\n\ 00206 int32 num_actuators\n\ 00207 JointData[] joint_data\n\ 00208 ActuatorData[] actuator_data\n\ 00209 \n\ 00210 ================================================================================\n\ 00211 MSG: joint_qualification_controllers/JointData\n\ 00212 int16 index\n\ 00213 string name\n\ 00214 byte is_cal\n\ 00215 byte has_safety\n\ 00216 string type\n\ 00217 \n\ 00218 \n\ 00219 ================================================================================\n\ 00220 MSG: joint_qualification_controllers/ActuatorData\n\ 00221 int16 index\n\ 00222 string name\n\ 00223 int16 id\n\ 00224 \n\ 00225 \n\ 00226 "; 00227 } 00228 00229 static const char* value(const ::joint_qualification_controllers::RobotData_<ContainerAllocator> &) { return value(); } 00230 }; 00231 00232 } // namespace message_traits 00233 } // namespace ros 00234 00235 namespace ros 00236 { 00237 namespace serialization 00238 { 00239 00240 template<class ContainerAllocator> struct Serializer< ::joint_qualification_controllers::RobotData_<ContainerAllocator> > 00241 { 00242 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00243 { 00244 stream.next(m.test_time); 00245 stream.next(m.timeout); 00246 stream.next(m.num_joints); 00247 stream.next(m.num_actuators); 00248 stream.next(m.joint_data); 00249 stream.next(m.actuator_data); 00250 } 00251 00252 ROS_DECLARE_ALLINONE_SERIALIZER; 00253 }; // struct RobotData_ 00254 } // namespace serialization 00255 } // namespace ros 00256 00257 namespace ros 00258 { 00259 namespace message_operations 00260 { 00261 00262 template<class ContainerAllocator> 00263 struct Printer< ::joint_qualification_controllers::RobotData_<ContainerAllocator> > 00264 { 00265 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::joint_qualification_controllers::RobotData_<ContainerAllocator> & v) 00266 { 00267 s << indent << "test_time: "; 00268 Printer<float>::stream(s, indent + " ", v.test_time); 00269 s << indent << "timeout: "; 00270 Printer<uint8_t>::stream(s, indent + " ", v.timeout); 00271 s << indent << "num_joints: "; 00272 Printer<int32_t>::stream(s, indent + " ", v.num_joints); 00273 s << indent << "num_actuators: "; 00274 Printer<int32_t>::stream(s, indent + " ", v.num_actuators); 00275 s << indent << "joint_data[]" << std::endl; 00276 for (size_t i = 0; i < v.joint_data.size(); ++i) 00277 { 00278 s << indent << " joint_data[" << i << "]: "; 00279 s << std::endl; 00280 s << indent; 00281 Printer< ::joint_qualification_controllers::JointData_<ContainerAllocator> >::stream(s, indent + " ", v.joint_data[i]); 00282 } 00283 s << indent << "actuator_data[]" << std::endl; 00284 for (size_t i = 0; i < v.actuator_data.size(); ++i) 00285 { 00286 s << indent << " actuator_data[" << i << "]: "; 00287 s << std::endl; 00288 s << indent; 00289 Printer< ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> >::stream(s, indent + " ", v.actuator_data[i]); 00290 } 00291 } 00292 }; 00293 00294 00295 } // namespace message_operations 00296 } // namespace ros 00297 00298 #endif // JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_ROBOTDATA_H 00299