L.E.A.R.N.

L.E.A.R.N.

Creative Coding
for Newbies!

L.E.A.R.N. is a platform dedicated to beginner-friendly creative coding tutorials and exercises for building architecture with robots.

In these tutorials, we will introduce computational methods for architecture, fabrication & construction, incentivising computational literacy. Students will learn the theoretical background and basic implementation details of fundamental datastructures and algorithms, and to plan and control robot tasks in CAD environments using the COMPAS and COMPAS FAB framework, and other open-source libraries.

We want to provide access to our tutorials for as many students as possible. If you are affiliated with TUM or Princeton, you can register for the class. If you are a student from another university or simply interested in Digital Fabrication using robots, you can simply access the tutorial videos through this webpage.

Get Started

Just Start #1
Just Start #2
Python in VS Code
Python in Rhino and Grasshopper
  1. Setting up the Anaconda environment with COMPAS

    Execute the commands below in Anaconda Prompt:

    (base) conda config --add channels conda-forge
    Windows
    (base) conda create -n learn python=3.8 compas_fab=0.17 --yes (base) conda activate learn
    Mac
    (base) conda create -n learn python=3.8 compas_fab=0.17 python.app --yes (base) conda activate learn
    Verify Installation
    (learn) pip show compas_fab #### Name: compas-fab Version: 0.13.1 Summary: Robotic fabrication package for the COMPAS Framework …
    Install on Rhino
    (learn) python -m compas_rhino.install

    NOTE: This installs to Rhino 6.0, use -v 5.0 if needed.

  2. Installation of Dependencies
    (learn) conda install git
    Assembly Information Model
    (learn) python -m pip install git+https://github.com/augmentedfabricationlab/assembly_information_model@master#egg=assembly_information_model (learn) python -m compas_rhino.install -p assembly_information_model
    UR Fabrication Control
    (learn) python -m pip install git+https://github.com/augmentedfabricationlab/ur_fabrication_control@master#egg=ur_fabrication_control (learn) python -m compas_rhino.install -p ur_fabrication_control
  3. Cloning the Course Repository

    Create a workspace directory:

    C:\Users\YOUR_USERNAME\workspace

    Then open Github Desktop and clone the following repository into you workspace folder: L.E.A.R.N. repository

  4. You can now go to VS Code, Rhino or Grasshopper to run the example files!

Sessions

Python Basics
Quick start on Python
😎 😎 😎 View the Slides: Python Basics 😎 😎 😎
Datatypes, Operators, and Conditionals
Lists, Tuples, and Dictionaries
Loops
Functions
Classes
Geometry
COMPAS geometry
😎 😎 😎 View the Slides: COMPAS Geometry 😎 😎 😎
Vectors
Point Cloud and Plotters
Point Cloud in Grasshopper
Data Structures
COMPAS data structures
😎 😎 😎 View the Slides: COMPAS Data Structures 😎 😎 😎
Assembly Information Model
Assembly and Element data structures
😎 😎 😎 View the Slides: Assembly Information Model 😎 😎 😎
AM Information Model
Additive Manufacturing data structures
😎 😎 😎 View the Slides: AM Information Model 😎 😎 😎
Frames and Transformations
Frames and transformations
😎 😎 😎 View the Slides: Frames and transformations 😎 😎 😎
Robotic Fabrication Planning
Planning of a robotic assembly process
😎 😎 😎 View the Slides: Robotic Fabrication Planning 😎 😎 😎
Robotic Fabrication Control
Control of a robotic assembly process
😎 😎 😎 View the Slides: Robotic Fabrication Control 😎 😎 😎
Design Algorithms
Design Algorithms
😎 😎 😎 View the Slides: 😎 😎 😎
Utilities
Utilities
😎 😎 😎 View the Slides: 😎 😎 😎