Institute of Computer Science
  1. Main page
  2. ADL Minicar Challenge
ET
Log in

ADL Minicar Challenge

  • Main
  • 2021
  • 2022
  • The Car
  • Projects with DonkeyCar

For Ubuntu it seems that connection to the car works better in eduroam network, in Windows it seems you need to be conected to the rscgx hotspot at the track.

WINDWOS

You need to lanuch RCSnail.exe to connect to the car. Follow instreuctions in the demo video.

To connect the AI-lite agent to the car and make it control the car, you need to tick the box AI in the user intercace of the program, relaunch a session and then launch the AI-lite python code (src/main.py).

LINUX

Tested on ubuntu 18.10

Launching a trained model or giving commands to the car via some other algorithm, Ubuntu workea fine. Recording original sized data, hoever is not possible right now.

Git clone 4 repos (and follow REDAME instructions of what to pip install or how in the repos and in the RCSnail documentation)

  • https://github.com/rcsnail/RCSnailPy
  • https://github.com/rcsnail/RCSnail-Commons
  • https://github.com/rcsnail/RCSnail-Connector additonal step: for connector to work you need to defne environment variables RCS_USERNAME and RCS_PASSWORD (the ones you get by registering on https://api.rcsnail.com/ )
  • https://github.com/martinliivak/RCSnail-AI-lite HOWEVER; for Ubuntu the src/main.py file is not suitable. I have a modified version that I will link soon. The principal difference is that RCSnail-Connector expects the AI to send a dictionary with keys ["d_steer", "d_throttle", "d_gear"] (in the line: controls_queue.send_json(next_controls) )

Other potential issues: - make sure ffmpeg is installed, version 4.3 works for me - pyav 8.0.2 works for me - i think need for Pillow is not mentioned in the requirements, but it's needed. - You might get an error when importing ruamel.yaml, I think just changing the import to ruamel_yaml works - make sure you're trying to connect to the right track and car. It's likely defined in config files. Track: deltax, Car: deltax_i8_01 or deltax_i8_02 .

WHEN LAUNCHING your solution in AI-lite and hoping it controls the car:
There's no RCSnail.exe in Ubuntu. You need to use RCSnail-Connector/src/main.py

You need to launch both AI-lite/src/main.py (connects to the car and waits for commands) and RCSnail-Connector/src/main.py (the AI that gets images and sends commands). You need to launch the AI first, at least it seems the two pieces dont connect otherwise.

It seems that the RCSnail-Connector works fine only if launched from its root folder, not from inside the src folder (so you have to do src/main.py). This also means it looks for config file one folder higher than where it is placed in the git repo, so just copy it in the parent folder and remember it's that config that matters (when you modify it).

HINT: you can try to launch connection to the car also from RCSnailPy/examples/manual_drive/manual_drive.py , it asks which track and car and it should work with less potential bogs than RCSnail-Connector. If that fails, you know the problem is in networking, missing visualization packages or something like that, not Connector or AI-lite.

  • Institute of Computer Science
  • Faculty of Science and Technology
  • University of Tartu
In case of technical problems or questions write to:

Contact the course organizers with the organizational and course content questions.
The proprietary copyrights of educational materials belong to the University of Tartu. The use of educational materials is permitted for the purposes and under the conditions provided for in the copyright law for the free use of a work. When using educational materials, the user is obligated to give credit to the author of the educational materials.
The use of educational materials for other purposes is allowed only with the prior written consent of the University of Tartu.
Terms of use for the Courses environment