|
nros C API
Lightweight ROS 2 client for embedded real-time systems
|
Service server API. More...
#include "nros/types.h"

Go to the source code of this file.
Functions | |
| NROS_DEPRECATED_MSG ("nros_service_send_reply_raw() is deprecated; use " "nros_service_send_response_raw()") static inline nros_ret_t nros_service_send_reply_raw(struct nros_service_t *service | |
| NROS_DEPRECATED_MSG ("nros_service_send_response() is deprecated; use " "nros_service_send_response_raw()") static inline nros_ret_t nros_service_send_response(struct nros_service_t *service | |
| NROS_DEPRECATED_MSG ("nros_service_try_recv_request_raw() is deprecated; use " "nros_service_take_request_raw()") static inline int32_t nros_service_try_recv_request_raw(struct nros_service_t *service | |
Variables | |
| uint8_t * | buf |
| uint8_t size_t | buf_len |
| int64_t const uint8_t * | data |
| int64_t const uint8_t size_t | len |
| int64_t const uint8_t * | response_data |
| int64_t const uint8_t size_t | response_len |
| int64_t | sequence_number |
Service server API.
Create service servers with nros_service_init(). For executor-driven dispatch — the usual shape — register a nros_service_callback_t at init time and let the executor deliver requests and send responses for you.
For manual polling, create the server with nros_service_init_polling(), take requests with nros_service_take_request_raw(), and send responses with nros_service_send_response_raw().
(nros_service_take_request() is the unimplemented twin of nros_service_take_request_raw() and returns NROS_RET_NOT_INIT; which of the two spellings survives is the c:take_request question in the phase-379 parity ledger.)
| NROS_DEPRECATED_MSG | ( | "nros_service_send_reply_raw() is deprecated; use " "nros_service_send_response_raw()" | ) |
| NROS_DEPRECATED_MSG | ( | "nros_service_send_response() is deprecated; use " "nros_service_send_response_raw()" | ) |
| NROS_DEPRECATED_MSG | ( | "nros_service_try_recv_request_raw() is deprecated; use " "nros_service_take_request_raw()" | ) |
| uint8_t* buf |
| uint8_t size_t buf_len |
| const char const char *const * data |
| const char const char *const size_t len |
| int64_t const uint8_t* response_data |
| int64_t const uint8_t size_t response_len |
| int64_t sequence_number |