CollisionDetection

io.github.srs.model.entity.dynamicentity.agent.truncation.CollisionDetection
final case class CollisionDetection() extends TerminationModel[Agent]

Generic termination model for collision detection.

Episode termination (FAILURE) when the agent collides with an obstacle (proximity sensor < threshold). This is reusable for any task where collision indicates failure: phototaxis, obstacle avoidance, navigation, safe exploration, etc.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def evaluate(prev: BaseState, current: BaseState, entity: Agent, action: Action[_[_]]): Boolean

Attributes

Definition Classes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product