Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Workshop 5 Continuous Integration and Unit Testing

Marc Hanheide edited this page Oct 24, 2018 · 5 revisions

Task 0: update the system

You should know by now how to do that

Task 1: run a rostest

  1. Clone your fork of the CMP9767M repository
  2. Pull in the changes from upstream (research how to do it)
  3. Run the simple-test.py and understand what it does
  4. Run the testme.test ROS test

Task 2: write a unit test

  1. Look at https://github.com/steup/Ros-Test-Example/tree/master/src/python_test and understand it
  2. Look at https://github.com/LCAS/CMP9767M/tree/master/uol_cmp9767m_base/tests and understand it
  3. Based on [testme.test] extend it with a test that moves the Thorvald robot 1m forward and returns success if it does so within 30 seconds.

Optional Task 3: Vision

  1. Run the Thorvald simulation, and display the camera image (in rviz or rqt_image_view)
  2. Conceptualise a solution to tell plants from the background