Skip to content

[RBTSW-949] fix action expirations in r2r - #137

Closed
Wiktor-99 wants to merge 5 commits into
sequenceplanner:masterfrom
cocorobotics:bugfix/RBTSW-949-fix-action-expirations-in-r2r
Closed

Wiktor-99 wants to merge 5 commits into
sequenceplanner:masterfrom
cocorobotics:bugfix/RBTSW-949-fix-action-expirations-in-r2r

Conversation

@Wiktor-99

Copy link
Copy Markdown

No description provided.

Adam Prochownik and others added 5 commits August 19, 2026 09:40
rcl_node_init() does not create the per-node /rosout publisher; the client
library has to call rcl_logging_rosout_init_publisher_for_node() itself, as
rclcpp and rclpy both do. Without it rcl_logging_rosout_output_handler()
finds no publisher registered for the node's logger name and drops every
record, so r2r logs only ever reach the console.

rcl/logging_rosout.h was also not included by the bindgen wrapper, so the
functions had no bindings at all.
…params_handling_in_event_reporter

Create the node's /rosout publisher
 - unpredictable_function_pointer_comparisons — r2r_rcl/build.rs calls
 bindgen with .derive_partialeq(true), so every generated struct holding
 a C function pointer gets a derived PartialEq. rustc ≥ 1.85 flags those
 comparisons since function addresses aren't guaranteed unique. Added a
 crate-root allow in 3rdparty/r2r/r2r_rcl/src/lib.rs:10, next to the
 existing improper_ctypes allows that cover the same generated file.

 - unused import: r2r_actions::* — r2r/src/error.rs:2. Every reference in
 that file is already fully qualified (r2r_actions::RCL_RET_ACTION_NAME_INVALID
 , etc.), so the glob was genuinely dead. Removed.

 - associated function new is never used — UntypedActionSupport::new in
 r2r/src/msg_types.rs:284. It's only called from new_from, which
 r2r_msg_gen generates per action type; this workspace exposes no action types,
 so the generated body has zero call sites. Added #[allow(dead_code)] with a
 comment rather than deleting it — the function is live in any workspace that
 does have actions.
…tion_warnigns_in_r2r

R2R is generarating multiple compilation warnings after updating toolchaing to 1.95.0
@Wiktor-99 Wiktor-99 closed this Nov 23, 2026
@Wiktor-99 Wiktor-99 reopened this Nov 23, 2026
@Wiktor-99 Wiktor-99 closed this Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants