Go to Post Your entire life is a choice - a choice to believe or denounce everything that is ever said to you. - Amanda Morrison [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 17-01-2015, 23:01
hyprvx's Avatar
hyprvx hyprvx is offline
Registered User
AKA: Devon
FRC #2151 (Monty Pythons)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Forest Park
Posts: 22
hyprvx is an unknown quantity at this point
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.
__________________
My userbars were eaten by Cthulhu.


FRC team 2151, the Monty Pythons!
Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2015, 23:08
Asymons Asymons is offline
Registered User
FRC #4716 (Purple Raiders)
Team Role: Driver
 
Join Date: Apr 2013
Rookie Year: 2013
Location: Ontario
Posts: 33
Asymons is an unknown quantity at this point
Re: Anybody had any luck with FRCSim?

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?
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2015, 23:11
hyprvx's Avatar
hyprvx hyprvx is offline
Registered User
AKA: Devon
FRC #2151 (Monty Pythons)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Forest Park
Posts: 22
hyprvx is an unknown quantity at this point
Re: Anybody had any luck with FRCSim?

I'm dual booting alongside Windows 7.
__________________
My userbars were eaten by Cthulhu.


FRC team 2151, the Monty Pythons!
Reply With Quote
  #4   Spotlight this post!  
Unread 17-01-2015, 23:22
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,570
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Anybody had any luck with FRCSim?

It works for me in ubuntu 14.04, the supported version. I would expect that there would be package dependency issues with unsupported versions.
Reply With Quote
  #5   Spotlight this post!  
Unread 17-01-2015, 23:26
Asymons Asymons is offline
Registered User
FRC #4716 (Purple Raiders)
Team Role: Driver
 
Join Date: Apr 2013
Rookie Year: 2013
Location: Ontario
Posts: 33
Asymons is an unknown quantity at this point
Re: Anybody had any luck with FRCSim?

To clarify, did you install it with the guidance of this: http://wpilib.screenstepslive.com/s/...ith-a-terminal

Code:
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.
Quote:
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 17-01-2015, 23:34
hyprvx's Avatar
hyprvx hyprvx is offline
Registered User
AKA: Devon
FRC #2151 (Monty Pythons)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Forest Park
Posts: 22
hyprvx is an unknown quantity at this point
Re: Anybody had any luck with FRCSim?

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
__________________
My userbars were eaten by Cthulhu.


FRC team 2151, the Monty Pythons!
Reply With Quote
  #7   Spotlight this post!  
Unread 18-01-2015, 09:58
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,061
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Anybody had any luck with FRCSim?

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.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote
  #8   Spotlight this post!  
Unread 18-01-2015, 13:09
sergioCorral842's Avatar
sergioCorral842 sergioCorral842 is offline
College Student
FRC #0842 (Falcon Robotics)
Team Role: Alumni
 
Join Date: Aug 2011
Rookie Year: 2012
Location: Phoenix, Arizona
Posts: 161
sergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to behold
Re: Anybody had any luck with FRCSim?

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:

Code:
--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.
__________________
Team 842 Falcon Robotics: 2011-2015 (President, Head Programmer, Drive Team)
Arizona Regional Winners: 2012-2014 (Thanks 610, 1212, 1726, 3944, 2486, 2403)
Curie Division Semi-Finalists: 2014 (Thanks 1311, 2013, 2928)
Las Vegas Semi-Finalists: 2015 (Thanks 3495, 4415)
Curie Division Quarter-Finalists: 2015 (Thanks 107, 228, 649)

2015 - 2016: Programming, Drive Team, and Strategy Mentor for Team 3187, The Titans

Studying Computer Science- Software Engineering at ASU (Class of 2019)
Reply With Quote
  #9   Spotlight this post!  
Unread 18-01-2015, 14:39
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,570
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Anybody had any luck with FRCSim?

Quote:
Originally Posted by sergioCorral842 View Post
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:

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.
Reply With Quote
  #10   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
  #11   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
  #12   Spotlight this post!  
Unread 22-07-2015, 19:13
while1fork while1fork is offline
Registered User
FRC #1389
 
Join Date: Jul 2015
Location: Bethesda MD
Posts: 6
while1fork is an unknown quantity at this point
Re: Anybody had any luck with FRCSim?

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/rep...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)
Reply With Quote
  #13   Spotlight this post!  
Unread 04-10-2015, 18:34
tcjinaz tcjinaz is online now
Tim
FRC #3853
Team Role: Mentor
 
Join Date: May 2011
Rookie Year: 2011
Location: Arizona
Posts: 206
tcjinaz has a spectacular aura abouttcjinaz has a spectacular aura about
Re: Anybody had any luck with FRCSim?

Quote:
Originally Posted by virtuald View Post
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 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
__________________
Software Mentor
3853 Pridetronics[

Reply With Quote
  #14   Spotlight this post!  
Unread 10-10-2015, 14:19
prensing prensing is online now
Registered User
AKA: Paul Rensing
FRC #2877 (LigerBots)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2014
Location: United States
Posts: 14
prensing is an unknown quantity at this point
Graphics card is important

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.
Reply With Quote
  #15   Spotlight this post!  
Unread 10-10-2015, 14:30
prensing prensing is online now
Registered User
AKA: Paul Rensing
FRC #2877 (LigerBots)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2014
Location: United States
Posts: 14
prensing is an unknown quantity at this point
Recent install of FRCSIM

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
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