Function rcl_lifecycle_get_transition_by_label

Function Documentation

const rcl_lifecycle_transition_t *rcl_lifecycle_get_transition_by_label(const rcl_lifecycle_state_t *state, const char *label)

Get a state by id.

A pointer to the internally transition struct is returned based on the label. If the label is not set in the state then returns NULL.

Attribute

Adherence

Allocates Memory

No

Thread-Safe

No

Uses Atomics

No

Lock-Free

Yes

Parameters:
  • state[in] pointer to the state struct

  • label[in] label to be find in the valid transitions

Returns:

a pointer to the lifecycle transition if the label exists or otherwise it return NULL