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