nros C API
Lightweight ROS 2 client for embedded real-time systems
Loading...
Searching...
No Matches
client.h
Go to the documentation of this file.
1
35#ifndef NROS_CLIENT_H
36#define NROS_CLIENT_H
37
38/* Type and function definitions live in <rclc/detail/nros_generated.h>.
39 * This per-module header is kept as a thin shim so existing code that
40 * does `#include <rclc/client.h>` continues to compile. */
41#include "rclc/types.h"
42/* phase-417 W5.d — `rclc_qos_services_best_effort()`, the profile rclc's
43 * service AND client `_best_effort` presets share. One definition, in the
44 * service header both halves of the request/response pair already belong to
45 * (`@ingroup grp_service` above). */
46#include "rclc/service.h"
47
65 const struct rcl_node_t* node,
66 const struct rclc_service_type_t* type_info,
67 const char* service_name) {
69 return rclc_client_init_with_qos(client, node, type_info, service_name, &qos);
70}
71
72#endif /* NROS_CLIENT_H */
73
74/* Every upstream-path header carries the whole C API, as `<rclc/rclc.h>` does
75 * (phase-492): a ported file that includes only `<rclc/client.h>` still finds
76 * `RCLC_CHECK_RET`, `RCLC_LOG_*` and the rcl spellings. Outside the guard, so
77 * this header's own declarations are complete before the umbrella reads them. */
78#include "rclc/rclc.h"
static rcl_ret_t rclc_client_init_best_effort(struct rcl_client_t *client, const struct rcl_node_t *node, const struct rclc_service_type_t *type_info, const char *service_name)
rclc's best-effort preset constructor for a service client.
Definition client.h:64
rcl_ret_t rclc_client_init_with_qos(struct rcl_client_t *client, const struct rcl_node_t *node, const struct rclc_service_type_t *type_info, const char *service_name, const struct rclc_qos_t *qos)
int rcl_ret_t
Definition nros_generated.h:903
Umbrella header for the nano-ros C API, at upstream's path.
Service server API.
static struct rclc_qos_t rclc_qos_services_best_effort(void)
The QoS rclc's service/client _best_effort presets actually use.
Definition service.h:62
Definition nros_generated.h:2505
Definition nros_generated.h:1454
Definition nros_generated.h:1732
Definition nros_generated.h:2766
Shared types and constants for the nros C API.