-
Notifications
You must be signed in to change notification settings - Fork 5
Enhances sim_with_dds.py with HDF5 reset support and add a trajectory metrics evaluation pipeline. #137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the simulation reset functionality by allowing sim_with_dds.py to load and reset to recorded initial states from HDF5 files and adds an evaluation pipeline for trajectory metrics. Key changes include:
- New unit tests for trajectory overlap and distance computation.
- Added evaluation utilities and scripts (metrics, evaluate_trajectories) to process, plot, and compare trajectories.
- Modifications in the simulation environment and replay recording modules to support recorded data reset, along with updated documentation.
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| workflows/robotic_ultrasound/tests/test_simulation/test_metrics.py | New tests added for computing trajectory overlap and average distance. |
| workflows/robotic_ultrasound/scripts/simulation/evaluation/utils.py | Added functions to load ground truth/predicted data and plot trajectories. |
| workflows/robotic_ultrasound/scripts/simulation/evaluation/metrics.py | Provides metric computation using a KDTree for nearest neighbor queries. |
| workflows/robotic_ultrasound/scripts/simulation/evaluation/evaluate_trajectories.py | Implements a full evaluation pipeline for trajectory comparisons. |
| workflows/robotic_ultrasound/scripts/simulation/environments/state_machine/utils.py | Updates to support resetting the scene to its recorded initial state via HDF5 data. |
| workflows/robotic_ultrasound/scripts/simulation/environments/state_machine/replay_recording.py | Cleans up duplicate functions by importing shared utilities. |
| workflows/robotic_ultrasound/scripts/simulation/environments/sim_with_dds.py | Adds CLI arguments and logic for resetting using HDF5 data and saving end‐effector trajectories. |
| workflows/robotic_ultrasound/scripts/simulation/README.md | Updated documentation to explain the new evaluation pipeline and reset capabilities. |
workflows/robotic_ultrasound/scripts/simulation/environments/sim_with_dds.py
Show resolved
Hide resolved
workflows/robotic_ultrasound/scripts/simulation/evaluation/utils.py
Outdated
Show resolved
Hide resolved
workflows/robotic_ultrasound/scripts/simulation/environments/sim_with_dds.py
Outdated
Show resolved
Hide resolved
workflows/robotic_ultrasound/scripts/simulation/environments/sim_with_dds.py
Outdated
Show resolved
Hide resolved
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
|
/build |
workflows/robotic_ultrasound/scripts/simulation/evaluation/evaluate_trajectories.py
Outdated
Show resolved
Hide resolved
workflows/robotic_ultrasound/scripts/simulation/evaluation/utils.py
Outdated
Show resolved
Hide resolved
workflows/robotic_ultrasound/tests/test_simulation/test_evaluate_trajectories.py
Outdated
Show resolved
Hide resolved
workflows/robotic_ultrasound/scripts/simulation/evaluation/evaluate_trajectories.py
Outdated
Show resolved
Hide resolved
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
|
/build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @KumoLiu for the fixes!
|
/build |
2 similar comments
|
/build |
|
/build |
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
|
/build |
…yunl/enhance-sim-with-dds
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
|
/build |
Enhance sim_with_dds.py to reset to the recorded initial state. If hdf5_path is None, it will reset to the initial state recorded in the recorded data.
Add evaluation pipeline