-
Notifications
You must be signed in to change notification settings - Fork 2
Add deploy logs, Fix projected gravity computation #62
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
…loyments. add 3d visualizer for the quat over the course of rollout
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 deployment logging and visualization while refactoring deployment classes for improved structure and reliability. Key changes include adding new fields (model, timestamp, quat) and statistics to deployment logs with a daily folder structure; implementing a 3D IMU visualizer; and adjusting joystick deployment classes to use the unified Deploy base class.
Reviewed Changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| ksim_kbot/deploy/deployment_logs/plot_logs.py | Updated logging, added new fields and statistics, refactored file loading with argument support. |
| ksim_kbot/deploy/deployment_logs/plot_3d_imu.py | New module for generating 3D visualization video of quaternion data with improved frame handling. |
| ksim_kbot/deploy/deploy_joystick_rnn.py | Refactored to use Deploy base class and updated rollout dictionary with additional fields. |
| ksim_kbot/deploy/deploy_joystick.py | Similar updates to rollout storage and episode length adjustments. |
| ksim_kbot/deploy/deploy.py | Updated file saving logic to create a daily folder structure and removed the FixedArmDeploy subclass. |
| ksim_kbot/deploy/init.py | Removed FixedArmDeploy from public API. |
Files not reviewed (1)
- ksim_kbot/requirements.txt: Language not supported
| print(f"Date folder not found: {date_str}") | ||
| return None | ||
|
|
||
| print(f"Found date folder: {date_str}") |
Copilot
AI
Apr 25, 2025
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.
Consider using logger.error instead of print for consistent error reporting.
| print(f"Date folder not found: {date_str}") | |
| return None | |
| print(f"Found date folder: {date_str}") | |
| logger.error(f"Date folder not found: {date_str}") | |
| return None | |
| logger.info(f"Found date folder: {date_str}") |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
add fields "model" for model used, timestamp, and quat to the log deployments.
add 3d visualizer for the quat over the course of rollout
automatic daily folder structure for pickle files
add arguments in plotting of deployment which day and which deployment type to plot