If have already an installed simulator through the lab sessions, you only need to move some files across and install one additional package. To do this follow these steps:
- Clone the assignment repo:
git clone https://github.com/ccimrie/IVR-assignment
- Change the name of your main.py within your IVR-Labs folder:
mv /path/to/folder/IVR-Labs/main.py /path/to/folder/IVR-Labs/main-labs.py
- Copy across the assignment files:
cp -r /path/to/assignment/IVR-assignment/reacher3D /path/to/folder/IVR-Labs && cp /path/to/assignment/IVR-assignment/main.py /path/to/folder/IVR-Labs
- Run the command:
WS=$PWD
- Clone the pyquaternion repo:
git clone https://github.com/KieranWynn/pyquaternion.git
- Go into this folder:
cd pyquaternion
- Install:
pip install . -I --prefix $WS/VRInstall
- Go to where main.py is:
cd $WS
You should now have the assignmnet setup ready alongside your lab setup. You will still need to follow the same procedure on how to run as you did for the labs.
If you are using Windows you can install a Virtual Machine (VM) that can run Ubuntu and from here you will be able to install easier the openai gym framework. The steps briefly are:
-
Download the correct installer: https://www.virtualbox.org/wiki/Downloads
-
Run the installer to install VirtualBox.
-
Download the Ubuntu 16.04 (desktop) ISO image: https://www.ubuntu.com/download/alternative-downloads
-
Start VirtualBox and click on new. Here you will then select the name of your VM and type; scroll down to Ubuntu.
-
After you will be asked to navigate to the ISO image file you downloaded in step 2.
-
One of the steps will be how much RAM and virtual hard disk space to assign. For now 1GB for RAM and 10GB for the hard disk should suffice (change as you feel is appropriate)
-
Here you will then install Ubuntu onto your VM. (When asked what to do with regards to the hard disk click use all, do not worry this is talking about the virtual hard disk). https://tutorials.ubuntu.com/tutorial/tutorial-install-ubuntu-desktop-1604#0
This is a brief set of steps and I recommend also looking at this link as it is a good reference: https://medium.com/@tushar0618/install-ubuntu-16-04-lts-on-virtual-box-desktop-version-30dc6f1958d0
- Install git:
sudo apt install git
- Delete the pip cache in the home directory:
rm -rf .cach/pip/
- Clone this repo:
git clone https://github.com/ccimrie/IVR-Labs.git
- cd to cloned folder:
cd IVR-Labs
Follow the next steps according to your situation.
- Run installation script:
source install.bash
👍
- Install python-pip:
sudo apt install python-pip
- Upgrade python-pip:
sudo pip install --upgrade pip
- Install required packages:
sudo apt install autotools-dev libtool automake autoconf mercurial pkg-config
- Run installation script:
source install.bash
👍
- Create a new python environment:
conda create --name ivrlabenv python=2.7 pip scipy numpy cython -y
- Activate environment:
conda activate ivrlabenv
- Run installation script:
source conda_install.bash
👍
On every new terminal you will have to navigate to the cloned folder and run source setup.bash
.
This is to initialize the relevant environment variables.
If you want to avoid sourcing the setup.bash file with every new terminal, you can add it to you .bashrc file: echo "source </path/to>/setup.bash" >> ~/.bashrc
.
Make sure you replace the </path/to>
with the path to the setup file.
Also, in case you are using Conda, do not forget to activate the environment with conda activate ivrlabenv