Anybody had any luck with FRCSim?

I’ve tried using the script they provide (which failed completely, didn’t add the repo or the key), manually adding keys/repos, and running “sudo nano /etc/apt/sources.list”, “sudo apt-get update”, “sudo apt-get install frcsim”, over and over. I’ve gotten to the point where I can see the FRCSim package, but the other few packages in the repo require additional dependencies that “can’t be installed”- has anyone had any luck with FRCSim installation yet? I’m running Ubuntu 14.10 amd64.

One of the members had got it working on his computer; however, it’s pretty memory intensive so as long as you got a decent computer, it should run. No one on our team has had a problem getting the simulator working. Are you using Ubuntu as your main OS, dual booting it, or a virtual machine?

I’m dual booting alongside Windows 7.

It works for me in ubuntu 14.04, the supported version. I would expect that there would be package dependency issues with unsupported versions.

To clarify, did you install it with the guidance of this: For the 2020 season software documentation has been moved to https://docs.wpilib.org. Documentation for KOP items can still be found here. | FRC KOP Documentation

wget first.wpi.edu/FRC/roborio/release/frcsim-installer.sh -O ~/Downloads/frcsim-installer.sh && chmod +x ~/Downloads/frcsim-installer.sh && ~/Downloads/frcsim-installer.sh INSTALLER

Make sure everything is either typed in correctly, or properly installed. Also, I’m unsure if this will help or not, make sure you are in the root when you’re installing things (That’s like being an Administrator on a Windows machine).

For the meantime, I suggest deleting/uninstalling everything you’ve tried to download and retry it using the command in the terminal. The article also states them using Ubuntu 14.04 instead of the 14.10 version you’re using; however, I believe it should work the same way, I’m just identifying the different variables.

Make sure you download the ubuntu-14.04-desktop-amd64.iso

I’ll also contact the person who got it working and see what he says. He’s probably asleep right now; however, I could probably get you an answer tomorrow.

EDIT: I didn’t see until after I posted that Joe Ross suggested the same Ubuntu version mismatch. I suggest you try changing your version and see if that works.

Ubuntu is primarily my daily-driver OS, so at this point a reinstall rollback isn’t really an option.

I am using the script/command mentioned above, running as root (I’ve been using Linux for a while ^_^) If it really is a mere thing of trusty vs utopic then that really sucks, but I’d be willing just to set up a VM just for Trusty so I can do some debugging of this code, thanks though

I was able to get it to work on OSX, with Java and python controlling it. It definitely takes a lot of CPU.

When I ran it on my Fedora desktop, it actually ran the CPU up so high that the temperature warning started beeping after a minute of running it. Probably should buy a better fan…

I was going to write+release a homebrew tap for it, but I don’t really feel its worth the effort since we don’t have a 2015 model to use right now, and in python our low fidelity simulator is better for testing than gazebo is.

I am also having issues downloading FRCSim. I am using Ubuntu 14.04, and this is what I get when trying to download through the terminal:

--2015-01-18 11:08:44--  http://packages.osrfoundation.org/gazebo.key
Resolving packages.osrfoundation.org (packages.osrfoundation.org)... 50.18.255.224
Connecting to packages.osrfoundation.org (packages.osrfoundation.org)|50.18.255.224|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1205 (1.2K) [application/pgp-keys]
Saving to: ‘STDOUT’

100%======================================>] 1,205       --.-K/s   in 0.08s   

2015-01-18 11:08:45 (14.3 KB/s) - written to stdout [1205/1205]

OK
--2015-01-18 11:08:45--  http://first.wpi.edu/FRC/roborio/wpilib.gpg.key
Resolving first.wpi.edu (first.wpi.edu)... 130.215.36.26
Connecting to first.wpi.edu (first.wpi.edu)|130.215.36.26|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3083 (3.0K) [text/plain]
Saving to: ‘STDOUT’

