.. index:: pair: class; gazebo::CameraDataPackController .. _doxid-classgazebo_1_1_camera_data_pack_controller: class gazebo::CameraDataPackController ====================================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class CameraDataPackController: public :ref:`JsonDataPackController` { public: // construction :target:`CameraDataPackController`( const std::string& devName, const rendering::CameraPtr& camera, const sensors::SensorPtr& parent ); // methods virtual void :ref:`handleDataPackData`(const :ref:`nlohmann::json`& data); virtual :ref:`nlohmann::json`* :ref:`getDataPackInformation`(); void :target:`updateCamData`( const unsigned char* image, unsigned int width, unsigned int height, unsigned int depth ); void :target:`resetTime`(); }; 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_camera_data_pack_controller: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; handleDataPackData .. _doxid-classgazebo_1_1_camera_data_pack_controller_1a6b8b24afc43f2cecd9ebeaa56bd6032c: .. 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_camera_data_pack_controller_1a6386a48c86c3ff24f198f1d9f4cc782c: .. 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