image_pdfimage_print

Getting started with LEGO MINDSTORMS Education EV3

What can you do with the LEGO robot sets?

The LEGO Mindstorms Education EV3 sets can be used in different scenarios. They offer a quick and easy introduction into robot control, motion planning and visual navigation from depth images with Python. One can assemble the robots in various ways with different sensors and motors depending on the desired task. 

For more information go to Robot LEGO Robotics EV3 Dev and to https://pypi.org/project/python-ev3dev2/ .

Prerequisites

First of all a development set is necessary. At the chair of Cyber-Physical Systems we have five sets available for students. The implementation of the python code and connection to the EV3 can be done with Visual Studio Code and the extension LEGO MINDSTORMS EV3 MicroPython. The EV3 bricks are equipped with a micro-SD card on which the Micropython Image is installed. A more detailed installation guide is provided on GitHub.

Example - Motor control

In the following is an example python code to control a motor with the EV3. At the beginning the motor has to be initialized with the corresponding port (line 8). There are two different ways to control a motor. First, one can set a desired acceleration and target position to run the motor (line 11). Or one can set the desired acceleration and let the motor run until it is stopped by a command (line 17-23). 

Demo

If you want to get the python code or if you are interested in other example codes go to our GitHub repository or to this repository: https://github.com/bittner/lego-mindstorms-ev3-comparison#inspiration-for-lego-ev3-robots

Simulation Tools

You may also build your LEGO robot model in a simulation tool and test your Python algorithms. Here is a list of projects:

Here is a list of 3D Modelling Tools for LEGO systems:

Building a Cyber-Physical-System (CPS)

A CPS combines the predictions or commands of computer simulations (see the section on Simulation Tools) and offers a real-time visualization of the real system and the environment. 

Such a CPS can also be developed with our LEGO Ev3 robots. Current sensor measurements can be communicated in real-time to a simulation and visualization tool via bluethooth or wifi connections. Here is a collection of relevant resources:

PhD Thesis Roadmap & Goals

Defining concrete measurable goals is of major importance for PhD students. 

These goals should be well crafted based on the research focus and the strengths of the student.

The goals form an agreement between the supervisor and the student. They can be used to evaluate the progress at any time. 

Your Thesis Topic in One Sentence

Every student should be able to explain their research topic and the scientific contribution in one sentence

Start thinking about it now. You will be asked dozens of times during your PhD at meetings or conferences.

What is your research about; and why is that important; and what is new; in one sentence. 

Thesis Topics

Ideally, your thesis consists of three parts or research topics. These parts might be adapted during the progress of the thesis. 

Each part should result an a journal publication and/or two conference publications. A good strategy is to first publish two short stories (= conference papers of 6-8 pages). Thereafter, the short stories are combined in a larger approach and published as journal paper. 

  1. Plan: planning future actions.
    Open research question: How can biologically inspired neural networks plan complex actions in few milliseconds?
  2. Act: Executing the actions. 
    Open research question: How can closed-loop controller be learned or generated from high-level plans?
  3. Sense: Sensing the environment and monitoring the execution. 
    Open research question: How to monitor the execution of neural closed-loop controller and to apply corrective actions in real-time?

Defining a Short Research Story

  1. Start by collecting the relevant related work to your research question. 
  2. Define an open unsolved problem and why it is relevant to the community. 
  3. Create measurable scores or goals how a solution to this open problem could be validated. 
  4. Also define 1-3 baseline algorithms or approaches which you will (re-)implement first. 
  5. Think about a toy task to demonstrate the principles. Typically, toy task simulations of point masses, simple 2D games or robot simulations in V-Rep are useful first case studies.
  6. Develop a relevant experimental setting to evaluate your approach. 
  7. Compute statistically significant statistics. Print Tables and Figures.
  8. Start by writing the results section of you paper. Describe the Tables and Figures first. Is your research question answered? 
  9. Continue with the methods section. Did you define a problem statement? Are your baseline approaches explained?
  10. Structure the collected related work and add it as subsection to the introduction.
  11. For the introduction, first write 1-3 sentences on the topic and the relevance. Next talk about the open problem and discuss the related work. Explicitly discuss your idea, own prior work and your contribution. 
  12. Write an abstract and a conclusion. 
 

PhD Thesis Goals and Achievements

