PhototaxisBehavior

io.github.srs.model.entity.dynamicentity.behavior.behaviors.PhototaxisBehavior

A behavior that moves towards the strongest light source based on light sensor readings.

It calculates the best direction to move towards the light and adjusts its wheel speeds accordingly. If no light is detected, it defaults to moving forward.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def decision[F[_] : Monad]: Decision[F]

The decision function for the phototaxis behavior.

The decision function for the phototaxis behavior.

Type parameters

F

The effect type.

Attributes

Returns

A Decision that computes the action based on light sensor readings.