This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tutorials:pycram:setup [2020/03/19 09:47]
gkazhoya created
tutorials:pycram:setup [2020/04/08 07:30] (current)
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'​t be a problem because all packages are available via PyPi.
 +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:
 +<​code>​pip install <​package>​ </​code>​
 +===== PyCRAM =====
 +To get PyCRAM simply clone the repository with the following command:
 +<​code>​git clone https://​github.com/​cram2/​pycram.git</​code>​
 +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('<​path to repository>/​pycram/​src/'​) ​