Skip to content
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

IMU test - Add MATLAB live script to generate the report #74

Merged
merged 2 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/imu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,16 @@ In simulation, instead, import your model in `gazebo` and then run:
export YARP_ROBOT_NAME=iCubGazeboV2_7
cd icub-tests
pixi run imu_sim_test
```

## Generate report

The IMU test is based on [`robometry`](https://github.com/robotology/robometry) that allows logging data from the robot sensors and saving them into a .mat file that will be generated at the end of the test execution.

To generate the report containing the plots with the acquired data and the results of the test, you can launch the `generate_report.mlx` MATLAB Live Script under `icub-tests/src/imu/report/` folder. After opening this file with MATLAB, there is a `File Browser control` with a `File` button, from which you can navigate your folders and select the .mat file.

Then, `run` the script and wait until it's done, it may take some time to finish. Finally, you can manually export the report in HTML format or, in the Command Window, run:

```matlab
export('report.mlx', format='html', HideCode=true);
```
Binary file added src/imu/report/generate_report.mlx
Binary file not shown.
Loading