PrettyPrintExtensions

io.github.srs.utils.PrettyPrintExtensions

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Extensions

Extensions

extension (env: Environment)
def prettyPrint: String

Pretty prints all robots in the environment.

Pretty prints all robots in the environment.

Attributes

Returns

a string representation of all robots in the environment.

extension (r: Robot)
def prettyPrint(env: Environment): String

Pretty prints the robot's details including its ID, position, orientation, shape, actuators, and sensor readings.

Pretty prints the robot's details including its ID, position, orientation, shape, actuators, and sensor readings.

Value parameters

env

the environment in which the robot operates, used to get sensor readings.

Attributes

Returns

a formatted string representation of the robot's details.

extension (state: State)
def prettyPrint: String

Pretty prints the simulation state including time, speed, RNG seed, status, and environment details.

Pretty prints the simulation state including time, speed, RNG seed, status, and environment details.

Attributes

Returns

a formatted string representation of the simulation state.