MADRaS is a Multi-Agent Autonomous Driving Simulator built on top of TORCS. The simulator can be used to test autonomous vehicle algorithms both heuristic and learning based on an inherently multi agent setting.
Note please : Master branch is the development branch, the most stable version of the code is in Version1 branch. We request all users to checkout Version1 branch for stability.
- TORCS
git clone https://github.com/madras-simulator/TORCS.git
- plib
- Install Dependencies
sudo apt-get install libalut-dev
sudo apt-get install libvorbis-dev
sudo apt-get install libxrandr2 libxrandr-dev
sudo apt-get install zlib1g-dev
sudo apt-get install libpng-dev
sudo apt-get install libplib-dev libplib1
sudo apt-get install python-tk
sudo apt-get install xautomation
- Installling plib (follow instructions on the plib page)
- Installing TORCS
cd TORCS/
./configure --prefix=$HOME/usr/local
make && make install
make datainstall
export PATH=$HOME/usr/local/bin:$PATH
export LD_LIBRARY_PATH=$HOME/usr/local/lib:$LD_LIBRARY_PATH
- test if torcs is running by typing
torcs
in a new terminal window - test if scr client is installed or not.
- open TORCS, navigate to configure race (race->quickrace->configure race -> select drivers)
- check the Not-Selected list for
scr-serverx
where x will range in [1,9]
Tested on ubuntu-16.04 & ubuntu-18.04
# if req an env can also be created
git clone https://github.com/madras-simulator/MADRaS
cd MADRaS/
pip3 install -e .
For further information regarding the simulator please checkout our Wiki