$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/DebugInfo.msg */ 00002 #ifndef PR2_MECHANISM_CONTROLLERS_MESSAGE_DEBUGINFO_H 00003 #define PR2_MECHANISM_CONTROLLERS_MESSAGE_DEBUGINFO_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 00018 namespace pr2_mechanism_controllers 00019 { 00020 template <class ContainerAllocator> 00021 struct DebugInfo_ { 00022 typedef DebugInfo_<ContainerAllocator> Type; 00023 00024 DebugInfo_() 00025 : timing() 00026 , sequence(0) 00027 , input_valid(false) 00028 , residual(0.0) 00029 { 00030 } 00031 00032 DebugInfo_(const ContainerAllocator& _alloc) 00033 : timing(_alloc) 00034 , sequence(0) 00035 , input_valid(false) 00036 , residual(0.0) 00037 { 00038 } 00039 00040 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _timing_type; 00041 std::vector<double, typename ContainerAllocator::template rebind<double>::other > timing; 00042 00043 typedef int32_t _sequence_type; 00044 int32_t sequence; 00045 00046 typedef uint8_t _input_valid_type; 00047 uint8_t input_valid; 00048 00049 typedef double _residual_type; 00050 double residual; 00051 00052 00053 ROS_DEPRECATED uint32_t get_timing_size() const { return (uint32_t)timing.size(); } 00054 ROS_DEPRECATED void set_timing_size(uint32_t size) { timing.resize((size_t)size); } 00055 ROS_DEPRECATED void get_timing_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->timing; } 00056 ROS_DEPRECATED void set_timing_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->timing = vec; } 00057 private: 00058 static const char* __s_getDataType_() { return "pr2_mechanism_controllers/DebugInfo"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00061 00062 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00063 00064 private: 00065 static const char* __s_getMD5Sum_() { return "6281356ce897e33da024b8eb319460f2"; } 00066 public: 00067 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00068 00069 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00070 00071 private: 00072 static const char* __s_getMessageDefinition_() { return "float64[] timing\n\ 00073 int32 sequence\n\ 00074 bool input_valid\n\ 00075 float64 residual\n\ 00076 "; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00079 00080 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00081 00082 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00083 { 00084 ros::serialization::OStream stream(write_ptr, 1000000000); 00085 ros::serialization::serialize(stream, timing); 00086 ros::serialization::serialize(stream, sequence); 00087 ros::serialization::serialize(stream, input_valid); 00088 ros::serialization::serialize(stream, residual); 00089 return stream.getData(); 00090 } 00091 00092 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00093 { 00094 ros::serialization::IStream stream(read_ptr, 1000000000); 00095 ros::serialization::deserialize(stream, timing); 00096 ros::serialization::deserialize(stream, sequence); 00097 ros::serialization::deserialize(stream, input_valid); 00098 ros::serialization::deserialize(stream, residual); 00099 return stream.getData(); 00100 } 00101 00102 ROS_DEPRECATED virtual uint32_t serializationLength() const 00103 { 00104 uint32_t size = 0; 00105 size += ros::serialization::serializationLength(timing); 00106 size += ros::serialization::serializationLength(sequence); 00107 size += ros::serialization::serializationLength(input_valid); 00108 size += ros::serialization::serializationLength(residual); 00109 return size; 00110 } 00111 00112 typedef boost::shared_ptr< ::pr2_mechanism_controllers::DebugInfo_<ContainerAllocator> > Ptr; 00113 typedef boost::shared_ptr< ::pr2_mechanism_controllers::DebugInfo_<ContainerAllocator> const> ConstPtr; 00114 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00115 }; // struct DebugInfo 00116 typedef ::pr2_mechanism_controllers::DebugInfo_<std::allocator<void> > DebugInfo; 00117 00118 typedef boost::shared_ptr< ::pr2_mechanism_controllers::DebugInfo> DebugInfoPtr; 00119 typedef boost::shared_ptr< ::pr2_mechanism_controllers::DebugInfo const> DebugInfoConstPtr; 00120 00121 00122 template<typename ContainerAllocator> 00123 std::ostream& operator<<(std::ostream& s, const ::pr2_mechanism_controllers::DebugInfo_<ContainerAllocator> & v) 00124 { 00125 ros::message_operations::Printer< ::pr2_mechanism_controllers::DebugInfo_<ContainerAllocator> >::stream(s, "", v); 00126 return s;} 00127 00128 } // namespace pr2_mechanism_controllers 00129 00130 namespace ros 00131 { 00132 namespace message_traits 00133 { 00134 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_controllers::DebugInfo_<ContainerAllocator> > : public TrueType {}; 00135 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_controllers::DebugInfo_<ContainerAllocator> const> : public TrueType {}; 00136 template<class ContainerAllocator> 00137 struct MD5Sum< ::pr2_mechanism_controllers::DebugInfo_<ContainerAllocator> > { 00138 static const char* value() 00139 { 00140 return "6281356ce897e33da024b8eb319460f2"; 00141 } 00142 00143 static const char* value(const ::pr2_mechanism_controllers::DebugInfo_<ContainerAllocator> &) { return value(); } 00144 static const uint64_t static_value1 = 0x6281356ce897e33dULL; 00145 static const uint64_t static_value2 = 0xa024b8eb319460f2ULL; 00146 }; 00147 00148 template<class ContainerAllocator> 00149 struct DataType< ::pr2_mechanism_controllers::DebugInfo_<ContainerAllocator> > { 00150 static const char* value() 00151 { 00152 return "pr2_mechanism_controllers/DebugInfo"; 00153 } 00154 00155 static const char* value(const ::pr2_mechanism_controllers::DebugInfo_<ContainerAllocator> &) { return value(); } 00156 }; 00157 00158 template<class ContainerAllocator> 00159 struct Definition< ::pr2_mechanism_controllers::DebugInfo_<ContainerAllocator> > { 00160 static const char* value() 00161 { 00162 return "float64[] timing\n\ 00163 int32 sequence\n\ 00164 bool input_valid\n\ 00165 float64 residual\n\ 00166 "; 00167 } 00168 00169 static const char* value(const ::pr2_mechanism_controllers::DebugInfo_<ContainerAllocator> &) { return value(); } 00170 }; 00171 00172 } // namespace message_traits 00173 } // namespace ros 00174 00175 namespace ros 00176 { 00177 namespace serialization 00178 { 00179 00180 template<class ContainerAllocator> struct Serializer< ::pr2_mechanism_controllers::DebugInfo_<ContainerAllocator> > 00181 { 00182 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00183 { 00184 stream.next(m.timing); 00185 stream.next(m.sequence); 00186 stream.next(m.input_valid); 00187 stream.next(m.residual); 00188 } 00189 00190 ROS_DECLARE_ALLINONE_SERIALIZER; 00191 }; // struct DebugInfo_ 00192 } // namespace serialization 00193 } // namespace ros 00194 00195 namespace ros 00196 { 00197 namespace message_operations 00198 { 00199 00200 template<class ContainerAllocator> 00201 struct Printer< ::pr2_mechanism_controllers::DebugInfo_<ContainerAllocator> > 00202 { 00203 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_mechanism_controllers::DebugInfo_<ContainerAllocator> & v) 00204 { 00205 s << indent << "timing[]" << std::endl; 00206 for (size_t i = 0; i < v.timing.size(); ++i) 00207 { 00208 s << indent << " timing[" << i << "]: "; 00209 Printer<double>::stream(s, indent + " ", v.timing[i]); 00210 } 00211 s << indent << "sequence: "; 00212 Printer<int32_t>::stream(s, indent + " ", v.sequence); 00213 s << indent << "input_valid: "; 00214 Printer<uint8_t>::stream(s, indent + " ", v.input_valid); 00215 s << indent << "residual: "; 00216 Printer<double>::stream(s, indent + " ", v.residual); 00217 } 00218 }; 00219 00220 00221 } // namespace message_operations 00222 } // namespace ros 00223 00224 #endif // PR2_MECHANISM_CONTROLLERS_MESSAGE_DEBUGINFO_H 00225