.. index:: pair: class; NRPROSProxy .. _doxid-class_n_r_p_r_o_s_proxy: class NRPROSProxy ================= .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class NRPROSProxy { public: // construction :target:`NRPROSProxy`(const NRPROSProxy&); :target:`NRPROSProxy`(NRPROSProxy&&); // methods NRPROSProxy& :target:`operator =` (const NRPROSProxy&); NRPROSProxy& :target:`operator =` (NRPROSProxy&&); template void :ref:`subscribe`( const std::string& address, const boost::function&)>& callback, size_t queueSize = 10 ); template void :ref:`publish`( const std::string& address, const MSG_TYPE& msg, size_t queueSize = 10 ); static NRPROSProxy& :ref:`getInstance`(); static NRPROSProxy& :ref:`resetInstance`(); }; .. _details-class_n_r_p_r_o_s_proxy: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; subscribe .. _doxid-class_n_r_p_r_o_s_proxy_1adea2ebec71e11ad584fdcd8ff6affd41: .. ref-code-block:: cpp :class: doxyrest-title-code-block template void subscribe( const std::string& address, const boost::function&)>& callback, size_t queueSize = 10 ) Subscribe to ROS topic 'address' with callback function 'callback'. .. index:: pair: function; publish .. _doxid-class_n_r_p_r_o_s_proxy_1a41e5ba69a2eb3f6e8736daa2fd4b00f8: .. ref-code-block:: cpp :class: doxyrest-title-code-block template void publish( const std::string& address, const MSG_TYPE& msg, size_t queueSize = 10 ) Publishes 'msg' to ROS topic 'address'. .. index:: pair: function; getInstance .. _doxid-class_n_r_p_r_o_s_proxy_1a5f5c1175db12af47131803ef27c91902: .. ref-code-block:: cpp :class: doxyrest-title-code-block static NRPROSProxy& getInstance() Get singleton instance of :ref:`NRPROSProxy `. .. index:: pair: function; resetInstance .. _doxid-class_n_r_p_r_o_s_proxy_1a0dcc94aa91ef5949eb097e7abc85ba05: .. ref-code-block:: cpp :class: doxyrest-title-code-block static NRPROSProxy& resetInstance() Reset singleton instance.