rclpy.signals module
- class rclpy.signals.SignalHandlerGuardCondition(context: Context | None = None)
Bases:
GuardCondition
Create a GuardCondition.
Warning
Users should not create a guard condition with this constructor, instead they should call
Node.create_guard_condition()
.- destroy() None
Destroy a container for a ROS guard condition.
Warning
Users should not destroy a guard condition with this method, instead they should call
Node.destroy_guard_condition()
.
- rclpy.signals.get_current_signal_handlers_options() rpyutils.import_c_library.SignalHandlerOptions
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) None
Install rclpy signal handlers.
- Parameters:
options – Indicate if to install sigint, sigterm, both or no signal handler.
- rclpy.signals.uninstall_signal_handlers() None
Uninstall the rclpy signal handlers.