-
Notifications
You must be signed in to change notification settings - Fork 10
Using the Car Simulator Control CLI
1. Download the Car-Simulator Control CLI from here.
To detect CarSim in your network simply use the carsimCLI.jar with the argument discover.
java -jar .\carsimCLI.jar discover
The discovered simulators will be listedwith their IP Address and Version. To use the other options of the CLI you'll need this IP address.
With the CarSim Control CLI you easily transfer lua files from your computer to the car simulator. Therefore, you just have to use the transfer command.
java -jar .\carsimCLI.jar transfer hostname path
The hostname will be the IP Address of the Simulator, which can be discovered with the step described previously.
The path will be your new LUA's path on your local machine.
After the file has successfully been transfered. The Simulationserver on the raspberry will restart and load the freshly transferred LUA.
To delete Lua files from the simulator you can use the delete option of the CLI.
java -jar .\carsimCLI.jar execute hostname delete filename
You can also delete all Lua files at once by using the parameter all as filename.
java -jar .\carsimCLI.jar execute hostname delete all
You can also manually start and restart the simulation server by using:
java -jar .\carsimCLI.jar execute hostname start
or
java -jar .\carsimCLI.jar execute hostname restart
To shut down the serer manually use:
java -jar .\carsimCLI.jar execute hostname kill