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.