Skip to content

Materials for the introduction to the robotic fabrication package for the COMPAS framework

License

Notifications You must be signed in to change notification settings

gramaziokohler/compas_fab_preworkshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 

Repository files navigation

links: compas: main library docs | compas_fab docs | slides | troubleshooting

Pre-workshop: Introduction to compas_fab

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

Requirements

Getting started

COMPAS

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!

Robotic fabrication package for COMPAS: compas_fab

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

Backends

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.

V-REP backend

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

ROS backend

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.

Notes

Let's code!

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

Troubleshooting

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.

About

Materials for the introduction to the robotic fabrication package for the COMPAS framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published