Skip to content

feat(msgs): rcl_interfaces logger-level messages (hu stack 2/9)#233

Open
YuanYuYuan wants to merge 1 commit into
dev/pr-hu-1a-nixfrom
dev/pr-hu-1b-logger-msgs
Open

feat(msgs): rcl_interfaces logger-level messages (hu stack 2/9)#233
YuanYuYuan wants to merge 1 commit into
dev/pr-hu-1a-nixfrom
dev/pr-hu-1b-logger-msgs

Conversation

@YuanYuYuan

Copy link
Copy Markdown
Collaborator

Summary

Stacked PR 2 of 9 splitting the hu (hiroz-union) skeleton (#231). Adds the rcl_interfaces LoggerLevel / SetLoggerLevelsResult messages and GetLoggerLevels / SetLoggerLevels services under hiroz-codegen assets, and makes hiroz-msgs' build.rs track the codegen asset tree so codegen re-runs when definitions change.

The generated types are not yet consumed by any code — they land ahead of the logging support that uses them.

Base: dev/pr-hu-1a-nix (PR #232). Breaking changes: none.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds ROS 2 rcl_interfaces logger-level message/service definitions to the in-tree codegen asset bundle (Jazzy), and updates hiroz-msgs’ build script so code generation is re-triggered when those external IDL assets change. This supports the staged rollout of logging support in the hu stack by landing the generated types ahead of their first consumer.

Changes:

  • Add rcl_interfaces LoggerLevel / SetLoggerLevelsResult messages under crates/hiroz-codegen/assets/jazzy/.
  • Add rcl_interfaces GetLoggerLevels / SetLoggerLevels services under crates/hiroz-codegen/assets/jazzy/.
  • Update crates/hiroz-msgs/build.rs to rerun codegen when the codegen asset tree changes.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
crates/hiroz-msgs/build.rs Adds explicit Cargo rerun tracking for codegen assets so message/service codegen re-runs when external IDL definitions change.
crates/hiroz-codegen/assets/jazzy/rcl_interfaces/srv/SetLoggerLevels.srv Introduces the Jazzy SetLoggerLevels service definition.
crates/hiroz-codegen/assets/jazzy/rcl_interfaces/srv/GetLoggerLevels.srv Introduces the Jazzy GetLoggerLevels service definition.
crates/hiroz-codegen/assets/jazzy/rcl_interfaces/msg/SetLoggerLevelsResult.msg Adds the result message used by SetLoggerLevels.
crates/hiroz-codegen/assets/jazzy/rcl_interfaces/msg/LoggerLevel.msg Adds the logger-level message used by both services.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread crates/hiroz-msgs/build.rs

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

crates/hiroz-msgs/build.rs:18

  • cargo:rerun-if-changed on the assets directory won’t reliably rerun the build script when an existing .msg/.srv file is edited (directory mtime typically changes on add/remove, not on file content edits), and it also won’t catch changes under nested subdirectories unless those directories themselves are tracked. To actually make codegen rerun on definition edits/additions, emit rerun directives for the whole tree (dirs + files).
    let manifest_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR")?);
    if let Some(codegen_assets) = manifest_dir
        .parent()
        .map(|p| p.join("hiroz-codegen/assets"))
        && codegen_assets.exists()

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Comment thread flake.nix Outdated
Adds the LoggerLevel and SetLoggerLevelsResult messages and the
GetLoggerLevels and SetLoggerLevels services under hiroz-codegen assets,
and makes hiroz-msgs' build.rs track the codegen asset tree so codegen
re-runs when .msg/.srv definitions change. The generated types are not yet
consumed by any code — they land ahead of the logging support that uses them.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread crates/hiroz-msgs/build.rs

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

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.

2 participants