Robot

io.github.srs.model.entity.dynamicentity.robot.Robot
See theRobot companion object
final case class Robot(id: UUID = ..., position: Point2D = ..., shape: Circle = ..., orientation: Orientation = ..., actuators: Seq[Actuator[Robot]] = ..., sensors: Vector[Sensor[Robot, Environment]] = ..., behavior: Policy = ...) extends DynamicEntity

A Robot is an autonomous dynamic entity: its movement decisions are produced sensors and invokes the policy to produce an Action, which is then translated into motion via the differential wheel actuator.

Value parameters

actuators

the actuators attached to the robot, enabling it to interact with its environment. Defaults to DefaultActuators.

behavior

the behavior policy defining the robot's actions based on contextual information. Defaults to DefaultPolicy.

id

the unique identifier of the robot. Defaults to a random UUID.

orientation

the current orientation of the robot in degrees. Defaults to DefaultOrientation.

position

the current position of the robot in a two-dimensional space. Defaults to DefaultPosition.

sensors

the sensors equipped on the robot, allowing it to sense the environment. Defaults to DefaultSensors.

shape

the geometric shape of the robot. Defaults to DefaultShape.

Attributes

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

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product