One of the things that has set RobotPy apart in the past from Java/C++ is that we had a simulator and in particular we could drive a robot on a virtual field. Unfortunately, we’ve had to do without that this season because we’re using WPILibC this year.
Here’s how you do it:
- First, make sure you grab the latest version of robotpy-halsim-gui
- Second, grab the example at https://github.com/robotpy/examples/tree/master/physics/src
- Finally, when you run the sim make sure to enable the field view
The physics support is quite a hack – but it’s a start!
PS: Java/C++ teams have this too. It’s mildly harder for them to set it up, particularly because the field view hasn’t been officially released yet!