nros rmw-cffi
C vtable for plugging a third-party RMW backend into nros
Loading...
Searching...
No Matches
rmw_entity.h
Go to the documentation of this file.
1#ifndef NROS_RMW_ENTITY_H
2#define NROS_RMW_ENTITY_H
3
4#include <stdbool.h>
5#include <stdint.h>
6#include <stddef.h>
7#include "nros/rmw_ret.h" /* the two pure functions below return rmw_ret_t */
8
38
39/* ------------------------------------------------------------------ */
40/* QoS profile — full DDS shape (matches `rmw_qos_profile_t`) */
41/* ------------------------------------------------------------------ */
42
43/* Policy values carry UPSTREAM's numbering.
44 *
45 * They did not until 2026-08-24, and the disagreement was not academic. Ours
46 * were a dense 0/1 pair per policy, which put a DIFFERENT meaning on the same
47 * integer:
48 *
49 * value | upstream | ours (before)
50 * ------|-----------------------------------|-------------------
51 * 0 | *_SYSTEM_DEFAULT | BEST_EFFORT / VOLATILE / KEEP_LAST
52 * 1 | RELIABLE / TRANSIENT_LOCAL / KEEP_LAST | RELIABLE / TRANSIENT_LOCAL / KEEP_ALL
53 *
54 * so `HISTORY == 1` meant KEEP_LAST to upstream and KEEP_ALL to us — the two
55 * opposite answers to the question. Liveliness was worse: MANUAL_BY_NODE and
56 * MANUAL_BY_TOPIC were SWAPPED (2 and 3).
57 *
58 * These values cross the ABI. `rmw_qos_profile_check_compatible` is a name
59 * upstream owns and we export, and the cyclonedds backend translates this
60 * struct into real DDS QoS that a ROS peer matches against. A caller reasoning
61 * in upstream's vocabulary got silently wrong policies. Same argument as W3.d
62 * step B for the return codes: where a value crosses the boundary, upstream's
63 * numbering is the only one that cannot be wrong.
64 *
65 * The names keep the `NROS_RMW_` prefix — as the return codes do — because the
66 * set is ours to extend, not upstream's to define.
67 */
68
70#define NROS_RMW_RELIABILITY_SYSTEM_DEFAULT 0
71#define NROS_RMW_RELIABILITY_RELIABLE 1
72#define NROS_RMW_RELIABILITY_BEST_EFFORT 2
75#define NROS_RMW_RELIABILITY_UNKNOWN 3
81#define NROS_RMW_RELIABILITY_BEST_AVAILABLE 4
82
84#define NROS_RMW_DURABILITY_SYSTEM_DEFAULT 0
85#define NROS_RMW_DURABILITY_TRANSIENT_LOCAL 1
86#define NROS_RMW_DURABILITY_VOLATILE 2
87#define NROS_RMW_DURABILITY_UNKNOWN 3
90#define NROS_RMW_DURABILITY_BEST_AVAILABLE 4
91
93#define NROS_RMW_HISTORY_SYSTEM_DEFAULT 0
94#define NROS_RMW_HISTORY_KEEP_LAST 1
95#define NROS_RMW_HISTORY_KEEP_ALL 2
96#define NROS_RMW_HISTORY_UNKNOWN 3
97
109
110#ifndef NROS_RMW_TIME_POINT_VALUE_T_DEFINED
111#define NROS_RMW_TIME_POINT_VALUE_T_DEFINED
114#endif
115
118#define RMW_MESSAGE_INFO_SEQUENCE_NUMBER_UNSUPPORTED UINT64_MAX
119
121#define RMW_GID_STORAGE_SIZE 24u
122
149typedef struct rmw_byte_span_t {
150 const uint8_t *data;
151 size_t len;
153
171typedef struct rmw_mut_byte_span_t {
172 uint8_t *data;
174 size_t capacity;
183 size_t len;
185
199#define NROS_RMW_TAKE_LEN_UNKNOWN 0
200
219#define NROS_RMW_SEQUENCE_ID_UNKNOWN (-9223372036854775807LL - 1)
220
256
269
270/* `<rclc/detail/message_info.h>` declares the same struct under the same
271 * guard, so a translation unit that reaches both sees one definition. */
272#ifndef NROS_RMW_GID_T_DEFINED
273#define NROS_RMW_GID_T_DEFINED
281#endif
282
283
284/* Shared with `<rclc/detail/message_info.h>` under one guard, as `rmw_gid_t`. */
285#ifndef NROS_RMW_MESSAGE_INFO_T_DEFINED
286#define NROS_RMW_MESSAGE_INFO_T_DEFINED
323#endif
324
329#define RMW_REQUEST_ID_WRITER_GUID_SIZE 16u
330
331/* The API headers (`<rclc/detail/request_id.h>`, rclcpp's
332 * `service.hpp`) declare the SAME struct for a service callback, under the same
333 * guard, so a translation unit that reaches two of them sees one definition. */
334#ifndef NROS_RMW_REQUEST_ID_T_DEFINED
335#define NROS_RMW_REQUEST_ID_T_DEFINED
343typedef struct rmw_request_id_t {
345 int8_t writer_guid[16];
349#endif
350
371
399
440typedef struct rmw_qos_profile_t {
441 /* ---- 8-byte core, layout-equivalent to the original subset ---- */
442 uint8_t reliability;
443 uint8_t durability;
444 uint8_t history;
446 uint16_t depth;
447 uint16_t _reserved0;
448
449 /* ---- 16-byte extension ---- */
453 uint32_t deadline_ms;
454
457 uint32_t lifespan_ms;
458
462
470 uint8_t _reserved1[3];
472
473
474/* ====================================================================
475 * The two PURE functions.
476 *
477 * Plain exported C functions, deliberately NOT vtable slots, and the reason is
478 * the campaign's own rule read the other way round: a vtable slot is the
479 * mechanism for letting backends DIFFER, and these two must not. Both compute
480 * over types this header defines; if two backends disagreed about whether a QoS
481 * pair is compatible, or whether two gids name the same entity, that is a
482 * DEFECT with as many places to fix it as there are backends.
483 *
484 * Three supporting reasons:
485 *
486 * - The useful call sites have no vtable to dispatch through. QoS
487 * compatibility is wanted at `create_*` time (that is what produces
488 * `NROS_RMW_RET_INCOMPATIBLE_QOS`), in codegen'd validation, and in host
489 * tooling with no session. Neither function takes an entity, so a slot would
490 * force a caller to invent a session — and neither could be called BEFORE a
491 * backend registers, which is exactly when create-time validation runs.
492 *
493 * - Upstream is not evidence for a slot. `rmw_qos_profile_check_compatible`
494 * lives in `rmw/qos_profiles.h` and is defined by librmw ITSELF; it appears
495 * in the implementation contract only because each `librmw_*_cpp.so`
496 * statically links librmw and re-exports it. That is plugin packaging, not
497 * semantics, and we load no plugin.
498 *
499 * - Precedent: `nros_rmw_cffi_register_named` and friends are declared here
500 * and defined once in Rust with `#[no_mangle]`, so `nros-rmw-abi` stays a
501 * header-only INTERFACE target — no new compiled TU, no new link edge.
502 * (`static inline` was the alternative and is worse: bindgen does not emit
503 * it, so the C-headers-as-SSoT rule would force a SECOND Rust implementation, which is the
504 * first reason again.)
505 * ==================================================================== */
506
528
543
553 rmw_qos_profile_t offered, rmw_qos_profile_t requested,
554 rmw_qos_compatibility_type_t *compatibility, uint32_t *clash_mask);
555
570 rmw_qos_profile_t publisher_profile, rmw_qos_profile_t subscription_profile,
571 rmw_qos_compatibility_type_t *compatibility, char *reason, size_t reason_size);
572
583 bool *result);
584
606
617
640 /* 24 bytes */
641
654
666
669#define RMW_INET_ADDRSTRLEN 48
670
684
691typedef bool (*rmw_network_flow_endpoint_visit_fn)(void *ctx,
692 const rmw_network_flow_endpoint_t *endpoint);
693
701typedef void (*rmw_content_filter_visit_fn)(void *ctx,
702 const char *expression, const char *const *parameters, size_t parameter_count);
703
707#define NROS_RMW_DURATION_INFINITE_MS UINT32_MAX
708
716#define NROS_RMW_DURATION_BEST_AVAILABLE_MS (UINT32_MAX - 1u)
717
718/* ------------------------------------------------------------------ */
719/* Entity options — transport hints */
720/* ------------------------------------------------------------------ */
721
768 const char *key;
769 const char *value;
771
780#define RMW_SESSION_MAX_PROPERTIES 16
781
808
817
892
893/* ---- Standard QoS profile constants ---- */
894/*
895 * Compound-literal macros rather than `static const` objects, so a profile is
896 * usable in every TU that includes this header with no storage and no
897 * initialisation order.
898 *
899 * **ONE STATEMENT PER PROFILE.** Every profile below is a
900 * single line through `NROS_RMW_QOS_PROFILE_FROM_POLICIES`, which is the ONLY
901 * place the fields that never vary between profiles — `_reserved0`, the three
902 * durations, `avoid_ros_namespace_conventions`, `_reserved1` — are written.
903 * They used to be written out per profile: 26 constants in one file held in
904 * agreement by eye, and the four profiles carrying a concrete liveliness had
905 * all drifted the same way while their doc comments asserted the drifted value
906 * was upstream's.
907 *
908 * **The values are UPSTREAM's, and this file is a TRANSCRIPTION of them.** An
909 * embedded image cannot include `rmw/qos_profiles.h` and an offline build has
910 * no ROS install to read, so the numbers have to live here. That makes them
911 * exactly the kind of copy that drifts, so they are not maintained by hand
912 * alone: `scripts/check-qos-profile-ssot.py` binds every profile below to the
913 * Rust SSoT (`nros_rmw::QoSProfile`'s `QOS_PROFILE_*` constants) and, when a
914 * ROS install is resolvable, re-derives both against
915 * `<prefix>/include/rmw/rmw/qos_profiles.h`. Edit a value here without the
916 * gate agreeing and the gate is what tells you.
917 *
918 * That named `scripts/check-qos-profile-table.py` from 2026-09-05 until a later
919 * fix, and NO SUCH SCRIPT EXISTED for any of it. Two gates were written for the profile table
920 * and the duplicate was deleted — correctly, one parser of one table — but this
921 * prose kept the deleted name, so the transcription claiming loudest to be
922 * checked was the one checked by nothing. W1 wrote the coverage the sentence
923 * had been describing, into the gate that survived.
924 */
925
936#define NROS_RMW_QOS_PROFILE_FROM_POLICIES(rel, dur, hist, dep, live) \
937 ((rmw_qos_profile_t){ \
938 .reliability = NROS_RMW_RELIABILITY_##rel, \
939 .durability = NROS_RMW_DURABILITY_##dur, \
940 .history = NROS_RMW_HISTORY_##hist, \
941 .liveliness_kind = NROS_RMW_LIVELINESS_##live, \
942 .depth = (dep), \
943 ._reserved0 = 0, \
944 .deadline_ms = 0, \
945 .lifespan_ms = 0, \
946 .liveliness_lease_ms = 0, \
947 .avoid_ros_namespace_conventions = 0, \
948 ._reserved1 = {0, 0, 0}, \
949 })
950
951/* LIVELINESS IS THE SENTINEL IN EVERY CONCRETE PROFILE.
952 *
953 * `DEFAULT`, `SENSOR_DATA`, `SERVICES_DEFAULT` and `PARAMETERS` carried
954 * `NROS_RMW_LIVELINESS_AUTOMATIC` (1) until 2026-09-05, under doc comments
955 * reading "`rmw_qos_profile_default`-equivalent … automatic liveliness".
956 * Upstream's own initialisers say `RMW_QOS_POLICY_LIVELINESS_SYSTEM_DEFAULT`
957 * for all seven profiles, `rmw_qos_profile_unknown` excepted — there is no
958 * upstream profile that asks for AUTOMATIC. This is the F2 class: 0829 fixed
959 * `SYSTEM_DEFAULT`'s liveliness because that was the profile being looked at,
960 * and the four siblings carrying the same wrong value were not swept.
961 *
962 * THIS CHANGES WHAT A BACKEND COMPILES AGAINST, so what it does to the wire is
963 * stated rather than assumed. The two in-tree consumers of a changed macro are
964 * `nros-rmw-cyclonedds`'s `create_service` / `create_client`
965 * (`NROS_RMW_QOS_PROFILE_SERVICES_DEFAULT` when the caller passes NULL) and
966 * `nros-rmw-xrce`'s (same); the cyclone unit tests use `_DEFAULT`.
967 * - cyclonedds: `make_dds_qos` calls `dds_qset_liveliness` only when the kind
968 * is NOT the sentinel (`qos.cpp:99`), so AUTOMATIC(1) set
969 * `DDS_LIVELINESS_AUTOMATIC` + `DDS_INFINITY` explicitly and the sentinel
970 * omits the call — leaving Cyclone's own default, which the DDS spec fixes
971 * at AUTOMATIC with an infinite lease. Same offered QoS on the wire.
972 * - xrce: drops liveliness entirely (it lowers no liveliness field), so the
973 * value is unobservable there either way.
974 * - zenoh: reads no QoS field at all.
975 * A backend that starts honouring liveliness later sees the correct
976 * "middleware's choice" here rather than an unrequested AUTOMATIC.
977 */
978
980#define NROS_RMW_QOS_PROFILE_DEFAULT \
981 NROS_RMW_QOS_PROFILE_FROM_POLICIES(RELIABLE, VOLATILE, KEEP_LAST, 10, SYSTEM_DEFAULT)
982
984#define NROS_RMW_QOS_PROFILE_SENSOR_DATA \
985 NROS_RMW_QOS_PROFILE_FROM_POLICIES(BEST_EFFORT, VOLATILE, KEEP_LAST, 5, SYSTEM_DEFAULT)
986
994#define NROS_RMW_QOS_PROFILE_SERVICES_DEFAULT \
995 NROS_RMW_QOS_PROFILE_FROM_POLICIES(RELIABLE, VOLATILE, KEEP_LAST, 10, SYSTEM_DEFAULT)
996
998#define NROS_RMW_QOS_PROFILE_PARAMETERS \
999 NROS_RMW_QOS_PROFILE_FROM_POLICIES(RELIABLE, VOLATILE, KEEP_LAST, 1000, SYSTEM_DEFAULT)
1000
1008#define NROS_RMW_QOS_PROFILE_PARAMETER_EVENTS \
1009 NROS_RMW_QOS_PROFILE_FROM_POLICIES(RELIABLE, VOLATILE, KEEP_LAST, 1000, SYSTEM_DEFAULT)
1010
1036#define NROS_RMW_QOS_PROFILE_SYSTEM_DEFAULT \
1037 NROS_RMW_QOS_PROFILE_FROM_POLICIES(SYSTEM_DEFAULT, SYSTEM_DEFAULT, SYSTEM_DEFAULT, 0, \
1038 SYSTEM_DEFAULT)
1039
1052#define NROS_RMW_QOS_PROFILE_UNKNOWN \
1053 NROS_RMW_QOS_PROFILE_FROM_POLICIES(UNKNOWN, UNKNOWN, UNKNOWN, 0, UNKNOWN)
1054
1055/* ------------------------------------------------------------------ */
1056/* Which QoS policies a backend honours */
1057/* ------------------------------------------------------------------ */
1058
1079#define NROS_RMW_QOS_POLICY_RELIABILITY (1u << 0)
1080#define NROS_RMW_QOS_POLICY_DURABILITY_VOLATILE (1u << 1)
1081#define NROS_RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL (1u << 2)
1082#define NROS_RMW_QOS_POLICY_HISTORY (1u << 3)
1083#define NROS_RMW_QOS_POLICY_DEPTH (1u << 4)
1084#define NROS_RMW_QOS_POLICY_DEADLINE (1u << 5)
1085#define NROS_RMW_QOS_POLICY_LIFESPAN (1u << 6)
1086#define NROS_RMW_QOS_POLICY_LIVELINESS_AUTOMATIC (1u << 7)
1087#define NROS_RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_TOPIC (1u << 8)
1088#define NROS_RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_NODE (1u << 9)
1089#define NROS_RMW_QOS_POLICY_LIVELINESS_LEASE (1u << 10)
1090#define NROS_RMW_QOS_POLICY_AVOID_ROS_NAMESPACE_CONVENTIONS (1u << 11)
1091
1096#define NROS_RMW_QOS_POLICY_NONE 0u
1097
1104#define NROS_RMW_QOS_POLICY_CORE \
1105 (NROS_RMW_QOS_POLICY_RELIABILITY | NROS_RMW_QOS_POLICY_DURABILITY_VOLATILE | \
1106 NROS_RMW_QOS_POLICY_HISTORY | NROS_RMW_QOS_POLICY_DEPTH)
1107
1108/* ------------------------------------------------------------------ */
1109/* Entity structs */
1110/* ------------------------------------------------------------------ */
1111
1124typedef struct rmw_session_t {
1126 const char *node_name;
1128 const char *namespace_;
1131 uint8_t _reserved[8];
1135
1175typedef struct rmw_node_t {
1177 const char *name;
1179 const char *namespace_;
1186 uint8_t _reserved[8];
1189} rmw_node_t;
1190
1236
1257
1271typedef struct rmw_service_t {
1273 const char *service_name;
1276 const char *type_name;
1278 uint8_t _reserved[8];
1282
1286typedef struct rmw_client_t {
1288 const char *service_name;
1290 const char *type_name;
1292 uint8_t _reserved[8];
1295} rmw_client_t;
1296
1297#endif /* NROS_RMW_ENTITY_H */
nros_rmw_qos_clash_t
Definition rmw_entity.h:531
@ NROS_RMW_QOS_CLASH_DEADLINE
Definition rmw_entity.h:535
@ NROS_RMW_QOS_CLASH_LIVELINESS_KIND
Definition rmw_entity.h:536
@ NROS_RMW_QOS_CLASH_RELIABILITY
Definition rmw_entity.h:533
@ NROS_RMW_QOS_CLASH_DURABILITY
Definition rmw_entity.h:534
@ NROS_RMW_QOS_CLASH_NONE
Definition rmw_entity.h:532
@ NROS_RMW_QOS_CLASH_LIVELINESS_LEASE
Definition rmw_entity.h:537
@ NROS_RMW_QOS_CLASH_FORCE_INT_WIDTH_
Definition rmw_entity.h:540
rmw_ret_t rmw_compare_gids_equal(const rmw_gid_t *gid1, const rmw_gid_t *gid2, bool *result)
rmw_liveliness_kind_t
Definition rmw_entity.h:378
@ NROS_RMW_LIVELINESS_BEST_AVAILABLE
Definition rmw_entity.h:393
@ NROS_RMW_LIVELINESS_FORCE_INT_WIDTH_
Definition rmw_entity.h:396
@ NROS_RMW_LIVELINESS_MANUAL_BY_TOPIC
Definition rmw_entity.h:388
@ NROS_RMW_LIVELINESS_UNKNOWN
Definition rmw_entity.h:390
@ NROS_RMW_LIVELINESS_SYSTEM_DEFAULT
Definition rmw_entity.h:382
@ NROS_RMW_LIVELINESS_MANUAL_BY_NODE
Definition rmw_entity.h:386
@ NROS_RMW_LIVELINESS_AUTOMATIC
Definition rmw_entity.h:384
rmw_transport_protocol_t
Definition rmw_entity.h:644
@ RMW_TRANSPORT_PROTOCOL_UNKNOWN
Definition rmw_entity.h:645
@ RMW_TRANSPORT_PROTOCOL_COUNT
Definition rmw_entity.h:648
@ RMW_TRANSPORT_PROTOCOL_TCP
Definition rmw_entity.h:647
@ RMW_TRANSPORT_PROTOCOL_UDP
Definition rmw_entity.h:646
@ RMW_TRANSPORT_PROTOCOL_FORCE_INT_WIDTH_
Definition rmw_entity.h:651
rmw_endpoint_type_t
Definition rmw_entity.h:608
@ RMW_ENDPOINT_SUBSCRIPTION
Definition rmw_entity.h:611
@ RMW_ENDPOINT_FORCE_INT_WIDTH_
Definition rmw_entity.h:614
@ RMW_ENDPOINT_INVALID
Definition rmw_entity.h:609
@ RMW_ENDPOINT_PUBLISHER
Definition rmw_entity.h:610
int64_t rmw_time_point_value_t
Definition rmw_entity.h:113
void(* rmw_content_filter_visit_fn)(void *ctx, const char *expression, const char *const *parameters, size_t parameter_count)
Definition rmw_entity.h:701
rmw_log_severity_t
Definition rmw_entity.h:594
@ RMW_LOG_SEVERITY_WARN
Definition rmw_entity.h:598
@ RMW_LOG_SEVERITY_ERROR
Definition rmw_entity.h:599
@ RMW_LOG_SEVERITY_INFO
Definition rmw_entity.h:597
@ RMW_LOG_SEVERITY_FATAL
Definition rmw_entity.h:600
@ RMW_LOG_SEVERITY_DEBUG
Definition rmw_entity.h:596
@ RMW_LOG_SEVERITY_UNSET
Definition rmw_entity.h:595
@ RMW_LOG_SEVERITY_FORCE_INT_WIDTH_
Definition rmw_entity.h:603
rmw_feature_t
Definition rmw_entity.h:101
@ RMW_FEATURE_MESSAGE_INFO_RECEPTION_SEQUENCE_NUMBER
Definition rmw_entity.h:103
@ RMW_FEATURE_MESSAGE_INFO_PUBLICATION_SEQUENCE_NUMBER
Definition rmw_entity.h:102
@ RMW_FEATURE_FORCE_INT_WIDTH_
Definition rmw_entity.h:106
#define RMW_GID_STORAGE_SIZE
Definition rmw_entity.h:121
rmw_ret_t nros_rmw_qos_incompatibility_mask(rmw_qos_profile_t offered, rmw_qos_profile_t requested, rmw_qos_compatibility_type_t *compatibility, uint32_t *clash_mask)
rmw_ret_t rmw_qos_profile_check_compatible(rmw_qos_profile_t publisher_profile, rmw_qos_profile_t subscription_profile, rmw_qos_compatibility_type_t *compatibility, char *reason, size_t reason_size)
#define RMW_INET_ADDRSTRLEN
Definition rmw_entity.h:669
rmw_internet_protocol_t
Definition rmw_entity.h:656
@ RMW_INTERNET_PROTOCOL_COUNT
Definition rmw_entity.h:660
@ RMW_INTERNET_PROTOCOL_UNKNOWN
Definition rmw_entity.h:657
@ RMW_INTERNET_PROTOCOL_IPV6
Definition rmw_entity.h:659
@ RMW_INTERNET_PROTOCOL_IPV4
Definition rmw_entity.h:658
@ RMW_INTERNET_PROTOCOL_FORCE_INT_WIDTH_
Definition rmw_entity.h:663
rmw_qos_compatibility_type_t
Definition rmw_entity.h:519
@ RMW_QOS_COMPATIBILITY_ERROR
Definition rmw_entity.h:522
@ RMW_QOS_COMPATIBILITY_FORCE_INT_WIDTH_
Definition rmw_entity.h:525
@ RMW_QOS_COMPATIBILITY_WARNING
Definition rmw_entity.h:521
@ RMW_QOS_COMPATIBILITY_OK
Definition rmw_entity.h:520
bool(* rmw_network_flow_endpoint_visit_fn)(void *ctx, const rmw_network_flow_endpoint_t *endpoint)
Definition rmw_entity.h:691
Return-code constants for the nros RMW C vtable.
int32_t rmw_ret_t
Definition rmw_ret.h:72
#define NROS_RMW_ASSERT_ENUM_INT_WIDTH(T)
Definition rmw_ret.h:226
Definition rmw_entity.h:149
size_t len
Definition rmw_entity.h:151
const uint8_t * data
Definition rmw_entity.h:150
Definition rmw_entity.h:1286
uint8_t _reserved[8]
Definition rmw_entity.h:1292
void * backend_data
Definition rmw_entity.h:1294
const char * service_name
Definition rmw_entity.h:1288
const char * type_name
Definition rmw_entity.h:1290
Definition rmw_entity.h:274
uint8_t data[24u]
Definition rmw_entity.h:279
const char * implementation_identifier
Definition rmw_entity.h:277
Definition rmw_entity.h:306
rmw_gid_t publisher_gid
Definition rmw_entity.h:318
uint64_t reception_sequence_number
Definition rmw_entity.h:316
rmw_time_point_value_t source_timestamp
Definition rmw_entity.h:308
bool from_intra_process
Definition rmw_entity.h:321
uint64_t publication_sequence_number
Definition rmw_entity.h:314
rmw_time_point_value_t received_timestamp
Definition rmw_entity.h:310
Definition rmw_entity.h:247
const char * type_name
Definition rmw_entity.h:251
const char * type_hash
Definition rmw_entity.h:254
Definition rmw_entity.h:171
uint8_t * data
Definition rmw_entity.h:172
size_t len
Definition rmw_entity.h:183
size_t capacity
Definition rmw_entity.h:174
Definition rmw_entity.h:674
uint8_t dscp
Definition rmw_entity.h:681
rmw_transport_protocol_t transport_protocol
Definition rmw_entity.h:675
rmw_internet_protocol_t internet_protocol
Definition rmw_entity.h:676
char internet_address[48]
Definition rmw_entity.h:682
uint16_t transport_port
Definition rmw_entity.h:677
uint32_t flow_label
Definition rmw_entity.h:679
Definition rmw_entity.h:1175
uint8_t _reserved[8]
Definition rmw_entity.h:1186
const char * namespace_
Definition rmw_entity.h:1179
rmw_session_t * session
Definition rmw_entity.h:1184
const char * name
Definition rmw_entity.h:1177
void * backend_data
Definition rmw_entity.h:1188
Definition rmw_entity.h:809
uint8_t _reserved[7]
Definition rmw_entity.h:815
uint8_t tx_express
Definition rmw_entity.h:814
Definition rmw_entity.h:1219
const char * type_name
Definition rmw_entity.h:1224
uint8_t _reserved[7]
Definition rmw_entity.h:1232
bool can_loan_messages
Definition rmw_entity.h:1230
const char * topic_name
Definition rmw_entity.h:1221
void * backend_data
Definition rmw_entity.h:1234
rmw_qos_profile_t qos
Definition rmw_entity.h:1226
Definition rmw_entity.h:440
uint8_t avoid_ros_namespace_conventions
Definition rmw_entity.h:469
uint8_t reliability
Definition rmw_entity.h:442
uint8_t durability
Definition rmw_entity.h:443
uint16_t depth
Definition rmw_entity.h:446
uint32_t lifespan_ms
Definition rmw_entity.h:457
uint8_t _reserved1[3]
Definition rmw_entity.h:470
uint8_t liveliness_kind
Definition rmw_entity.h:445
uint16_t _reserved0
Definition rmw_entity.h:447
uint32_t deadline_ms
Definition rmw_entity.h:453
uint8_t history
Definition rmw_entity.h:444
uint32_t liveliness_lease_ms
Definition rmw_entity.h:461
Definition rmw_entity.h:343
int8_t writer_guid[16]
Definition rmw_entity.h:345
int64_t sequence_number
Definition rmw_entity.h:347
Definition rmw_entity.h:363
rmw_time_point_value_t received_timestamp
Definition rmw_entity.h:367
rmw_request_id_t request_id
Definition rmw_entity.h:369
rmw_time_point_value_t source_timestamp
Definition rmw_entity.h:365
Definition rmw_entity.h:1271
uint8_t _reserved[8]
Definition rmw_entity.h:1278
void * backend_data
Definition rmw_entity.h:1280
const char * service_name
Definition rmw_entity.h:1273
const char * type_name
Definition rmw_entity.h:1276
Definition rmw_entity.h:263
const char * type_name
Definition rmw_entity.h:265
const char * type_hash
Definition rmw_entity.h:267
Definition rmw_entity.h:782
uint8_t _reserved[7]
Definition rmw_entity.h:789
size_t property_count
Definition rmw_entity.h:806
uint8_t localhost_only
Definition rmw_entity.h:788
const char * enclave
Definition rmw_entity.h:798
const rmw_session_property_t * properties
Definition rmw_entity.h:805
Definition rmw_entity.h:767
const char * value
Definition rmw_entity.h:769
const char * key
Definition rmw_entity.h:768
Definition rmw_entity.h:1124
const char * node_name
Definition rmw_entity.h:1126
const char * namespace_
Definition rmw_entity.h:1128
void * backend_data
Definition rmw_entity.h:1133
uint8_t _reserved[8]
Definition rmw_entity.h:1131
Definition rmw_entity.h:823
uint32_t rx_buffer_hint
Definition rmw_entity.h:868
uint32_t arrival_rate_mhz
Definition rmw_entity.h:890
Definition rmw_entity.h:1241
uint8_t _reserved[7]
Definition rmw_entity.h:1253
void * backend_data
Definition rmw_entity.h:1255
bool can_loan_messages
Definition rmw_entity.h:1251
const char * type_name
Definition rmw_entity.h:1245
const char * topic_name
Definition rmw_entity.h:1243
rmw_qos_profile_t qos
Definition rmw_entity.h:1247
Definition rmw_entity.h:623
const char * node_name
Definition rmw_entity.h:625
rmw_endpoint_type_t endpoint_type
Definition rmw_entity.h:631
rmw_gid_t endpoint_gid
Definition rmw_entity.h:633
rmw_qos_profile_t qos_profile
Definition rmw_entity.h:638
const char * topic_type
Definition rmw_entity.h:629
const char * node_namespace
Definition rmw_entity.h:627