ControllerStatistics.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-pr2_mechanism/doc_stacks/2012-11-17_19-51-59.699761/pr2_mechanism/pr2_mechanism_msgs/msg/ControllerStatistics.msg */
00002 #ifndef PR2_MECHANISM_MSGS_MESSAGE_CONTROLLERSTATISTICS_H
00003 #define PR2_MECHANISM_MSGS_MESSAGE_CONTROLLERSTATISTICS_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_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct ControllerStatistics_ {
00022   typedef ControllerStatistics_<ContainerAllocator> Type;
00023 
00024   ControllerStatistics_()
00025   : name()
00026   , timestamp()
00027   , running(false)
00028   , max_time()
00029   , mean_time()
00030   , variance_time()
00031   , num_control_loop_overruns(0)
00032   , time_last_control_loop_overrun()
00033   {
00034   }
00035 
00036   ControllerStatistics_(const ContainerAllocator& _alloc)
00037   : name(_alloc)
00038   , timestamp()
00039   , running(false)
00040   , max_time()
00041   , mean_time()
00042   , variance_time()
00043   , num_control_loop_overruns(0)
00044   , time_last_control_loop_overrun()
00045   {
00046   }
00047 
00048   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _name_type;
00049   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  name;
00050 
00051   typedef ros::Time _timestamp_type;
00052   ros::Time timestamp;
00053 
00054   typedef uint8_t _running_type;
00055   uint8_t running;
00056 
00057   typedef ros::Duration _max_time_type;
00058   ros::Duration max_time;
00059 
00060   typedef ros::Duration _mean_time_type;
00061   ros::Duration mean_time;
00062 
00063   typedef ros::Duration _variance_time_type;
00064   ros::Duration variance_time;
00065 
00066   typedef int32_t _num_control_loop_overruns_type;
00067   int32_t num_control_loop_overruns;
00068 
00069   typedef ros::Time _time_last_control_loop_overrun_type;
00070   ros::Time time_last_control_loop_overrun;
00071 
00072 
00073   typedef boost::shared_ptr< ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> > Ptr;
00074   typedef boost::shared_ptr< ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator>  const> ConstPtr;
00075   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00076 }; // struct ControllerStatistics
00077 typedef  ::pr2_mechanism_msgs::ControllerStatistics_<std::allocator<void> > ControllerStatistics;
00078 
00079 typedef boost::shared_ptr< ::pr2_mechanism_msgs::ControllerStatistics> ControllerStatisticsPtr;
00080 typedef boost::shared_ptr< ::pr2_mechanism_msgs::ControllerStatistics const> ControllerStatisticsConstPtr;
00081 
00082 
00083 template<typename ContainerAllocator>
00084 std::ostream& operator<<(std::ostream& s, const  ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> & v)
00085 {
00086   ros::message_operations::Printer< ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> >::stream(s, "", v);
00087   return s;}
00088 
00089 } // namespace pr2_mechanism_msgs
00090 
00091 namespace ros
00092 {
00093 namespace message_traits
00094 {
00095 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> > : public TrueType {};
00096 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator>  const> : public TrueType {};
00097 template<class ContainerAllocator>
00098 struct MD5Sum< ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> > {
00099   static const char* value() 
00100   {
00101     return "6d15d137eea402018e3c7c8dbecd4b95";
00102   }
00103 
00104   static const char* value(const  ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> &) { return value(); } 
00105   static const uint64_t static_value1 = 0x6d15d137eea40201ULL;
00106   static const uint64_t static_value2 = 0x8e3c7c8dbecd4b95ULL;
00107 };
00108 
00109 template<class ContainerAllocator>
00110 struct DataType< ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> > {
00111   static const char* value() 
00112   {
00113     return "pr2_mechanism_msgs/ControllerStatistics";
00114   }
00115 
00116   static const char* value(const  ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> &) { return value(); } 
00117 };
00118 
00119 template<class ContainerAllocator>
00120 struct Definition< ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> > {
00121   static const char* value() 
00122   {
00123     return "# This message contains the state of one realtime controller\n\
00124 # that was spawned in pr2_mechanism_control\n\
00125 \n\
00126 # the name of the controller\n\
00127 string name\n\
00128 \n\
00129 # the time at which these controller statistics were measured\n\
00130 time timestamp\n\
00131 \n\
00132 # bool that indicates if the controller is currently\n\
00133 # in a running or a stopped state\n\
00134 bool running\n\
00135 \n\
00136 # the maximum time the update loop of the controller ever needed to complete\n\
00137 duration max_time\n\
00138 \n\
00139 # the average time the update loop of the controller needs to complete. \n\
00140 # the average is computed in a sliding time window.\n\
00141 duration mean_time\n\
00142 \n\
00143 # the variance on the time the update loop of the controller needs to complete.\n\
00144 # the variance applies to a sliding time window.\n\
00145 duration variance_time\n\
00146 \n\
00147 # the number of times this controller broke the realtime loop\n\
00148 int32 num_control_loop_overruns\n\
00149 \n\
00150 # the timestamp of the last time this controller broke the realtime loop\n\
00151 time time_last_control_loop_overrun\n\
00152 ";
00153   }
00154 
00155   static const char* value(const  ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> &) { return value(); } 
00156 };
00157 
00158 } // namespace message_traits
00159 } // namespace ros
00160 
00161 namespace ros
00162 {
00163 namespace serialization
00164 {
00165 
00166 template<class ContainerAllocator> struct Serializer< ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> >
00167 {
00168   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00169   {
00170     stream.next(m.name);
00171     stream.next(m.timestamp);
00172     stream.next(m.running);
00173     stream.next(m.max_time);
00174     stream.next(m.mean_time);
00175     stream.next(m.variance_time);
00176     stream.next(m.num_control_loop_overruns);
00177     stream.next(m.time_last_control_loop_overrun);
00178   }
00179 
00180   ROS_DECLARE_ALLINONE_SERIALIZER;
00181 }; // struct ControllerStatistics_
00182 } // namespace serialization
00183 } // namespace ros
00184 
00185 namespace ros
00186 {
00187 namespace message_operations
00188 {
00189 
00190 template<class ContainerAllocator>
00191 struct Printer< ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> >
00192 {
00193   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> & v) 
00194   {
00195     s << indent << "name: ";
00196     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.name);
00197     s << indent << "timestamp: ";
00198     Printer<ros::Time>::stream(s, indent + "  ", v.timestamp);
00199     s << indent << "running: ";
00200     Printer<uint8_t>::stream(s, indent + "  ", v.running);
00201     s << indent << "max_time: ";
00202     Printer<ros::Duration>::stream(s, indent + "  ", v.max_time);
00203     s << indent << "mean_time: ";
00204     Printer<ros::Duration>::stream(s, indent + "  ", v.mean_time);
00205     s << indent << "variance_time: ";
00206     Printer<ros::Duration>::stream(s, indent + "  ", v.variance_time);
00207     s << indent << "num_control_loop_overruns: ";
00208     Printer<int32_t>::stream(s, indent + "  ", v.num_control_loop_overruns);
00209     s << indent << "time_last_control_loop_overrun: ";
00210     Printer<ros::Time>::stream(s, indent + "  ", v.time_last_control_loop_overrun);
00211   }
00212 };
00213 
00214 
00215 } // namespace message_operations
00216 } // namespace ros
00217 
00218 #endif // PR2_MECHANISM_MSGS_MESSAGE_CONTROLLERSTATISTICS_H
00219 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends


pr2_mechanism_msgs
Author(s): Stuart Glaser sglaser@willowgarage.com, Wim Meeussen
autogenerated on Sat Nov 17 2012 19:53:39