#simulator #json #vex #robot #server #events #v5

app pros-simulator-server

Line-delimited JSON server for pros-simulator

5 releases (3 breaking)

0.5.0 Jan 5, 2024
0.4.0 Dec 21, 2023
0.3.0 Dec 9, 2023
0.1.1 Nov 28, 2023
0.1.0 Nov 28, 2023

#264 in Simulation

48 downloads per month

MIT license

105KB
2K SLoC

PROS Simulator Server

Stream newline-delimited JSON events from pros-simulator with a standalone binary

CI Status MIT License Crates.io

Installation

cargo add pros-simulator-server

Overview

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"

Dependencies

~31–42MB
~667K SLoC