Skip to content
Source code of the educational programming tool LearnBlock
Python C Slice Other
Branch: version-3
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LB_add_files help update Dec 2, 2019
img Append blink to simulator Dec 14, 2018
learnbot_components changes in components aprilTag and emotionrecognition (interfaces' pa… Sep 18, 2019
learnbot_dsl Showing error message after parsing errors Jan 17, 2020
.gitignore
.travis.yml
LICENSE Append blink to simulator Dec 14, 2018
README.md
learnblock_setup.py
learnbot_components_setup.py
learnbot_dsl_setup.py Changes in setup and EV3 config file added Nov 12, 2019
requirements.txt requirements update Jan 29, 2020

README.md

Donate


LearnBlock v 3.0

LearnBlock is an educational programming tool for learning programming. It has been designed to facilitate the learning process starting with a visual programming language and progressing towards a professional programming language.

LearnBlock is robot-agnostic, i.e. the same program can be executed in several robots. Clients for new robots can be easily created adding device interfaces and implementing hardware access methods for those interfaces. Examples of existing clients can be found here

Main features

Among other features, LearnBlock includes the following:

  • Available for different physical robots (EBO, Cozmo, Thymio and EV3) and simulated ones (EBO under RCIS and EV3 under V-REP).
  • Robots can be programmed using different languages: visual language, Block-Text (textual representation of the visual language) and Python.
  • New blocks can be created from code (Python) using the tool itself or external tools.
  • A program can be run and stopped at any moment. When a program is interrupted the robot is properly stopped and disconnected.

Installation

LearnBlock can be installed from PyPi or from sources. To install the last release of LearnBlock, you can follow the steps described in https://pypi.org/project/learnblock/

If you want to install LearnBlock from sources, the following packages must be installed:

sudo apt update

sudo apt install python3-pip cmake python3-zeroc-ice

sudo pip3 install apriltag requests pyunpack opencv-python-headless imutils six tensorflow dlib paramiko Pillow paho_mqtt PySide2 pyparsing qdarkstyle future

cd to your home directory and type:

git clone https://github.com/robocomp/LearnBlock.git

Edit your ~/.bashrc file:

gedit ~/.bashrc

Add these lines at the end:

export PYTHONPATH="${PYTHONPATH}:~/LearnBlock"

Update the bash process by typing:

source ~/.bashrc

Copy the following files to /usr/local/bin:

sudo cp -p ~/LearnBlock/learnbot_dsl/learnbotCode/LearnBlock ~/LearnBlock/learnbot_dsl/components/apriltag/src/aprilTag.py ~/LearnBlock/learnbot_dsl/components/emotionrecognition2/src/emotionrecognition2.py /usr/local/bin

You can now start LearnBlock by typing LearnBlock

Contributing

Thanks for your interest in contributing code! If you find an error or some improvement, I'd appreciate you told me. Please, use this template


Drop comments and ask questions in:

Please, report any bug to pilarb@unex.es

You can’t perform that action at this time.