fix: observe Aimer-owned fire topic - #2
Merged
Merged
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideWebotsFireNotify now observes the existing host Sequence diagram for required fire topic initializationsequenceDiagram
participant WebotsFireNotify
participant LibXR_Topic
participant Logger
participant Aimer
WebotsFireNotify->>LibXR_Topic: LibXR::Topic::Find fire_notify
alt topic exists
LibXR_Topic-->>WebotsFireNotify: topic handle
Aimer->>fire_notify: publish fire requests
fire_notify-->>WebotsFireNotify: observe existing payload
WebotsFireNotify->>WebotsFireNotify: HandleFireRequest
else topic missing
LibXR_Topic-->>WebotsFireNotify: nullptr
WebotsFireNotify->>Logger: XR_LOG_ERROR
WebotsFireNotify-->>WebotsFireNotify: throw std::runtime_error
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Find existing host/fire_notify instead of creating it with a different C++ payload type. Retain raw decoding and all firing/heat/timing behavior. Missing Aimer topic produces a log and exception.
Validation
Existing local exact-commit validation was inspected before delivery (not rerun for PR creation).
Coordinated sources
WebotsGimbal 18698d0; WebotsFireNotify 06e36ce; bsp-webots-autoaim 8bc0543.
All use branch fix/topic-owner-debug-20260911. Initialize Camera/Aimer topic owners before the Webots consumers. Deploy the BSP and module changes together; a new module with the old BSP initialization order fails explicitly.
MCU firmware, Aimer payload/wire layout, Camera and LibXR are unchanged.
Summary by Sourcery
Observe the Aimer-owned fire notification topic while preserving existing firing, heat, timing, and raw-decoding behavior.
Bug Fixes:
fire_notifytopic instead of creating a conflicting payload type.