ark::python::PythonStage

Defined in header “ark/python/stages/python_stage.hh”.


A stage that supports loading a python-based stage and executing it, as if it a standard C++ stage.

Methods

  • PythonStage(std::string name)
    Constructor.

  • ~PythonStage()
    Destructor.

  • void initialize(pipeline::StageInterface & interface)
    Initializes the stage, preparing publishers/subscribers.

  • void start()
    Starts the background thread, which runs the message pumps for standard input/output and other bookkeeping.

  • void interrupt()
    Sends a signal to the Python process to notify of an interrupt.

  • void shutdown()
    Sends a signal to the Python process to shutdown.

  • void finalize()
    Stops the background thread and deinitializes the Python process.