CSharpSlam.RobotControl.SetSimulationState C# (CSharp) Метод

SetSimulationState() публичный Метод

Starts, stops or resets the V-REP EDU simulation according to the given command.
public SetSimulationState ( SimulationCommand command ) : void
command SimulationCommand The given command.
Результат void
        public void SetSimulationState(SimulationCommand command)
        {
            switch (command)
            {
                case SimulationCommand.Stop:
                    StopSimulation();
                    break;
                case SimulationCommand.Start:
                    StartSimulation();
                    break;
                case SimulationCommand.Reset:
                    //StopSimulation();
                    VREPWrapper.simxStopSimulation(_clientId, simx_opmode.oneshot_wait);
                    Thread.Sleep(400);
                    //StartSimulation();
                    VREPWrapper.simxStartSimulation(_clientId, simx_opmode.oneshot_wait);
                    break;
            }
        }