This installs Drake using pip
,
the Python package manager.
Follow the setup instructions for Ubuntu or Mac OS.
See Installation via Pip for more information on installation.
If on Ubuntu, first install the required packages:
setup/install_prereqs
This script will also run setup/setup_env
, which creates the virtual environment for this project and installs Drake.
To start programming, simply activate the environment by calling:
source env/bin/activate
If on Mac OS X, simply ensure the correct version of Python is installed from Homebrew by referring to the Supported Configurations.
Then, run the following script to create the virtual environment for this project and install Drake:
setup/setup_env
Note: If you have multiple versions of Python installed,
you can specify the correct version as an optional argument
to the script. For example, setup/setup_env 3.12
.
To start programming, simply activate the environment by calling:
source env/bin/activate
To run the particle example tests in this directory,
navigate to src
and call the test file to execute the unit tests:
cd src
python3 particle_test.py
For more information on what's available for Drake in Python, see Using Drake from Python and the Python API pydrake.