nros C API
Lightweight ROS 2 client for embedded real-time systems
Loading...
Searching...
No Matches
publisher.h
Go to the documentation of this file.
1
10#ifndef NROS_PUBLISHER_H
11#define NROS_PUBLISHER_H
12
13/* Type and function definitions live in <rclc/detail/nros_generated.h>.
14 * This per-module header is kept as a thin shim so existing code that
15 * does `#include <rclc/publisher.h>` continues to compile. */
16#include "rclc/types.h"
17
55 const struct rcl_node_t* node,
56 const struct rclc_message_type_t* type_info,
57 const char* topic_name) {
58 return rclc_publisher_init_with_qos(publisher, node, type_info, topic_name,
60}
61
62#endif /* NROS_PUBLISHER_H */
63
64/* Every upstream-path header carries the whole C API, as `<rclc/rclc.h>` does
65 * (phase-492): a ported file that includes only `<rclc/publisher.h>` still finds
66 * `RCLC_CHECK_RET`, `RCLC_LOG_*` and the rcl spellings. Outside the guard, so
67 * this header's own declarations are complete before the umbrella reads them. */
68#include "rclc/rclc.h"
rcl_ret_t rclc_publisher_init_with_qos(struct rcl_publisher_t *publisher, const struct rcl_node_t *node, const struct rclc_message_type_t *type_info, const char *topic_name, const struct rclc_qos_t *qos)
const struct rclc_qos_t RCLC_QOS_SENSOR_DATA
int rcl_ret_t
Definition nros_generated.h:903
static rcl_ret_t rclc_publisher_init_best_effort(struct rcl_publisher_t *publisher, const struct rcl_node_t *node, const struct rclc_message_type_t *type_info, const char *topic_name)
rclc's best-effort preset constructor for a publisher.
Definition publisher.h:54
Umbrella header for the nano-ros C API, at upstream's path.
Definition nros_generated.h:1454
Definition nros_generated.h:2076
Definition nros_generated.h:1927
Shared types and constants for the nros C API.