Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
tutorials:pycram:setup [2020/03/19 09:47] – created gkazhoya | tutorials:pycram:setup [2020/12/17 13:25] – [PyCRAM] gkazhoya | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Setting up PyCRAM ====== | ====== Setting up PyCRAM ====== | ||
+ | The setup of PyCRAM can be differentiated in three steps: | ||
+ | * Installing Dependencies | ||
+ | * Cloning the PyCRAM repo | ||
+ | * Write a setup Script | ||
+ | Installing the dependencies shouldn' | ||
+ | The cloning of the PyCRAM repo is trivial. | ||
+ | |||
+ | The setup script is used to add the src directory to the python path. This has to be done so Python can find PyCRAM when importing from there. | ||
+ | ===== Dependencies ===== | ||
+ | To install PyCRAM firstly the required packages must be installed. These are: | ||
+ | * Pybullet | ||
+ | * Pathlib | ||
+ | * numpy | ||
+ | |||
+ | They can be easily installed by typing the following command into a terminal: | ||
+ | < | ||
+ | |||
+ | ===== PyCRAM ===== | ||
+ | To get PyCRAM simply clone the repository with the following command: | ||
+ | < | ||
+ | git clone https:// | ||
+ | git submodule init | ||
+ | git submodule update | ||
+ | </ | ||
+ | |||
+ | The cloned repository contains the source code for PyCRAM as well as two short demos which demonstrate how to use it. | ||
+ | |||
+ | ===== Using PyCRAM ===== | ||
+ | To use PyCRAM one needs to add the path to the source code manually at the moment. | ||
+ | This can be done in a python script before executing the actual code. | ||
+ | < | ||
+ | import sys | ||
+ | sys.path.append('< | ||
+ | </ |