rclpy.lifecycle.managed_entity module

class rclpy.lifecycle.managed_entity.ManagedEntity

Bases: object

on_activate(state: LifecycleState) rpyutils.import_c_library.TransitionCallbackReturnType

Handle activate transition request.

on_cleanup(state: LifecycleState) rpyutils.import_c_library.TransitionCallbackReturnType

Handle cleanup transition request.

on_configure(state: LifecycleState) rpyutils.import_c_library.TransitionCallbackReturnType

Handle configure transition request.

on_deactivate(state: LifecycleState) rpyutils.import_c_library.TransitionCallbackReturnType

Handle deactivate transition request.

on_error(state: LifecycleState) rpyutils.import_c_library.TransitionCallbackReturnType

Handle error transition request.

on_shutdown(state: LifecycleState) rpyutils.import_c_library.TransitionCallbackReturnType

Handle shutdown transition request.

class rclpy.lifecycle.managed_entity.SimpleManagedEntity

Bases: ManagedEntity

A simple managed entity that only sets a flag when activated/deactivated.

property is_activated: bool
on_activate(state: LifecycleState) rpyutils.import_c_library.TransitionCallbackReturnType

Handle activate transition request.

on_deactivate(state: LifecycleState) rpyutils.import_c_library.TransitionCallbackReturnType

Handle deactivate transition request.

static when_enabled(wrapped: None, *, when_not_enabled: Callable[[...], None] | None = None) Callable[[Callable[[...], None]], Callable[[...], None]]
static when_enabled(wrapped: Callable[[...], None], *, when_not_enabled: Callable[[...], None] | None = None) Callable[[...], None]