.. index:: pair: class; GazeboEngineGrpcNRPClient .. _doxid-class_gazebo_engine_grpc_n_r_p_client: class GazeboEngineGrpcNRPClient =============================== .. toctree:: :hidden: Overview ~~~~~~~~ NRP - Gazebo Communicator on the NRP side. Converts :ref:`DataPackInterface ` classes from/to JSON objects. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class GazeboEngineGrpcNRPClient: public :ref:`EngineGrpcClient` { public: // construction :target:`GazeboEngineGrpcNRPClient`( :ref:`nlohmann::json`& config, :ref:`ProcessLauncherInterface::unique_ptr`&& launcher ); // methods virtual void :ref:`initialize`(); virtual void :ref:`reset`(); virtual void :ref:`shutdown`(); virtual const std::vector :ref:`engineProcStartParams`() const; }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // typedefs typedef std::shared_ptr :ref:`shared_ptr`; typedef std::shared_ptr :ref:`const_shared_ptr`; typedef std::unique_ptr :ref:`unique_ptr`; typedef std::unique_ptr :ref:`const_unique_ptr`; typedef ENGINE :ref:`engine_t`; // classes template class :ref:`EngineLauncher`; // methods virtual const std::string :ref:`engineName`() const = 0; virtual const :ref:`nlohmann::json`& :ref:`engineConfig`() const = 0; virtual :ref:`nlohmann::json`& :ref:`engineConfig`() = 0; virtual const std::vector :ref:`engineProcStartParams`() const = 0; virtual pid_t :ref:`launchEngine`(); virtual void :ref:`initialize`() = 0; virtual void :ref:`reset`() = 0; virtual void :ref:`shutdown`() = 0; virtual :ref:`SimulationTime` :ref:`getEngineTimestep`() const = 0; virtual :ref:`SimulationTime` :ref:`getEngineTime`() const = 0; virtual const std::string :ref:`engineSchema`() const = 0; virtual void :ref:`runLoopStepAsync`(:ref:`SimulationTime` timeStep) = 0; virtual void :ref:`runLoopStepAsyncGet`(:ref:`SimulationTime` timeOut) = 0; virtual void :ref:`sendDataPacksToEngine`(const :ref:`datapacks_set_t`& dataPacks) = 0; virtual :ref:`datapacks_vector_t` :ref:`getDataPacksFromEngine`(const :ref:`datapack_identifiers_set_t`& datapackIdentifiers) = 0; virtual const std::string :ref:`engineName`() const; virtual :ref:`SimulationTime` :ref:`getEngineTimestep`() const; virtual const :ref:`nlohmann::json`& :ref:`engineConfig`() const; virtual :ref:`nlohmann::json`& :ref:`engineConfig`(); virtual const std::string :ref:`engineSchema`() const; virtual :ref:`SimulationTime` :ref:`getEngineTime`() const; virtual void :ref:`runLoopStepAsync`(:ref:`SimulationTime` timeStep); virtual void :ref:`runLoopStepAsyncGet`(:ref:`SimulationTime` timeOut); virtual pid_t :ref:`launchEngine`(); void :ref:`connectToServer`(); void :ref:`sendInitializeCommand`(const :ref:`nlohmann::json`& data); void :ref:`sendResetCommand`(); void :ref:`sendShutdownCommand`(const :ref:`nlohmann::json`& data); virtual :ref:`SimulationTime` :ref:`runLoopStepCallback`(const :ref:`SimulationTime` timeStep); virtual :ref:`datapacks_vector_t` :ref:`getDataPacksFromEngine`(const :ref:`datapack_identifiers_set_t`& datapackIdentifiers); virtual void :ref:`sendDataPacksToEngine`(const :ref:`datapacks_set_t`& dataPacks); virtual const std::vector :ref:`engineProcStartParams`() const; std::string :ref:`tryBind`(const std::string& address); void :ref:`validateServerAddress`(); const std::string :ref:`serverAddress`() const; .. _details-class_gazebo_engine_grpc_n_r_p_client: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ NRP - Gazebo Communicator on the NRP side. Converts :ref:`DataPackInterface ` classes from/to JSON objects. Methods ------- .. index:: pair: function; initialize .. _doxid-class_gazebo_engine_grpc_n_r_p_client_1a3314685b24d101b0142e43958dc6be77: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void initialize() Initialize engine. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - Throws - on error .. rubric:: Returns: Returns SUCCESS if no error was encountered .. index:: pair: function; reset .. _doxid-class_gazebo_engine_grpc_n_r_p_client_1afdc7d3b1a233528efdbe24b26498c245: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void reset() Reset engine. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - Throws - on error .. rubric:: Returns: Returns SUCCESS if no error was encountered .. index:: pair: function; shutdown .. _doxid-class_gazebo_engine_grpc_n_r_p_client_1a4eb33c1629cdb965a97f2b48e4c281de: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void shutdown() Shutdown engine. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - Throws - on error .. rubric:: Returns: Return SUCCESS if no error was encountered .. index:: pair: function; engineProcStartParams .. _doxid-class_gazebo_engine_grpc_n_r_p_client_1a54671280b7e86dbaed213058d27bfbce: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual const std::vector engineProcStartParams() const Get all Engine Process Startup parameters.