Function rclc_executor_set_trigger

Function Documentation

rcl_ret_t rclc_executor_set_trigger(rclc_executor_t *executor, rclc_executor_trigger_t trigger_function, void *trigger_object)

Set the trigger condition.

Attribute

Adherence

Allocates Memory

No

Thread-Safe

No

Uses Atomics

No

Lock-Free

Yes

Parameters:
  • executor[inout] pointer to initialized executor

  • trigger_function[in] function of the trigger condition

  • trigger_object[in] pointer to a rcl-handle used in the trigger

Returns:

RCL_RET_OK if spin operation was successful

Returns:

RCL_RET_INVALID_ARGUMENT if executor is a null pointer

Returns:

RCL_RET_ERROR if any other error occured