← 図鑑 / Gallery解説 / About →

グレイ・ウォルターの亀

Grey Walter's Tortoise

光センサー1つと接触センサー1つ、ごく簡単な規則だけで、探索し、光に近づき、障害物をよけ、電池が減ると小屋へ帰ります。

One light sensor, one touch sensor and a few simple rules: it explores, approaches light, avoids obstacles, and returns to its hutch when the battery runs low.

シナリオ / Scenario

亀のようす / Status

亀1 / Tortoise 1亀2 / Tortoise 2

左上に、いまの状態・光の強さ・電池が出ます。
The top-left readout shows the current state, light level and battery.

感覚と動き / Senses & motion

値を変えて、動き方の変化を見てみましょう。0にすると電池は減りません。
Change the values and watch how the behavior shifts. At 0 the battery never drains.

表示と速度 / View & speed

道具 / Tools

光・岩・小屋・亀は、ドラッグで動かせます。
Drag lamps, rocks, the hutch and the tortoises to move them.

仕組み / How it works

光センサーは前を向いた細い視野で光を見ます。暗いと、ハンドルを回し続けて探索。ちょうどよい明るさだと、ハンドルを止めて全速で近づく。まぶしすぎると、また回って避ける。ぶつかると、さがって向きを変える。電池が減ると「まぶしさ」を感じにくくなり、明るい小屋に入って充電します。
The light sensor looks through a narrow forward view. In the dark it keeps turning its steering to scan. In moderate light it holds the steering and approaches at full speed. In glare it turns away again. On contact it backs off and turns. As its battery drains it stops minding glare, enters the bright hutch and recharges.

hamzWorkerz — Grey Walter's Tortoise · Privacy