Skip to content

Return a failure exit code when camera control is lost - #11

Open
xia-chao wants to merge 1 commit into
mainfrom
fix/report-camera-control-loss-on-exit
Open

xia-chao wants to merge 1 commit into
mainfrom
fix/report-camera-control-loss-on-exit

Conversation

@xia-chao

Copy link
Copy Markdown
Contributor

Changes

  • Record Aravis device control loss before shutting down the ROS context.
  • Return a failure exit code from both standalone camera drivers after a control loss so process supervisors can detect the failure.

Validation

  • Built both ROS 2 Jazzy packages on Linux. The driver test run reported 80 results with 0 errors, 0 failures, and 22 skips.
  • With the Aravis GigE simulator, received a 512 × 512 Mono8 ROS image before stopping the simulator. The control-loss log was present and the driver exit status changed from 0 to 1.
  • After receiving the same image with the simulator still running, SIGINT stopped the driver with exit status 0 before and after the change. The USB3 driver was built without a hardware test.

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