rclpy.signals module

class rclpy.signals.SignalHandlerGuardCondition(context=None)

Bases: GuardCondition

destroy()
rclpy.signals.get_current_signal_handlers_options()

Get current signal handler options.

Returns:

rclpy.signals.SignalHandlerOptions instance.

rclpy.signals.install_signal_handlers(options: rpyutils.import_c_library.SignalHandlerOptions = rpyutils.import_c_library.SignalHandlerOptions.ALL)

Install rclpy signal handlers.

Parameters:

options – Indicate if to install sigint, sigterm, both or no signal handler.

rclpy.signals.uninstall_signal_handlers()

Uninstall the rclpy signal handlers.