Go to Post Each match is a learning experiance - the only thing you can do is get better. - SuperJake [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 4.50 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 19-01-2016, 15:44
garystjean garystjean is offline
Registered User
FRC #1991
 
Join Date: Dec 2015
Location: CT
Posts: 7
garystjean is an unknown quantity at this point
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
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:11.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi