Function rcl_lifecycle_get_transition_label_by_id

Function Documentation

const char *rcl_lifecycle_get_transition_label_by_id(const rcl_lifecycle_transition_map_t *transition_map, uint8_t transition_id)

Get a label by id.

A string label is returned based on the id. If the id is not set in the transition map then returns NULL.

Attribute

Adherence

Allocates Memory

No

Thread-Safe

No

Uses Atomics

No

Lock-Free

Yes

Parameters:
  • transition_map[in] pointer to the transition map

  • transition_id[in] id to be find in the transitions map

Returns:

a string pointer to the label exists in the transitino map or otherwise it return NULL