![]() |
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.
|
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?
|
Re: Anybody had any luck with FRCSim?
I'm dual booting alongside Windows 7.
|
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.
|
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 INSTALLERFor 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:
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. |
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 |
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. |
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 |
Re: Anybody had any luck with FRCSim?
Quote:
|
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.
|
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. |
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) |
Re: Anybody had any luck with FRCSim?
Quote:
TIA, Tim |
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. |
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 :( |
| All times are GMT -5. The time now is 01:50. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi