RobotData.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-pr2_self_test/doc_stacks/2013-12-28_17-26-17.231482/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   typedef boost::shared_ptr< ::joint_qualification_controllers::RobotData_<ContainerAllocator> > Ptr;
00066   typedef boost::shared_ptr< ::joint_qualification_controllers::RobotData_<ContainerAllocator>  const> ConstPtr;
00067   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00068 }; // struct RobotData
00069 typedef  ::joint_qualification_controllers::RobotData_<std::allocator<void> > RobotData;
00070 
00071 typedef boost::shared_ptr< ::joint_qualification_controllers::RobotData> RobotDataPtr;
00072 typedef boost::shared_ptr< ::joint_qualification_controllers::RobotData const> RobotDataConstPtr;
00073 
00074 
00075 template<typename ContainerAllocator>
00076 std::ostream& operator<<(std::ostream& s, const  ::joint_qualification_controllers::RobotData_<ContainerAllocator> & v)
00077 {
00078   ros::message_operations::Printer< ::joint_qualification_controllers::RobotData_<ContainerAllocator> >::stream(s, "", v);
00079   return s;}
00080 
00081 } // namespace joint_qualification_controllers
00082 
00083 namespace ros
00084 {
00085 namespace message_traits
00086 {
00087 template<class ContainerAllocator> struct IsMessage< ::joint_qualification_controllers::RobotData_<ContainerAllocator> > : public TrueType {};
00088 template<class ContainerAllocator> struct IsMessage< ::joint_qualification_controllers::RobotData_<ContainerAllocator>  const> : public TrueType {};
00089 template<class ContainerAllocator>
00090 struct MD5Sum< ::joint_qualification_controllers::RobotData_<ContainerAllocator> > {
00091   static const char* value() 
00092   {
00093     return "025931e8023fe22bd8228a980121730a";
00094   }
00095 
00096   static const char* value(const  ::joint_qualification_controllers::RobotData_<ContainerAllocator> &) { return value(); } 
00097   static const uint64_t static_value1 = 0x025931e8023fe22bULL;
00098   static const uint64_t static_value2 = 0xd8228a980121730aULL;
00099 };
00100 
00101 template<class ContainerAllocator>
00102 struct DataType< ::joint_qualification_controllers::RobotData_<ContainerAllocator> > {
00103   static const char* value() 
00104   {
00105     return "joint_qualification_controllers/RobotData";
00106   }
00107 
00108   static const char* value(const  ::joint_qualification_controllers::RobotData_<ContainerAllocator> &) { return value(); } 
00109 };
00110 
00111 template<class ContainerAllocator>
00112 struct Definition< ::joint_qualification_controllers::RobotData_<ContainerAllocator> > {
00113   static const char* value() 
00114   {
00115     return "float32 test_time\n\
00116 bool timeout\n\
00117 int32 num_joints\n\
00118 int32 num_actuators\n\
00119 JointData[] joint_data\n\
00120 ActuatorData[] actuator_data\n\
00121 \n\
00122 ================================================================================\n\
00123 MSG: joint_qualification_controllers/JointData\n\
00124 int16 index\n\
00125 string name\n\
00126 byte is_cal\n\
00127 byte has_safety\n\
00128 string type\n\
00129 \n\
00130 \n\
00131 ================================================================================\n\
00132 MSG: joint_qualification_controllers/ActuatorData\n\
00133 int16 index\n\
00134 string name\n\
00135 int16 id\n\
00136 \n\
00137 \n\
00138 ";
00139   }
00140 
00141   static const char* value(const  ::joint_qualification_controllers::RobotData_<ContainerAllocator> &) { return value(); } 
00142 };
00143 
00144 } // namespace message_traits
00145 } // namespace ros
00146 
00147 namespace ros
00148 {
00149 namespace serialization
00150 {
00151 
00152 template<class ContainerAllocator> struct Serializer< ::joint_qualification_controllers::RobotData_<ContainerAllocator> >
00153 {
00154   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00155   {
00156     stream.next(m.test_time);
00157     stream.next(m.timeout);
00158     stream.next(m.num_joints);
00159     stream.next(m.num_actuators);
00160     stream.next(m.joint_data);
00161     stream.next(m.actuator_data);
00162   }
00163 
00164   ROS_DECLARE_ALLINONE_SERIALIZER;
00165 }; // struct RobotData_
00166 } // namespace serialization
00167 } // namespace ros
00168 
00169 namespace ros
00170 {
00171 namespace message_operations
00172 {
00173 
00174 template<class ContainerAllocator>
00175 struct Printer< ::joint_qualification_controllers::RobotData_<ContainerAllocator> >
00176 {
00177   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::joint_qualification_controllers::RobotData_<ContainerAllocator> & v) 
00178   {
00179     s << indent << "test_time: ";
00180     Printer<float>::stream(s, indent + "  ", v.test_time);
00181     s << indent << "timeout: ";
00182     Printer<uint8_t>::stream(s, indent + "  ", v.timeout);
00183     s << indent << "num_joints: ";
00184     Printer<int32_t>::stream(s, indent + "  ", v.num_joints);
00185     s << indent << "num_actuators: ";
00186     Printer<int32_t>::stream(s, indent + "  ", v.num_actuators);
00187     s << indent << "joint_data[]" << std::endl;
00188     for (size_t i = 0; i < v.joint_data.size(); ++i)
00189     {
00190       s << indent << "  joint_data[" << i << "]: ";
00191       s << std::endl;
00192       s << indent;
00193       Printer< ::joint_qualification_controllers::JointData_<ContainerAllocator> >::stream(s, indent + "    ", v.joint_data[i]);
00194     }
00195     s << indent << "actuator_data[]" << std::endl;
00196     for (size_t i = 0; i < v.actuator_data.size(); ++i)
00197     {
00198       s << indent << "  actuator_data[" << i << "]: ";
00199       s << std::endl;
00200       s << indent;
00201       Printer< ::joint_qualification_controllers::ActuatorData_<ContainerAllocator> >::stream(s, indent + "    ", v.actuator_data[i]);
00202     }
00203   }
00204 };
00205 
00206 
00207 } // namespace message_operations
00208 } // namespace ros
00209 
00210 #endif // JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_ROBOTDATA_H
00211 


joint_qualification_controllers
Author(s): Kevin Watts, Melonee Wise
autogenerated on Sat Dec 28 2013 17:29:55