Crates.io | pros-simulator-server |
lib.rs | pros-simulator-server |
version | 0.5.0 |
source | src |
created_at | 2023-11-28 04:41:34.577943 |
updated_at | 2024-01-05 05:44:51.546344 |
description | Line-delimited JSON server for pros-simulator |
homepage | |
repository | https://github.com/pros-rs/pros-simulator |
max_upload_size | |
id | 1051598 |
size | 39,437 |
Stream newline-delimited JSON events from
pros-simulator
with a standalone binary
cargo add pros-simulator-server
This is a standalone server for the VEX V5 robot simulator crate pros-simulator
. It outputs newline-delimited JSON events about what is happening in the simulator.
$ pros-simulator-server my_program_using_pros_api.wasm --stdio
"RobotCodeLoading"
"RobotCodeStarting"
"LcdInitialized"
{"LcdUpdated":["","","","","","","","Hello from simulator!"]}
{"LcdUpdated":["","","","","","","Hello from simulator!","Hello from simulator!"]}
{"LcdUpdated":["","","","","","","Hello from simulator!","Goodbye from simulator!"]}
"RobotCodeFinished"