Skip to content

Interrupt the diagnostics wait when unloading camera drivers - #10

Open
xia-chao wants to merge 1 commit into
mainfrom
fix/interrupt-diagnostic-wait-on-unload
Open

xia-chao wants to merge 1 commit into
mainfrom
fix/interrupt-diagnostic-wait-on-unload

Conversation

@xia-chao

Copy link
Copy Markdown
Contributor

Changes

  • Wake the diagnostics thread when either camera driver shuts down so component unload can join the worker without waiting for the next publication interval.
  • Keep the configured publication interval while the driver is running.

Validation

  • Built the driver and message packages with ROS 2 Jazzy on Linux. Driver checks reported zero failures.
  • Loaded the GigE camera component in a container with an isolated simulated camera. After receiving a live Width diagnostic at 0.1 Hz, component unload took 10.019 s before the change and 0.059 s afterward. The same container remained responsive and reported no loaded camera nodes.
  • The USB3 driver compiled with the shared shutdown helper.

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.

1 participant