FrameStats.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-visualization_engine/doc_stacks/2013-12-11_14-28-19.339941/visualization_engine/rve_msgs/msg/FrameStats.msg */
00002 #ifndef RVE_MSGS_MESSAGE_FRAMESTATS_H
00003 #define RVE_MSGS_MESSAGE_FRAMESTATS_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 "rve_msgs/RenderTargetFrameStats.h"
00018 #include "rve_msgs/NVPerfCounters.h"
00019 
00020 namespace rve_msgs
00021 {
00022 template <class ContainerAllocator>
00023 struct FrameStats_ {
00024   typedef FrameStats_<ContainerAllocator> Type;
00025 
00026   FrameStats_()
00027   : total_frame_time(0.0)
00028   , render_window_stats()
00029   , nv_perf_counters()
00030   {
00031   }
00032 
00033   FrameStats_(const ContainerAllocator& _alloc)
00034   : total_frame_time(0.0)
00035   , render_window_stats(_alloc)
00036   , nv_perf_counters(_alloc)
00037   {
00038   }
00039 
00040   typedef double _total_frame_time_type;
00041   double total_frame_time;
00042 
00043   typedef std::vector< ::rve_msgs::RenderTargetFrameStats_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::RenderTargetFrameStats_<ContainerAllocator> >::other >  _render_window_stats_type;
00044   std::vector< ::rve_msgs::RenderTargetFrameStats_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::RenderTargetFrameStats_<ContainerAllocator> >::other >  render_window_stats;
00045 
00046   typedef  ::rve_msgs::NVPerfCounters_<ContainerAllocator>  _nv_perf_counters_type;
00047    ::rve_msgs::NVPerfCounters_<ContainerAllocator>  nv_perf_counters;
00048 
00049 
00050   typedef boost::shared_ptr< ::rve_msgs::FrameStats_<ContainerAllocator> > Ptr;
00051   typedef boost::shared_ptr< ::rve_msgs::FrameStats_<ContainerAllocator>  const> ConstPtr;
00052   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00053 }; // struct FrameStats
00054 typedef  ::rve_msgs::FrameStats_<std::allocator<void> > FrameStats;
00055 
00056 typedef boost::shared_ptr< ::rve_msgs::FrameStats> FrameStatsPtr;
00057 typedef boost::shared_ptr< ::rve_msgs::FrameStats const> FrameStatsConstPtr;
00058 
00059 
00060 template<typename ContainerAllocator>
00061 std::ostream& operator<<(std::ostream& s, const  ::rve_msgs::FrameStats_<ContainerAllocator> & v)
00062 {
00063   ros::message_operations::Printer< ::rve_msgs::FrameStats_<ContainerAllocator> >::stream(s, "", v);
00064   return s;}
00065 
00066 } // namespace rve_msgs
00067 
00068 namespace ros
00069 {
00070 namespace message_traits
00071 {
00072 template<class ContainerAllocator> struct IsMessage< ::rve_msgs::FrameStats_<ContainerAllocator> > : public TrueType {};
00073 template<class ContainerAllocator> struct IsMessage< ::rve_msgs::FrameStats_<ContainerAllocator>  const> : public TrueType {};
00074 template<class ContainerAllocator>
00075 struct MD5Sum< ::rve_msgs::FrameStats_<ContainerAllocator> > {
00076   static const char* value() 
00077   {
00078     return "e0aafbdbfcf683828be95d21dfa3dfb2";
00079   }
00080 
00081   static const char* value(const  ::rve_msgs::FrameStats_<ContainerAllocator> &) { return value(); } 
00082   static const uint64_t static_value1 = 0xe0aafbdbfcf68382ULL;
00083   static const uint64_t static_value2 = 0x8be95d21dfa3dfb2ULL;
00084 };
00085 
00086 template<class ContainerAllocator>
00087 struct DataType< ::rve_msgs::FrameStats_<ContainerAllocator> > {
00088   static const char* value() 
00089   {
00090     return "rve_msgs/FrameStats";
00091   }
00092 
00093   static const char* value(const  ::rve_msgs::FrameStats_<ContainerAllocator> &) { return value(); } 
00094 };
00095 
00096 template<class ContainerAllocator>
00097 struct Definition< ::rve_msgs::FrameStats_<ContainerAllocator> > {
00098   static const char* value() 
00099   {
00100     return "float64 total_frame_time\n\
00101 \n\
00102 RenderTargetFrameStats[] render_window_stats\n\
00103 NVPerfCounters nv_perf_counters\n\
00104 \n\
00105 ================================================================================\n\
00106 MSG: rve_msgs/RenderTargetFrameStats\n\
00107 UUID id\n\
00108 \n\
00109 float64 blit_to_main\n\
00110 float64 main_swap\n\
00111 \n\
00112 float64 gbuffer_update\n\
00113 float64 gbuffer_swap\n\
00114 ================================================================================\n\
00115 MSG: rve_msgs/UUID\n\
00116 uint8[16] data\n\
00117 \n\
00118 ================================================================================\n\
00119 MSG: rve_msgs/NVPerfCounters\n\
00120 NVPerfCounter[] counters\n\
00121 string gpu_bottleneck\n\
00122 ================================================================================\n\
00123 MSG: rve_msgs/NVPerfCounter\n\
00124 string name\n\
00125 uint64 value\n\
00126 uint64 cycles\n\
00127 float64 value_as_pct\n\
00128 ";
00129   }
00130 
00131   static const char* value(const  ::rve_msgs::FrameStats_<ContainerAllocator> &) { return value(); } 
00132 };
00133 
00134 } // namespace message_traits
00135 } // namespace ros
00136 
00137 namespace ros
00138 {
00139 namespace serialization
00140 {
00141 
00142 template<class ContainerAllocator> struct Serializer< ::rve_msgs::FrameStats_<ContainerAllocator> >
00143 {
00144   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00145   {
00146     stream.next(m.total_frame_time);
00147     stream.next(m.render_window_stats);
00148     stream.next(m.nv_perf_counters);
00149   }
00150 
00151   ROS_DECLARE_ALLINONE_SERIALIZER;
00152 }; // struct FrameStats_
00153 } // namespace serialization
00154 } // namespace ros
00155 
00156 namespace ros
00157 {
00158 namespace message_operations
00159 {
00160 
00161 template<class ContainerAllocator>
00162 struct Printer< ::rve_msgs::FrameStats_<ContainerAllocator> >
00163 {
00164   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::rve_msgs::FrameStats_<ContainerAllocator> & v) 
00165   {
00166     s << indent << "total_frame_time: ";
00167     Printer<double>::stream(s, indent + "  ", v.total_frame_time);
00168     s << indent << "render_window_stats[]" << std::endl;
00169     for (size_t i = 0; i < v.render_window_stats.size(); ++i)
00170     {
00171       s << indent << "  render_window_stats[" << i << "]: ";
00172       s << std::endl;
00173       s << indent;
00174       Printer< ::rve_msgs::RenderTargetFrameStats_<ContainerAllocator> >::stream(s, indent + "    ", v.render_window_stats[i]);
00175     }
00176     s << indent << "nv_perf_counters: ";
00177 s << std::endl;
00178     Printer< ::rve_msgs::NVPerfCounters_<ContainerAllocator> >::stream(s, indent + "  ", v.nv_perf_counters);
00179   }
00180 };
00181 
00182 
00183 } // namespace message_operations
00184 } // namespace ros
00185 
00186 #endif // RVE_MSGS_MESSAGE_FRAMESTATS_H
00187 


rve_msgs
Author(s): Josh Faust
autogenerated on Wed Dec 11 2013 14:30:39