|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#1
|
|||
|
|||
|
FRCSIM Help
I am trying to get FRCSIM working but I'm having some problems. Here's what I've tried so far:
1) Created a clean Ubuntu 14.04 USB stick and ran the frcsim-installer.sh. This appears to install Open JDK, Eclipse, Gazebo and other related items. I then installed the WPILIB plugin for Eclipse. I can run Gazeo from the command line via the frcsim command. 2) Created an Eclipse project using the WPILIB sample "Tank Drive" 3) I try to run it as "WPILIB Java Simulation" - I get an error (below) in Eclipse saying it can't find the RobotBase class in the libraries. I can see WPILIB.jar is referenced in my Eclipse project and I can see the RobotBase class listed there. This is baffling, because I've created a bootable USB drive last year and I didn't have any problem getting a basic sample to work in FRCSIM. ------------------------------------------------ Buildfile: /home/first1991/workspace/Tank Drive/build.xml Trying to override old definition of task classloader compile: [echo] [athena-compile] Compiling src with classpath=/home/first1991/wpilib/java/current/lib/WPILib.jar:/home/first1991/wpilib/java/current/lib/NetworkTables.jar: to build jar-for-simulation: [echo] [jar-for-simulation] Building jar. [jar] Building jar: /home/first1991/workspace/Tank Drive/dist/FRCUserProgramSim.jar simulate: [echo] [simulate] You may now run Gazebo and your DriverStation [echo] [simulate] Running Code. [java] Error: Could not find or load main class edu.wpi.first.wpilibj.RobotBase [java] Java Result: 1 BUILD SUCCESSFUL Total time: 1 second ------------------------------------------ 4) I had a Java developer here at work take a look. After some analysis he thinks that there is some issue in how the simulation script is referencing the WPILIB.jar library file. He suggested copying WPILIB.jar to ~/wpilib/simulation/jar - when I do this, the error above goes away, however, then I get different errors. 5) As an alternative approach I uninstalled by running frcsim-installer.sh UNINSTALL and went through the manual install steps hoping that would have a better result, but it is the same. 6) Has anyone else had this problem? Are people able to use the latest FRCSIM? It would be really helpful for our developers if we could get FRCSIM working - I see they have the 2016 field available. Thanks for any help -Gary |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|