Function rmw_node_get_graph_guard_condition

Function Documentation

const rmw_guard_condition_t *rmw_node_get_graph_guard_condition(const rmw_node_t *node)

Return a guard condition which is triggered when the ROS graph changes.

The guard condition will be triggered anytime a change to the ROS graph occurs. A ROS graph change occurs whenever:

The guard condition is owned and internally held by the node. It will be invalidated if node is finalized using rmw_destroy_node(). It is undefined behavior to use an invalidated guard condition.

Attribute

Adherence

Allocates Memory

No

Thread-Safe

Yes

Uses Atomics

No

Lock-Free

Yes

Note

The state of the ROS graph, and any changes that may take place, are reported as seen by the associated node.

Parameters:

node[in] Node to retrieve the guard condition from.

Pre:

Given node must be a valid node handle, as returned by rmw_create_node().

Returns:

Guard condition if successful, or NULL if node is NULL, or an unspecified error occurs.