.tg {border-collapse:collapse;border-color:#9ABAD9;border-spacing:0;} .tg td{background-color:#EBF5FF;border-color:#9ABAD9;border-style:solid;border-width:1px;color:#444; font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:10px 5px;word-break:normal;} .tg th{background-color:#409cff;border-color:#9ABAD9;border-style:solid;border-width:1px;color:#fff; font-family:Arial, sans-serif;font-size:14px;font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;} .tg .tg-0lax{text-align:left;vertical-align:top}
Item Goal Accepted or
Achieved
Under review or
in Progress
Note
Journal Paper 2 - 3 min 1 accepted & 1 submitted
Conference Paper 4 - 8 min 2 accepted & 2 submitted
Workshop Paper or
Abstracts
2 - 4
Live Demo 1 - 2 min 1 own demo
Patents 0 - 2 a patent can replace a journal paper!
Conference Paper Review 8 - 24 number of reviewed papers, not conferences.
Journal Paper Review 2 - 6
B.Sc. Thesis 4 - 12
B.Sc. Project 4 - 12
M.Sc. Thesis / M.Sc. Project 3 - 6
Teaching assistant of exercises 2 semester. It can be the same exercise.
Guest lectures 0 - 4
Conference and Lab Talks 6 - 12
Research or
Industrial Collaborations
1 - 3
Summer Schools 1 - 2
Lab Stays at other Universities
for 1 - 3 weeks
0 - 2
Internship of 2 - 3 months 0 - 1
Soft Skill Training 2 - 6
Outreach (lab demos,
school events, fairs, etc.)
4 - 12
Contribution to a research
grant proposal
0 - 3 typically few paragraphs only.
Student or hiring committee
member
0 - 2

Checklist New Employee

Congratulations! You are now part of the CPS team. 

This post will help you setting up your work environment, getting ready to start as scientist and provides helpful instructions at the beginning. 

Organisation Things to Do

If you have not looked at our organisational instructions, do it right now! 

These steps are of utter importance. Your official start and when you get your first salary depend on these steps.

First Technical Steps


  • Read the How to Add Posts Instructions.
  • Update your People Post on our CPS wordpress site.
  • Create a Gmail account if you do not have one already. Send your gmail email to the Chair.
  • Create a Google Calendar with the name: CPS First Name Last Name, e.g., CPS Elmar Rueckert

First Scientific Steps

Clone the PhD Roadmap post and add it as link to your people page post. Follow the instructions there, define topics and research questions. Remove unnecessary parts like the section on ‘Defining a Short Research Story’.

Checklist New Employee for Admins

When a new employee starts at the Chair of CPS, a number of things needs to be done by the Chair, the secretary and the technician. 

Just before the new employee starts

Items to be done at the first day at work

Items to be done after the Work Contract was signed

Welcome to Leoben for Researcher

Welcome Guide

Have a look at our detailed welcome guide.

Please prepare all necessary documents (e.g., Bachelor & Master certificates) to enrole as student at the MU Leoben.

Note that as PhD you need to attend some courses, seminars, etc. which requires this official registration as student.

All information below is relevant for new PhD students and post docs.

For guest researcher, please visit the site of our international department.

Organisational Steps before you arrive

For EU & Swiss Citizens: 

  • Get familiar with our Webpage and with the team.
  • Get in contact with our secretary.

For Non-EU or Swiss Citizens: 

  • Get a Visa D for gainful employment (germ. VISUM D Erwerb) at an Austrian embassy. 
    Note that without that visa, it may take up to two months until you can sign your work contract, get an health insurance and, most importantly, get your first salary. 
  • With the Visa D for gainful employment, cou can immediately start to work and will have up to six month to get the Austrian residence permit at the local headquarters district (see below).
  • Also all points like for EU & Swiss citizens.   

Organisational Steps after your Arrival

There are a few very important things you need to do after you arrived. Please update the information if it is outdated. 

1. Get a Certificate of Registration from your Landlord


Once you signed the contract for your room or flat in Austria, you get a Certificate of Registration (germ. Meldebestätigung). An example is shown in the Figure on the left. If you did not get such a certificate, contact your landlord. 

 

2. Get a Registration Form from the City Hall

You need to go to the city hall (germ. Stadtgemeinde Leoben) to register your new main residence.  You will receive a Registration form (germ. Meldebestätigung). An example is shown in the left panel.

3. VISA or Residence Permit for Researcher

  • As European, you need to contact the district headquarters within 4 months after your arrival. Her is some description.
  • As Non-European researcher you can apply for a Residence Permit for Researcher. Sadly, the government’s information page is only in german. Below we outline the necessary steps for Non-Europeans. 

4. Get in contact via Email with the District Headquarters

To get a residence permit, you need to get in contact with the district headquarters Leoben (DH). Send them an Email or call them. The district headquarters will need from you: 

  1. A copy of your passport.
  2. Your Work contract.
  3. Your Registration form.

Once you send all your files to the DH, they will send you an appointment date via email. 

5. Documents required from Non-EU applicants

Find all important information on the page of the government

In order to obtain a residence permit, you need to contact the Bezirkshauptmannschaft Leoben. Send them an email or call them. The best way is to call them and inform them about your visa status. They will send you and appointment and you will need to submit the following documents:

  1. Completed and signed application form
  2. Copy of valid travel document
  3. Birth certificate (with translation)
  4. Proof of criminal record from the place of your residence (with translation). Note in some cases also records from your home country are needed!
  5. Current passport photo in the size of 3,5 x 4,5 cm (not older than 6 months)
  6. City Registration certificate
  7. Proof of legal entitlement to accommodation in Austria: e.g. rental contract, housing rights agreement.
  8. Proof of health insurance valid in Austria (probably only possible after starting work)
  9. Original admission agreement with the University of Leoben
  10. Original employment contract with the University of Leoben

6. Send all your Files to Mrs. Hotter

Mrs. Hotter of the Montanuniversität Leoben is responsible for new employees. Send her your files asap. 

Intrinsic Motivation Learning in Stochastic Neural Networks

Video

Link to the file

You may use this video for research and teaching purposes. Please cite the Chair of Cyber-Physical-Systems or the corresponding research paper. 

Publications

2019

Tanneberg, Daniel; Peters, Jan; Rueckert, Elmar

Intrinsic Motivation and Mental Replay enable Efficient Online Adaptation in Stochastic Recurrent Networks Journal Article

In: Neural Networks – Elsevier, vol. 109, pp. 67-80, 2019, ISBN: 0893-6080, (Impact Factor of 7.197 (2017)).

Links | BibTeX

Intrinsic Motivation and Mental Replay enable Efficient Online Adaptation in Stochastic Recurrent Networks

2017

Tanneberg, Daniel; Peters, Jan; Rueckert, Elmar

Efficient Online Adaptation with Stochastic Recurrent Neural Networks Proceedings Article

In: Proceedings of the International Conference on Humanoid Robots (HUMANOIDS), 2017.

Links | BibTeX

Efficient Online Adaptation with Stochastic Recurrent Neural Networks

Tanneberg, Daniel; Peters, Jan; Rueckert, Elmar

Online Learning with Stochastic Recurrent Neural Networks using Intrinsic Motivation Signals Proceedings Article

In: Proceedings of the Conference on Robot Learning (CoRL), 2017.

Links | BibTeX

Online Learning with Stochastic Recurrent Neural Networks using Intrinsic Motivation Signals

150.570 Seminar Bachelor Work – Industrial Data Science (5SH SE, WS & SS)

You are interested in working with modern robots or want to understand how such machines ‘learn’?

If so, this bachelor thesis will enable you to dig into the fascinating world of robot learning. You will implement and apply modern machine learning algorithms in Python, Matlab or C++/ROS. 

Your learning or control algorithm will be evaluated in cyber-physical-systems. Find out which theses are currently supervised and offered

 

Links and Resources

Location & Time

Learning objectives / qualifications

  • Students will work on controlling, modeling and simulating Cyber-Physical-Systems and autonomously learning systems.
  • Students understand and can apply advanced model learning and reinforcement  techniques to real world problems.
  • Students learn how to write scientific reports.

Literature

  • The Probabilistic Machine Learning book by Univ.-Prof. Dr. Elmar Rueckert. 
  • Bishop 2006. Pattern Recognition and Machine Learning, Springer. 
  • Barber 2007. Bayesian Reasoning and Machine Learning, Cambridge University Press
  • Murray, Li and Sastry 1994. A mathematical introduction to robotic manipulation, CRC Press. 
  • B. Siciliano, L. Sciavicco 2009. Robotics: Modelling,Planning and Control, Springer.
  • Kevin M. Lynch and Frank C. Park 2017. MODERN ROBOTICS, MECHANICS, PLANNING, AND CONTROL, Cambridge University Press.

150.510 Industrial Data Science Projekt (8SH SE, SS)

You are interested in working with modern robots or want to understand how such machines ‘learn’?

If so, this project will enable you to dig into the fascinating world of robot learning.

The course provides a structured and well motivated overview over modern techniques and tools which enable the students to define learning problems in Cyber-Physical-Systems. 

Links and Resources

Location & Time

Learning objectives / qualifications

  • Students get a practical experience in working, modeling and simulating Cyber-Physical-Systems.
  • Students understand and can apply advanced model learning and reinforcement  techniques to real world problems.
  • Students learn how to write scientific reports.

Literature

  • The Probabilistic Machine Learning book by Univ.-Prof. Dr. Elmar Rueckert. 
  • Bishop 2006. Pattern Recognition and Machine Learning, Springer. 
  • Barber 2007. Bayesian Reasoning and Machine Learning, Cambridge University Press
  • Murray, Li and Sastry 1994. A mathematical introduction to robotic manipulation, CRC Press. 
  • B. Siciliano, L. Sciavicco 2009. Robotics: Modelling,Planning and Control, Springer.
  • Kevin M. Lynch and Frank C. Park 2017. MODERN ROBOTICS, MECHANICS, PLANNING, AND CONTROL, Cambridge University Press.