100%======================================>] 3,083       --.-K/s   in 0.07s   

2015-01-18 11:08:45 (42.0 KB/s) - written to stdout [3083/3083]

OK
Hit http://first.wpi.edu trusty InRelease
Hit http://packages.osrfoundation.org trusty InRelease
Ign http://dl.google.com stable InRelease                                      
Ign http://security.ubuntu.com trusty-security InRelease                       
Hit http://dl.google.com stable Release.gpg                                    
Hit http://packages.osrfoundation.org trusty/main amd64 Packages               
Hit http://first.wpi.edu trusty/main amd64 Packages                            
Ign http://us.archive.ubuntu.com trusty InRelease                              
Hit http://security.ubuntu.com trusty-security Release.gpg                     
Hit http://packages.osrfoundation.org trusty/main i386 Packages                
Hit http://dl.google.com stable Release                                        
Ign http://extras.ubuntu.com trusty InRelease                                  
Ign http://ppa.launchpad.net trusty InRelease                                  
Hit http://first.wpi.edu trusty/main i386 Packages                             
Ign http://us.archive.ubuntu.com trusty-updates InRelease                      
Hit http://security.ubuntu.com trusty-security Release                         
Hit http://dl.google.com stable/main amd64 Packages                            
Ign http://us.archive.ubuntu.com trusty-backports InRelease                    
Hit http://security.ubuntu.com trusty-security/main Sources                    
Hit http://extras.ubuntu.com trusty Release.gpg                                
Ign http://ppa.launchpad.net trusty InRelease                                  
Hit http://dl.google.com stable/main i386 Packages                             
Hit http://us.archive.ubuntu.com trusty Release.gpg                            
Hit http://security.ubuntu.com trusty-security/restricted Sources              
Hit http://extras.ubuntu.com trusty Release                                    
Get:1 http://us.archive.ubuntu.com trusty-updates Release.gpg [933 B]          
Hit http://security.ubuntu.com trusty-security/universe Sources                
Hit http://extras.ubuntu.com trusty/main Sources                               
Ign http://ppa.launchpad.net trusty InRelease                                  
Hit http://us.archive.ubuntu.com trusty-backports Release.gpg                  
Hit http://security.ubuntu.com trusty-security/multiverse Sources              
Hit http://us.archive.ubuntu.com trusty Release                                
Hit http://security.ubuntu.com trusty-security/main amd64 Packages             
Hit http://extras.ubuntu.com trusty/main amd64 Packages                        
Ign http://ppa.launchpad.net trusty Release.gpg                                
Ign http://packages.osrfoundation.org trusty/main Translation-en_US            
Get:2 http://us.archive.ubuntu.com trusty-updates Release [62.0 kB]            
Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages       
Hit http://extras.ubuntu.com trusty/main i386 Packages                         
Ign http://packages.osrfoundation.org trusty/main Translation-en               
Ign http://ppa.launchpad.net trusty Release.gpg                                
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages         
Hit http://us.archive.ubuntu.com trusty-backports Release                      
Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages       
Hit http://ppa.launchpad.net trusty Release.gpg                                
Ign http://first.wpi.edu trusty/main Translation-en_US                         
Hit http://us.archive.ubuntu.com trusty/main Sources                           
Hit http://security.ubuntu.com trusty-security/main i386 Packages              
Ign http://dl.google.com stable/main Translation-en_US                         
Ign http://first.wpi.edu trusty/main Translation-en                            
Ign http://ppa.launchpad.net trusty Release                                    
Hit http://us.archive.ubuntu.com trusty/restricted Sources                     
Ign http://dl.google.com stable/main Translation-en                            
Hit http://security.ubuntu.com trusty-security/restricted i386 Packages        
Hit http://us.archive.ubuntu.com trusty/universe Sources                       
Ign http://ppa.launchpad.net trusty Release                           
Hit http://security.ubuntu.com trusty-security/universe i386 Packages 
Hit http://us.archive.ubuntu.com trusty/multiverse Sources            
Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages
Hit http://ppa.launchpad.net trusty Release                           
Hit http://us.archive.ubuntu.com trusty/main amd64 Packages                    
Hit http://security.ubuntu.com trusty-security/main Translation-en             
Hit http://us.archive.ubuntu.com trusty/restricted amd64 Packages     
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty/universe amd64 Packages       
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty/multiverse amd64 Packages     
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Hit http://us.archive.ubuntu.com trusty/main i386 Packages            
Hit http://us.archive.ubuntu.com trusty/restricted i386 Packages      
Ign http://extras.ubuntu.com trusty/main Translation-en_US
Hit http://us.archive.ubuntu.com trusty/universe i386 Packages
Ign http://extras.ubuntu.com trusty/main Translation-en
Hit http://us.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty/main Translation-en
Hit http://us.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://us.archive.ubuntu.com trusty/restricted Translation-en              
Hit http://ppa.launchpad.net trusty/main Translation-en                        
Hit http://us.archive.ubuntu.com trusty/universe Translation-en                
Get:3 http://us.archive.ubuntu.com trusty-updates/main Sources [155 kB]        
Get:4 http://us.archive.ubuntu.com trusty-updates/restricted Sources [2,061 B] 
Get:5 http://us.archive.ubuntu.com trusty-updates/universe Sources [97.6 kB]   
Get:6 http://us.archive.ubuntu.com trusty-updates/multiverse Sources [3,550 B] 
Get:7 http://us.archive.ubuntu.com trusty-updates/main amd64 Packages [398 kB] 
Get:8 http://us.archive.ubuntu.com trusty-updates/restricted amd64 Packages [8,875 B]
Get:9 http://us.archive.ubuntu.com trusty-updates/universe amd64 Packages [239 kB]
Get:10 http://us.archive.ubuntu.com trusty-updates/multiverse amd64 Packages [9,373 B]
Get:11 http://us.archive.ubuntu.com trusty-updates/main i386 Packages [390 kB] 
Err http://ppa.launchpad.net trusty/main amd64 Packages                        
  404  Not Found
Err http://ppa.launchpad.net trusty/main i386 Packages                         
  404  Not Found
Ign http://ppa.launchpad.net trusty/main Translation-en_US                     
Ign http://ppa.launchpad.net trusty/main Translation-en                        
Err http://ppa.launchpad.net trusty/main amd64 Packages                        
  404  Not Found
Err http://ppa.launchpad.net trusty/main i386 Packages                         
  404  Not Found
Ign http://ppa.launchpad.net trusty/main Translation-en_US                     
Ign http://ppa.launchpad.net trusty/main Translation-en                        
Get:12 http://us.archive.ubuntu.com trusty-updates/restricted i386 Packages [8,846 B]
Get:13 http://us.archive.ubuntu.com trusty-updates/universe i386 Packages [240 kB]
Get:14 http://us.archive.ubuntu.com trusty-updates/multiverse i386 Packages [9,567 B]
Hit http://us.archive.ubuntu.com trusty-updates/main Translation-en            
Hit http://us.archive.ubuntu.com trusty-updates/multiverse Translation-en      
Hit http://us.archive.ubuntu.com trusty-updates/restricted Translation-en      
Hit http://us.archive.ubuntu.com trusty-updates/universe Translation-en        
Hit http://us.archive.ubuntu.com trusty-backports/main Sources                 
Hit http://us.archive.ubuntu.com trusty-backports/restricted Sources           
Hit http://us.archive.ubuntu.com trusty-backports/universe Sources             
Hit http://us.archive.ubuntu.com trusty-backports/multiverse Sources           
Hit http://us.archive.ubuntu.com trusty-backports/main amd64 Packages          
Hit http://us.archive.ubuntu.com trusty-backports/restricted amd64 Packages    
Hit http://us.archive.ubuntu.com trusty-backports/universe amd64 Packages      
Hit http://us.archive.ubuntu.com trusty-backports/multiverse amd64 Packages    
Hit http://us.archive.ubuntu.com trusty-backports/main i386 Packages           
Hit http://us.archive.ubuntu.com trusty-backports/restricted i386 Packages     
Hit http://us.archive.ubuntu.com trusty-backports/universe i386 Packages       
Hit http://us.archive.ubuntu.com trusty-backports/multiverse i386 Packages     
Hit http://us.archive.ubuntu.com trusty-backports/main Translation-en          
Hit http://us.archive.ubuntu.com trusty-backports/multiverse Translation-en    
Hit http://us.archive.ubuntu.com trusty-backports/restricted Translation-en    
Hit http://us.archive.ubuntu.com trusty-backports/universe Translation-en      
Ign http://us.archive.ubuntu.com trusty/main Translation-en_US                 
Ign http://us.archive.ubuntu.com trusty/multiverse Translation-en_US           
Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US           
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US             
Fetched 1,625 kB in 34s (46.9 kB/s)                                            
W: Failed to fetch http://ppa.launchpad.net/gijzelaar/cuda/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/gijzelaar/cuda/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/gijzelaar/opencv2.3/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/gijzelaar/opencv2.3/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
*** Could not resynchronize package index files.
*** Are you running another update or install?
Installation Failed (Hit enter to exit) 

