DifferentialWheelMotor

io.github.srs.model.entity.dynamicentity.actuator.DifferentialWheelMotor
See theDifferentialWheelMotor companion object

WheelMotor is an actuator that controls the movement of a robot.

Attributes

Companion
object
Graph
Supertypes
trait Actuator[Robot]
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def left: Wheel

The left wheel of the motor.

The left wheel of the motor.

Attributes

Returns

the left wheel.

def right: Wheel

The right wheel of the motor.

The right wheel of the motor.

Attributes

Returns

the right wheel.

Inherited and Abstract methods

def act[F[_] : Monad](dt: FiniteDuration, entity: Robot): F[Robot]

Performs an action on the entity after a specified duration.

Performs an action on the entity after a specified duration.

Type parameters

F

the effect type in which the action is performed, a Monad.

Value parameters

dt

the duration after which the action is performed.

entity

the dynamic entity on which the action is performed.

Attributes

Returns

the updated entity after the action is performed.

Inherited from:
Actuator