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

Implement the test for the gyro #2

Merged
merged 1 commit into from
Jun 6, 2023
Merged

Implement the test for the gyro #2

merged 1 commit into from
Jun 6, 2023

Conversation

GiulioRomualdi
Copy link
Member

This PR implements the test for the gyro.
The following toml file allows to run the test in all the gyro of the left leg of ergocub

test_list = ["R_FOOT_FRONT_GYRO", "R_FOOT_REAR_GYRO", "R_LEG_FT_GYRO"]

[R_FOOT_FRONT_GYRO]
type = "GyroTest"
sensor_name = "r_foot_front_ft_gyro"
frame_name = "r_foot_front_ft_sensor"
error_mean_tolerance = [0.05, 0.05, 0.05]
error_std_tolerance = [0.05, 0.05, 0.05]
model_path = "/home/gromualdi/robot-install/share/ergoCub/robots/ergoCubGazeboV1/model.urdf"
dataset_file_name = "/home/gromualdi/robot-code/xcub-sensors-check/config/robot_logger_device_2023_05_20_11_03_22.mat"

[R_FOOT_REAR_GYRO]
type = "GyroTest"
sensor_name = "r_foot_rear_ft_gyro"
frame_name = "r_foot_rear_ft_sensor"
error_mean_tolerance = [0.05, 0.05, 0.05]
error_std_tolerance = [0.05, 0.05, 0.05]
model_path = "/home/gromualdi/robot-install/share/ergoCub/robots/ergoCubGazeboV1/model.urdf"
dataset_file_name = "/home/gromualdi/robot-code/xcub-sensors-check/config/robot_logger_device_2023_05_20_11_03_22.mat"

[R_LEG_FT_GYRO]
type = "GyroTest"
sensor_name = "r_leg_ft_gyro"
frame_name = "r_leg_ft_sensor"
error_mean_tolerance = [0.05, 0.05, 0.05]
error_std_tolerance = [0.05, 0.05, 0.05]
model_path = "/home/gromualdi/robot-install/share/ergoCub/robots/ergoCubGazeboV1/model.urdf"
dataset_file_name = "/home/gromualdi/robot-code/xcub-sensors-check/config/robot_logger_device_2023_05_20_11_03_22.mat"

To run the test we just need to send the following command to a console

 python3 ./run_tests.py -c ./config/test_config.toml -o ./img

And the is the output

🔴 Test R_FOOT_FRONT_GYRO: Failed
🔴 Test R_FOOT_REAR_GYRO: Failed
🔴 Test R_LEG_FT_GYRO: Failed

Morever all the plots will be automatically created and saved in ./img
This is an example of a plot

R_FOOT_FRONT_GYRO

⚠️ I took the dataset from icub-tech-iit/ergocub-software#129

@GiulioRomualdi GiulioRomualdi merged commit 01a820e into main Jun 6, 2023
@GiulioRomualdi GiulioRomualdi deleted the gyro_test branch June 6, 2023 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants