Go to Post Remember, FIRST is merely a means to an end - the end result being that we completely change the world for the better. - RogerR [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-01-2015, 15:40
eddie12390's Avatar
eddie12390 eddie12390 is offline
Registered User
AKA: Eddie
FRC #3260 (SHARP)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Pittsburgh
Posts: 285
eddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of light
Re: Anybody had any luck with FRCSim?

There are a bunch of dependency issues with Utopic. You can correctly get the information about the packages by forcing it to use the Trusty repositories but you'll be unable to get the required libraries without some wizardry. It's easier to just install 14.04. This is due to the fact that Gazebo (the engine that powers FRCSim) has not been updated to work with 14.10.
__________________
Any post that I make expresses only my opinions. I do not represent the opinions of my team or of any entity affiliated with my team.

As a Mentor:
2016 - Engineering Inspiration at Greater Pittsburgh Regional

As a Driver:
2014 - Winner of Greater Pittsburgh Regional

Last edited by eddie12390 : 18-01-2015 at 15:44.
Reply With Quote
  #2   Spotlight this post!  
Unread 21-01-2015, 20:53
t.estell t.estell is offline
Registered User
FRC #3748
 
Join Date: Jan 2015
Location: Columbia, MD
Posts: 2
t.estell is an unknown quantity at this point
Re: Anybody had any luck with FRCSim?

I started with a clean install of Ubuntu 14.04 on an older Intel i5 laptop with 4G of RAM. The total install with the simulator requires about 8G on the hard drive. After completing the install I fetched all the updates and verified the system was stable.

Add the Oracle Java 8 and the FRC toolchain to the default repositories then install.
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo add-apt-repository ppa:byteit101/frc-toolchain
$ sudo apt update
$ sudo apt install frc-toolchain oracle-java8-installer oracle-java8-set-default libc6-i386 python-webkit

Note we add libc6-i386 and python-webkit to resolve missing packages required for the next step.

Download the latest Eclipse CDT from their site. Uncompress and move to home.
$ tar xzf eclipse-cpp-luna-SR1a-linux-gtk-x86_64.tar.gz
$ mv eclipse ~
$ cd ~
$ ./eclipse/eclipse

Follow the instructions from WPI to set up both the Java and the C environments. Verify this all works by building one of the sample Java and C projects.

Now follow the instructions for installing FRCSim. Note this installs an older version of eclipse and openjdk7. To ensure Oracle Java8 is still the default, execute:
$ sudo update-java-alternatives -s java-8-oracle

Start eclipse Luna (not the older version which was just installed).

Create the Java sample project for GearsBot and run the simulator. The first time it will fail so close the simulator, wait for everything to exit, then run the simulator again. The first time there are a lot of resources being created and a race condition causes failures.

Create the CPP sample project for the GearsBot and run the simulator. This will
fail to start the driver station because it can't find SimDS.jar.

Edit the file build.properties and change the wpilib.sim entry.
The old entry was: wpilib.sim=${wpilib}/sim
Change this to: wpilib.sim=${user.home}/wpilib/cpp/current/sim

Now the CPP sample should run in the simulator.

Hope this works for you and that the developers of this great resource keep improving it during the season! Can't wait to build our own bot in this simulator.
Reply With Quote
Reply


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 23:00.

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