You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add ~/save_snapshot_delayed service with delay, blocking mode, reason tracking, and full documentation (#10)
* Initial plan
* feat: Add save_snapshot_delayed service with optional delay before snapshot
- Add rosbag_blackbox_interfaces package with SaveSnapshotDelayed.srv service definition (float64 delay request, bool success + string message response)
- Update rosbag_blackbox package.xml to depend on rosbag_blackbox_interfaces
- Add ~/save_snapshot_delayed service to RingBufferNode that returns immediately and runs the snapshot in a background ThreadPoolExecutor after the specified delay
- Add 8 pure-Python tests for the delayed snapshot logic
Co-authored-by: marc-hanheide <1153084+marc-hanheide@users.noreply.github.com>
* feat: address PR review comments - blocking mode, reason tracking, README docs, package metadata
- SaveSnapshotDelayed.srv: add bool blocking and string reason fields
- ringbuffer_node.py: blocking=true waits on executor future; reason forwarded
to _write_snapshot which writes reason.md for every snapshot route
- snapshot_helpers.py: add REASON_FILENAME, build_reason_content(), read_snapshot_reason()
- snapshot_server.py: metadata endpoint includes reason field (null when absent)
- Both package.xml: license=proprietary, maintainer=Marc Hanheide
- README.md: full documentation of delayed service, blocking mode, reason.md,
updated ToC, Features table, Installation, Quick Start, REST endpoints table,
and Architecture diagram
- test_delayed_snapshot.py: 22 tests covering new helpers and all service modes
Co-authored-by: marc-hanheide <1153084+marc-hanheide@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: marc-hanheide <1153084+marc-hanheide@users.noreply.github.com>
0 commit comments