Skip to content

Commit

Permalink
experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
julienthevenoz committed Dec 15, 2023
1 parent c40eda5 commit a5274a6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/systemtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ jobs:
- name: Upload files
id: step6
if: '!cancelled()'
uses: actions/upload-artifact@v3
with:
name: pdf_bagfiles_and_logs
name: pdf_rosbags_and_logs
path: |
ros2_ws/results
Expand Down
18 changes: 13 additions & 5 deletions systemtests/test_flights.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ def translate_plot_and_check(self, testname:str) -> bool :
plotter.create_figures(self.test_file, rosbag_csv, output_pdf) #plot the data
return plotter.test_passed()

def test_hello_world(self):
#this is not a fully functionning test at the moment (it supposes the hello_world ideal trajectory is figure8 so of course it a always fail)
self.test_file = "../crazyflie_examples/crazyflie_examples/data/figure8.csv"
# run test
self.record_start_and_clean("hello_world", 40)
#create the plot etc
test_passed = self.translate_plot_and_check("hello_world")
#assert test_passed, "hello_world test failed : deviation larger than epsilon"


def test_figure8(self):
Expand All @@ -148,11 +156,11 @@ def test_figure8(self):
test_passed = self.translate_plot_and_check("figure8")
assert test_passed, "figure8 test failed : deviation larger than epsilon"

def test_multi_trajectory(self):
self.test_file = "../crazyflie_examples/crazyflie_examples/data/multi_trajectory/traj0.csv"
self.record_start_and_clean("multi_trajectory", 80)
test_passed = self.translate_plot_and_check("multi_trajectory")
assert test_passed, "multitrajectory test failed : deviation larger than epsilon"
# def test_multi_trajectory(self):
# self.test_file = "../crazyflie_examples/crazyflie_examples/data/multi_trajectory/traj0.csv"
# self.record_start_and_clean("multi_trajectory", 80)
# test_passed = self.translate_plot_and_check("multi_trajectory")
# assert test_passed, "multitrajectory test failed : deviation larger than epsilon"



Expand Down

0 comments on commit a5274a6

Please sign in to comment.