From b1aae2b87681da8ea95cc02a50e05b25beb8fac9 Mon Sep 17 00:00:00 2001 From: JulienThevenoz Date: Fri, 24 Nov 2023 13:16:21 +0100 Subject: [PATCH] Everything should work --- .github/workflows/systemtests.yml | 7 +++++++ systemtests/plotter_class.py | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/systemtests.yml b/.github/workflows/systemtests.yml index e69b04a84..b2d59305a 100644 --- a/.github/workflows/systemtests.yml +++ b/.github/workflows/systemtests.yml @@ -11,24 +11,29 @@ jobs: runs-on: self-hosted steps: - name: Create workspace + id: step1 run: | cd ros2_ws/src || mkdir -p ros2_ws/src - name: Checkout motion capture package + id: step2 run: | cd ros2_ws/src ls motion_capture_tracking || git clone --branch ros2 --recursive https://github.com/IMRCLab/motion_capture_tracking.git - name: Checkout Crazyswarm2 + id: step3 uses: actions/checkout@v4 with: path: ros2_ws/src/crazyswarm2 submodules: 'recursive' - name: Build workspace + id: step4 run: | source /opt/ros/humble/setup.bash cd ros2_ws colcon build --symlink-install - name: Flight test + id: step5 run: | cd ros2_ws source /opt/ros/humble/setup.bash @@ -37,6 +42,7 @@ jobs: python3 src/crazyswarm2/systemtests/newsub.py - name: Upload files + id: step6 uses: actions/upload-artifact@v3 with: name: pdf_and_bagfiles @@ -45,6 +51,7 @@ jobs: ros2_ws/results - name : Upload logs + id: step7 uses: actions/upload-artifact@v3 with: name: logs diff --git a/systemtests/plotter_class.py b/systemtests/plotter_class.py index 00fc45540..b74fc9fa2 100644 --- a/systemtests/plotter_class.py +++ b/systemtests/plotter_class.py @@ -308,8 +308,8 @@ def test_passed(self) -> bool : print("Test passed") return True else: - print(f"The deviation between ideal and recorded trajectories is greater than {self.EPSILON}m for {nb_dev_points}" - f"datapoints, which corresponds to {nb_dev_points*0.01}s") + print(f"The deviation between ideal and recorded trajectories is greater than {self.EPSILON}m for {nb_dev_points} " + f"datapoints, which corresponds to a duration of {nb_dev_points*0.01}s") return False if __name__=="__main__":