Open dbauducco opened 5 years ago
Currently getting past this by commenting these two lines in Robot.java:
drive = new Drive();
navigation = new Navigation();
Windows or Mac? That file is not likely to be a correct shared lib on a mac (I guess they could have named it that, but usually it will end in .so)
Does the simulator support simulating the Talons? If not, we have to code some mock classes to use when running under the simulator.
I'm running Windows.
From what I am hearing around, Simulator is currently not supporting using the Talons. I'm having to make sure that they are never referenced. So far, commenting out those two lines does it for now.
I suggest reading about Mock Objects (https://en.wikipedia.org/wiki/Mock_object) to avoid commenting stuff in and out for simulation. We'll also probably need to do a little with dependency injection that will be similar to dynamically loading robot sub systems. The proper way to perform the mock/dependency injection is through Inversion of Control (https://en.wikipedia.org/wiki/Inversion_of_control).
When running
WPILib: Simulate Robot Code On Desktop
, this error appears: