Commit Graph

11 Commits

Author SHA1 Message Date
781540d3a8 Add CSV plotting and episode recording functionality
- Implemented `plot_data_csv.py` to read CSV files and generate plots for velocity and linear acceleration signals.
- Created `record1.py` for recording ESP32 IMU data, DIN/DOUT states, and RealSense camera images into episodes.
- Enhanced `ProviderWorldIMUVelocityEstimator` to include stationary detection logic, resetting velocity when stationary.
- Updated `EpisodeWriter` to save episode data with timestamped filenames for better organization.
2026-07-10 10:23:15 +08:00
b4739362a5 Refactor IMU velocity estimator to improve gravity compensation and integrate world-frame velocity calculations 2026-07-07 17:08:04 +08:00
fd286e6a9e Add episode recording functionality and enhance serial communication handling
- Introduced record_episode.py for capturing ESP32 IMU data and RealSense images.
- Added SwitchChangeDetector and SwitchLevelController for managing recording triggers.
- Enhanced ESP32Bridge with new methods for reading samples and latest packets.
- Updated verify.py and visualise.py to improve serial communication stability.
- Modified .gitignore to include dataset, csv, and png directories.
2026-07-03 10:53:49 +08:00
be7c498270 Add verification script for IMU gravity compensation and velocity integration 2026-07-02 11:19:53 +08:00
e0f777837b Add linear velocity calculation and visualization to IMU data processing
- Implemented Euler to rotation matrix conversion for IMU data.
- Added function to compute linear velocity from accelerometer data with gravity compensation.
- Enhanced CSV and PNG saving functionality to automatically create directories.
- Updated statistics printing to include linear acceleration and velocity metrics.
- Expanded plotting functionality to visualize linear acceleration and velocity alongside existing data.
- Added new PNG files for IMU quality visualization.
2026-07-01 17:29:58 +08:00
8646e5da0a Update: README included for better understanding and future developers 2026-07-01 15:17:06 +08:00
f33a3f1886 Enhance IMU data visualization and file handling
- Updated `main.py` to include a flag for real GPIO output control.
- Added a new function in `visualise.py` to generate unique file paths for CSV and plot outputs by appending timestamps if the file already exists.
- Modified CSV and plot saving logic to utilize the new unique path function, ensuring no overwriting of existing files.
- Introduced a new image file `imu_quality_20260701_131902.png` and updated the existing `imu_quality.png`.
2026-07-01 13:21:15 +08:00
e2c1597b68 Feat: add ESP32 bridge functionality and physical switch control 2026-06-26 13:06:27 +08:00
5b7f44a9b9 Fix: update relay logic and improve comments for clarity 2026-06-25 18:26:34 +08:00
443705ced3 Feat: visualization code implemented 2026-06-24 13:27:18 +08:00
55aea83cbe real field test 2026-06-18 16:55:30 +08:00