next up previous
Next: Simulator API Up: A Simulator for ACME Previous: Design


Implementation

The simulation code resides in a new package, acme.simulator. The viewer lives in a separate package, acme.simviewer. It is discussed in detail in section 4.

Very few changes were made to the original ACME code in order to integrate it with the simulation. The ConfigManager class received a new method, useSimulation(), which enables the simulation by creating an RcclSimulationServer object. This method has to be called before any device is initialized. To allow the connection to the simulation, two more classes needed slight changes. The first is RcclActuator, which originally connected only to the RCCL server. The second is kinematics.GenericKinematics, which, in simulation mode, uses simulation.RobotInfo instead of server.RobotInfoServer.



Subsections

Tim Wellhausen
2000-01-20