Class SimulatedRobot
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
dtfloatThe seconds each command advances it.
startPoseWhere 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
Methods
ApplyAsync(Twist)
Drives the robot for one time step.
public Task ApplyAsync(Twist command)
Parameters
commandTwistThe speeds to hold for one step.
Returns
Exceptions
- PamojaException
The native call failed.
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()