ObstacleAvoidanceBehavior

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

A Behavior that avoid obstacles using proximity sensor readings.

The behavior operates in three phases:

  • Free: No obstacles detected, the robot moves forward at cruise speed.
  • Warn: Obstacles detected but not critical, the robot slows down and steers away from the closest obstacle.
  • Blocked: Obstacles detected at a critical distance, the robot performs a pivot turn

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 obstacle avoidance behavior.

The decision function for the obstacle avoidance behavior.

Type parameters

F

The effect type.

Attributes

Returns

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