Drive a given path: Difference between revisions

From wikiluntti
(Created page with "=== Introduction === === Robot === === Sensors === === Example Videos === === Theory === === Example Code === === Exercises === This course is supported by [https://...")
 
No edit summary
Line 1: Line 1:
=== Introduction ===
=== Introduction ===
The robot should drive the path given in advance. The path can be of any shape, but some simple paths are preferred, as the robot will eventually fail due to the tolerance. The paths given here are ''an obstacle'' and ''baseball field'', also encircling the obstacles.


=== Robot ===
=== Robot ===
Almost any robot will do. This example is done with Asimov 2/ Verne.


=== Sensors ===
=== Sensors ===
No sensors is used.


=== Example Videos ===
=== Example Videos ===


=== Theory ===
=== Theory ===
Encircling one obstacle is rather easy, and can be done using only one programming block. However, more speed and accuracy is gained by using more programming blocks.
Encircling the baseball field is more advanced, but still rather easy job to do.
[[File:EncircleObstacles.svg|thumb]]


=== Example Code ===
=== Example Code ===
Line 13: Line 27:
=== Exercises ===
=== Exercises ===


* Clock the time and try to get fastest possible time.
* Measure the difference between the starting point and ending point.
* Make N (e.g. five) laps around the obstacle. Measure the (i) time or (ii) distance between starting and ending points.





Revision as of 21:15, 4 September 2020

Introduction

The robot should drive the path given in advance. The path can be of any shape, but some simple paths are preferred, as the robot will eventually fail due to the tolerance. The paths given here are an obstacle and baseball field, also encircling the obstacles.


Robot

Almost any robot will do. This example is done with Asimov 2/ Verne.

Sensors

No sensors is used.

Example Videos

Theory

Encircling one obstacle is rather easy, and can be done using only one programming block. However, more speed and accuracy is gained by using more programming blocks.

Encircling the baseball field is more advanced, but still rather easy job to do.

File:EncircleObstacles.svg


Example Code

Exercises

  • Clock the time and try to get fastest possible time.
  • Measure the difference between the starting point and ending point.
  • Make N (e.g. five) laps around the obstacle. Measure the (i) time or (ii) distance between starting and ending points.


This course is supported by Meet and Code. The course is made in collaboration with Robotiikka- ja tiedekasvatus ry.