Skip to content

How to use colab to run the rsoccer environment

JulianaDamurie edited this page Oct 28, 2021 · 1 revision

What is the advantage of using colab?

Which libraries can be important

  • os — Miscellaneous operating system interfaces:

import os

  • Drive

from google.colab import drive os — Miscellaneous operating system interfaces

What I need to do to install my github repository

  • RSim:
!apt-get update
!apt-get install qt5-default libode-dev
!cd build
!git clone -b <branch_name> https://github.com/robocin/rSim.git
%cd rSim
!mkdir buildc
%cd buildc
!ls
!cmake ..
!make -j4
%cd ..
!pip install -e .
%cd ..
  • RSoccer:
!git clone -b <branch_name> https://github.com/robocin/rSoccer.git
%cd rSoccer
!pip install -e ./
%cd ..
!apt-get install -y xvfb python-opengl > /dev/null 2>&1
!pip install gym pyvirtualdisplay > /dev/null 2>&1
  • Run your Agent

  • Execute

Where will my files be saved?

How can I import several files at once?