Skip to content

Add Snapshot Capture #81

@mfaferek93

Description

@mfaferek93

Summary

Capture topic data when fault confirmed for debugging.


Proposed solution (optional)

Configuration:

fault_manager:
  snapshots:
    default_topics: [/odom, /battery_state]
    fault_patterns:
      "MOTOR_.*": [/joint_states, /cmd_vel]

On confirmation: subscribe, capture, store as JSON.
Database:

sqlCREATE TABLE snapshots (
  fault_code TEXT,
  topic TEXT,
  data TEXT,
  captured_at INTEGER
);

Add GetSnapshot.srv and endpoint.


Additional context (optional)

  • 1 second timeout per topic
  • Size limit per message
  • Handle missing topics

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions