Context

class rclpy.context.Context

Encapsulates the lifecycle of init and shutdown.

Context objects should not be reused, and are finalized in their destructor.

Wraps the rcl_context_t type.

handle
ok()
shutdown()
try_shutdown()

Shutdown rclpy if not already shutdown.