nros C API
Lightweight ROS 2 client for embedded real-time systems
Loading...
Searching...
No Matches
init.h File Reference

Library initialisation and support context. More...

#include "nros/types.h"
Include dependency graph for init.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Detailed Description

Library initialisation and support context.

The support context (nros_support_t) is the entry point for all nros operations. It manages the middleware session (zenoh-pico) and must be initialised before any nodes, publishers, or subscriptions are created.

Typical usage:

nros_support_init(&support, NULL, 0);
// ... create nodes, publishers, etc.
nros_ret_t nros_support_fini(struct nros_support_t *support)
struct nros_support_t nros_support_get_zero_initialized(void)
nros_ret_t nros_support_init(struct nros_support_t *support, const char *locator, uint8_t domain_id)
Definition nros_generated.h:919