io.github.srs.model.entity.dynamicentity.behavior.behaviors
Members list
Type members
Classlikes
A Behavior that always makes the entity move forward.
A Behavior that always makes the entity move forward.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
A Behavior that avoid obstacles using proximity sensor readings.
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
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
A behavior that moves towards the strongest light source based on light sensor readings.
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
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PhototaxisBehavior.type
A behavior that prioritizes obstacle avoidance, then phototaxis, then random walk.
A behavior that prioritizes obstacle avoidance, then phototaxis, then random walk.
If an obstacle is too close, it will avoid it. If there is light detected, it will move towards it. If neither of those conditions is met, it will perform a random walk.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PrioritizedBehavior.type
A Behavior that makes the entity perform a random walk.
A Behavior that makes the entity perform a random walk.
It randomly selects speeds for the left and right wheels, with a bias towards forward movement. Occasionally, it may perform a pivot turn to change a direction more sharply.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RandomWalkBehavior.type