Any help would be appreciated.

The items it can’t download are unrelated to frcsim, probably something you installed a long time ago. You could either fix your sources.list to only have valid entries, or modify the install script to ignore the update failure.

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.

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.

I had the same error message as you. After the script crashed, I was able to manually install the packages that it said failed, and then run “sudo apt-get install frcsim”.

So for example, in my case, I got the error “W: Failed to fetch http://download.mono-project.com/repo/debian/dists/trusty/main/binary-amd64/Packages 404 Not Found [IP: 54.230.38.37 80]”

This error means that it couldn’t install mono on my computer, so I did a bit of googling and found out that I could install mono by running “sudo apt-get install mono-complete”

After I installed mono manually, I was able to run “sudo apt-get install frcsim” to finish the installation (note that running the install script again wont work, even after you manually install missing packages, because it will still crash with the same error)

I am about to try OSX. Got any advice? Will El Capitan be a danger or a virtue? I have not made the leap yet.
TIA,
Tim

I have spent some time in the last week installing FRCSIM. However, my first many attempts failed. I got everything installed and compiled, but no matter what I ran, Gazebo would quit after a couple of seconds.

Turns out that it was because of the computer’s graphics chip. It was an onboard Intel chip (somewhat old) which I guess Gazebo does not like. I moved the hard drive over to a box with a GeForce card and it ran with no problems.

As a hint, the way I figured this out was to run gzclient in the debugger. First, start “gzserver”. Then “gdb gzclient” and do “run <worldfile>” where “<worldfile>” is one of the premade worlds from Gazebo. gzclient crashed but the traceback indicated it was in a “glx” routine (which is related to the graphics accelerator).

I will post some other hints next.

I managed to install FRCSIM in the last few days, and thought I would post some hints.

I am using Linux Mint 17.02 instead of Ubuntu 14.04. Mint 17 is based on Ubuntu 14.04 so it should be compatible, but I find the standard Cinnamon interface much more usable. So far, no problems.

I generally followed the instructions of t.estell above, comment #11.

When you go to compile a C++ model, you may get an error because it can’t find the include file for sdformat (sdf.h? might have that wrong). The problem is that the project has the include path set to “/usr/include/sdformat-2.2”, but version 2.3 is now installed. To fix it, right click on the project -> Properties. In that dialog go to C/C++ Build -> Settings, tab Tool Settings -> Includes. Select the sdformat entry and edit it to point to 2.3.

