Dylan Losey, Virginia Tech.
In this homework assignment we will simulate a robot arm.
# Download
git clone https://github.com/vt-hri/HW0.git
cd HW0
# Create and source virtual environment
python3 -m venv venv
source venv/bin/activate
# Install dependencies
pip install numpy pybullet
# Run the script
python main.pyOne way to run this is with WSL, Windows Subsystem for Linux.
- Install WSL. Windows provides instructions here. I also recommend this tutorial. Once installed, make sure to update and upgrade packages using:
sudo apt update && sudo apt upgrade
sudo apt install python3-pip python3-venv
-
Open an Ubuntu terminal. Right click, and paste the code shown above in the Ubuntu section. After the packages are installed, you should see the Expected Output.
-
Install a text editing software. I use Sublime, but there are many good options. You will use this text editing software to write your code.
You can use Anaconda. Follow the instructions here. Once installed, make sure conda is setup correctly by running
condaYou might have to source the .bash (or .zsh) file depending on which bash script the terminal uses. Or, simply close and re-open the terminal.
# Create a new conda env with python version 3.10.
conda create -n venv python=3.10
# Install pybullet from conda
conda install pybullet
# You can use pip to install all the other packages.
pip install numpy
# Run the script
python main.py