links: compas: main library docs | compas_fab docs | slides | troubleshooting
Windows users: the only Windows version that supports many of the requirements is Windows 10 (Pro+), making it a pre-requisite for everything else.
Note: if you get an error, scroll down and check the Troubleshooting section
- Rhinoceros 3D 6.0
- Focus will be on Rhino 6.0 only. While most things will work on Rhino 5.0, it is not recommended as there are several manual steps required to get the software to run. However, if you do use Rhino 5.0, make sure to install Grasshopper, GHPython and IronPython 2.7.5 (see here for details about this manual update).
- Anaconda Python Distribution: 2.7 or 3.x
- Docker Community Edition: Download it for Windows or Mac.
- X11 Server: On Windows use XMing, on Mac use XQuartz (see details here).
- Git: official command-line client or visual GUI (e.g. Github Desktop or SourceTree)
The very first thing to get started is to install COMPAS using Anaconda. Start your Anaconda Prompt and run the following:
conda config --add channels conda-forge
conda install COMPAS
Great! Now type python
in your Anaconda Prompt, and test if the installation went well:
>>> import compas
If that doesn't fail, you're good to go!
We can now install compas_fab. Go to the Anaconda Prompt and run:
pip install compas_fab
Let's make COMPAS and compas_fab packages available inside Rhino. Still on the Anaconda Prompt (you might need to be running as administrator), type the following:
NOTE: You only need to run one of those lines for the version of Rhino you use, or both if you use both versions.
python -m compas_fab.rhino.install 5.0
python -m compas_fab.rhino.install 6.0
There are various tools used as backend for compas_fab
and in order to make the development easier, we have packaged entire systems in Docker containers. Docker containers are a way to package software into isolated, standarized units with full reproducibility.
We publish V-REP docker images for generic scenes and also a specific one for the Robotic Fabrication Lab at ETH Zürich. To install the latter, run the following commands on the command prompt:
docker pull gramaziokohler/vrep-rfl
docker run --restart=always -p 19997:19997 -d gramaziokohler/vrep-rfl
Running a ROS setup usually involves multiple nodes (i.e. computers, real or virtual), interconnected through a master controller. To massively simplify the use of these tools, we package entire ROS systems into sets of Docker containers. Each of these sets runs in a virtualized network within your computer.
In order to run a ROS system that includes a graphical interface, first make sure to start the X11 server (e.g. XMing
on Windows).
The steps to run this kind of system are here.
- An alternative way to install ROS on Windows is to use WSL: Windows Subsystem for Linux.
By now, you should be up and running and ready to start playing with the framework!
Are you new to programming? Check out this tutorial to learn some basics of Python and compas datastructures
- COMPAS main library:
- Loading and rendering meshes. Slide 10 (slides)
- Delaunay triangulation with boundary.
- Additional COMPAS examples
- Frame & Transformation examples. Slides 18-22 (slides)
- Robot model examples:
- Explanation: Robot creation from in-memory structures & from URDF files
- V-REP Examples:
- ROS Examples:
- Demo: Inverse Kinematics with ROS
- Demo: Compute cartesian path with ROS
- Demo: Robot control with ROS
Sometimes things don't go as expected. Here are some of answers to the most common issues you might bump into:
Q: Docker does not start. It complains virtualization not enabled in BIOS.
This is vendor specific, depending on the manufacturer of your computer, there are different ways to fix this, but usually, pressing a key (usually F2
for Lenovo) before Windows even start will take you to the BIOS of your machine. In there, you will find a Virtualization
tab where this feature can be enabled.
Q: Cannot start containers, nor do anything with Docker. Error message indicates docker daemon not accessible or no response.
Make sure docker is running. Especially after a fresh install, docker does not start immediately. Go to the start menu, and start Docker for Windows
.
Q:
conda
commands don't work.
Try running them from the Conda Prompt. Depending on how you installed Anaconda, it might not be available by default on the normal Windows command prompt.
Q: When trying to install the framework in Rhino, it fails indicating the lib folder of IronPython does not exist.
Make sure you have opened Rhino 6 and Grasshopper at least once, so that it finishes setting up all its internal folder structure.
Q: It fails when trying to install on Rhino.
Try starting the command prompt as administrator. Depending on the version of Python, it might be required or not.
Q: error: Microsoft Visual C++ 14.0 is required
Follow the link to install Microsoft Visual C++ 14.0 https://www.scivision.co/python-windows-visual-c++-14-required/
Q: IWhen installing pip install compas_fab error: cannot find Frame
You have already installed an older version of COMPAS. Please remove it.