00001 #ifndef OFFSCREEN_RENDERER_ROBOT_RENDERER_NODELET_H 00002 #define OFFSCREEN_RENDERER_ROBOT_RENDERER_NODELET_H 00003 00004 #include <nodelet/nodelet.h> 00005 #include "offscreenRenderer.h" 00006 00007 namespace offscreen_renderer 00008 { 00009 class OffscreenRendererNodelet : public nodelet::Nodelet 00010 { 00011 public: 00012 ~OffscreenRendererNodelet() 00013 { 00014 delete offscreen_renderer_; 00015 rve_render_client::shutdown(); 00016 rve_render_server::shutdown(); 00017 } 00018 void onInit(); 00019 private: 00020 OffscreenRenderer* offscreen_renderer_; 00021 }; 00022 } // namespace offscreen_renderer 00023 00024 #endif