.. index:: pair: class; gazebo::LinkDataPackController .. _doxid-classgazebo_1_1_link_data_pack_controller: class gazebo::LinkDataPackController ==================================== .. toctree:: :hidden: Overview ~~~~~~~~ Interface for links. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class LinkDataPackController: public :ref:`JsonDataPackController` { public: // construction :target:`LinkDataPackController`( const std::string& linkName, const physics::LinkPtr& link ); // methods virtual void :ref:`handleDataPackData`(const :ref:`nlohmann::json`& data); virtual :ref:`nlohmann::json`* :ref:`getDataPackInformation`(); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // methods virtual DATA_TYPE* :ref:`getDataPackInformation`() = 0; virtual void :ref:`handleDataPackData`(const DATA_TYPE& data) = 0; const :ref:`nlohmann::json`& :ref:`getEmptyDataPack`() const; .. _details-classgazebo_1_1_link_data_pack_controller: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Interface for links. Methods ------- .. index:: pair: function; handleDataPackData .. _doxid-classgazebo_1_1_link_data_pack_controller_1abec92a4c34dd72c099fd1a030ec55736: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void handleDataPackData(const :ref:`nlohmann::json`& data) Handle received datapack data. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - data - Data to be processed .. index:: pair: function; getDataPackInformation .. _doxid-classgazebo_1_1_link_data_pack_controller_1a059ef76c59ef22a3ba77363f263b5021: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`nlohmann::json`* getDataPackInformation() Get datapack information to be forwarded to the NRP. .. rubric:: Returns: Returns a DATA_TYPE pointer containing requested data