Skip to content

Commit

Permalink
Everything should work
Browse files Browse the repository at this point in the history
  • Loading branch information
julienthevenoz committed Nov 24, 2023
1 parent 04cf9b0 commit b1aae2b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/systemtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -45,6 +51,7 @@ jobs:
ros2_ws/results
- name : Upload logs
id: step7
uses: actions/upload-artifact@v3
with:
name: logs
Expand Down
4 changes: 2 additions & 2 deletions systemtests/plotter_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down

0 comments on commit b1aae2b

Please sign in to comment.