I did find that the simulation did not work the first 1-2 times, but seems to be fine after that.

I have not tried a real controller yet, but my computer is probably too slow to really drive the bot around :frowning:

Yes, I have it working on my native Ubuntu 14.04 workstation and in Virtualbox + VMware Player. PM me and I will give a link to OVA I keep on mega. I’m open to ideas on how to share the VM though since its a pretty sizeable download.

It works pretty well in VMWare Player but not usuable in Virtualbox. My workstation runs at full speed but its got 16gigs of ram and nvidia 750Ti… beats the pants off my laptop.

I am working with the 2016 release of everything and I am getting this error when running the simulator:

[Err] [Plugin.hh:165] Failed to load plugin /home/robosim/wpilib/simulation/plugins/libclock.so: libboost_system.so.1.54.0: cannot open shared object file: No such file or directory
[Err] [Plugin.hh:165] Failed to load plugin /home/robosim/wpilib/simulation/plugins/libdc_motor.so: libprotobuf.so.8: cannot open shared object file: No such file or directory
[Err] [Plugin.hh:165] Failed to load plugin /home/robosim/wpilib/simulation/plugins/libdc_motor.so: libprotobuf.so.8: cannot open shared object file: No such file or directory
[Err] [Plugin.hh:165] Failed to load plugin /home/robosim/wpilib/simulation/plugins/libdc_motor.so: libprotobuf.so.8: cannot open shared object file: No such file or directory
[Err] [Plugin.hh:165] Failed to load plugin /home/robosim/wpilib/simulation/plugins/libdc_motor.so: libprotobuf.so.8: cannot open shared object file: No such file or directory
[Err] Plugin.h

I have verified that the location and file exists

Has anyone else encountered and overcome this?

Hey everyone, FRCSim maintainer here…

A few issues to address:
if your C++ code doesn’t compile do follow the instructions prensing posted. This can happen if you install a version of Gazebo we didn’t anticipate. This will happen on other versions of Ubuntu. It’s an easy fix, just right click on the project and go to C++ Settings > includes > and change the sdf or gazebo folder to the one on your computer.

If you get those errors about boost, that tells me you’re using a version of Ubuntu other than 14.04…
I know we said this would work, but the issue here is dependencies. You’ll need to install libprotobuf-8 and boost 1.54

Information on debuggin and simulation in general is on screensteps:
http://wpilib.screenstepslive.com/s/4485/m/23353

Videos on frcsim are here:
https://www.youtube.com/playlist?list=PL9HqYJ1IkIKW21ULeI4mUjaj0UIzRJhWf

I’m trying to install on MacOS 10.11.2. I see this:

[MBPlate2013:~/FIRST Robotics/FRC 2016/Eclipse WS] Tim% which gazebo
/usr/local/homebrew/bin/gazebo
[MBPlate2013:~/FIRST Robotics/FRC 2016/Eclipse WS] Tim% gazebo
dyld: Library not loaded: @executable_path/…/Components/libOgrePaging.1.7.4.dylib
Referenced from: /usr/local/homebrew/opt/ogre/lib/libOgreTerrain.1.7.4.dylib
Reason: image not found
Trace/BPT trap

Yet the lib exists:

[MBPlate2013:~/FIRST Robotics/FRC 2016/Eclipse WS] Tim% ll /usr/local/homebrew/opt/ogre/lib/libOgrePaging.1.7.4.dylib
-r–r–r–+ 1 root wheel 227968 Jan 16 18:18 /usr/local/homebrew/opt/ogre/lib/libOgrePaging.1.7.4.dylib

but not under a Components directory. Did Ogre get built wrong?

TIA,
Tim

Tim,

I encountered the same error, and was able to work around it by creating a symlink from Components to lib in the brew directory. To be more specific, go to the brew directory (/usr/local/homebrew in your case), and type the following:

ln -s lib Components

Hope this will work for you.
Masami