Is there any way you can get information from the simulation into python, and the other way? Specifically I'm looking for a way of resetting and restarting the track through python automatically, and if possible, measure how far the car had travelled on the track.
Unfortunately the only communication between the Python code and the simulator is for:
There is no mechanism currently to configure the simulator or to gather additional data unavailable to the MonsterBorg from the Python code.
If you are familiar with Java then you could attempt to extend the simulator so that extra control / data is available to the scripts. The class which handles all of the network data is
RTSPStreamer
. The simulator code was written by computernerd486 and is freely available on his GitHub here.Appreciate the quick answer and links. I've managed to get a very rough interface going now. Much obliged
Appreciate the quick answer and links. I've managed to get a very rough interface going now. Much obliged
Add new comment