Table of Contents

Class SimulatedRobot

Namespace
Pamoja.Sim
Assembly
Pamoja.Sim.dll

A robot that moves only in arithmetic.

public sealed class SimulatedRobot : IDisposable
Inheritance
SimulatedRobot
Implements
Inherited Members

Constructors

SimulatedRobot(float, Pose)

Creates a robot at a starting pose.

public SimulatedRobot(float dt, Pose start = default)

Parameters

dt float

The seconds each command advances it.

start Pose

Where it begins, defaulting to the origin.

Exceptions

PamojaException

The native robot could not be created.

Properties

Pose

Gets where the robot has got to.

public Pose Pose { get; }

Property Value

Pose

Methods

ApplyAsync(Twist)

Drives the robot for one time step.

public Task ApplyAsync(Twist command)

Parameters

command Twist

The speeds to hold for one step.

Returns

Task

Exceptions

PamojaException

The native call failed.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()