Go to Post Any adult can open a door. Some can give direction. A few can give leadership. These are the true mentors. This is where true success comes from. - sanddrag [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 31-07-2016, 03:39
addis687 addis687 is offline
Registered User
no team (Team)
Team Role: Webmaster
 
Join Date: Jan 2016
Rookie Year: 1998
Location: Bellflower
Posts: 11
addis687 is an unknown quantity at this point
FRCSim Install - Other Linux Distro

Has anyone here gotten FRCSim/Gazebo to work with a linux distro other than ubuntu? If so, how? (Bonus if using Linux Mint)
Reply With Quote
  #2   Spotlight this post!  
Unread 20-08-2016, 19:58
Blasting's Avatar
Blasting Blasting is offline
"That Guy"
FRC #1225 (Gorillas)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2015
Location: Hendersonville
Posts: 5
Blasting is an unknown quantity at this point
Re: FRCSim Install - Other Linux Distro

I've gotten FRCSim working on Mint before, Mint is still close enough to Ubuntu that the installation is no different with the exception of hard-coding the release version to the appropriate Ubuntu release, ie: any 17.x Mint release to "trusty".

As non-Ubuntu based distros go, installation only differs for g++ and Gazebo installation, and sometimes Eclipse.
Let me know if you would like me to elaborate some more.
Reply With Quote
  #3   Spotlight this post!  
Unread 20-08-2016, 20:01
messer5740's Avatar
messer5740 messer5740 is offline
Registered User
FRC #5740 (Trojanators)
Team Role: Driver
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Pittsburgh
Posts: 105
messer5740 is an unknown quantity at this point
Re: FRCSim Install - Other Linux Distro

Quote:
Originally Posted by addis687 View Post
Has anyone here gotten FRCSim/Gazebo to work with a linux distro other than ubuntu? If so, how? (Bonus if using Linux Mint)
Haven't peraonly used the software you are talking about but I do know that Ubuntu can do amazing things with software. I've been experimenting with Ubuntu and I know many local robotics companies use it to code their robots, so I guess you could give Ubuntu a try if all else fails.
__________________
A good driver is always better than a good robot.

2015: Winner of the Rookie Inspiration Award
2016: 8th seed alliance captain at Greater Pittsburgh Regional and 6th seed alliance captain at the Buckeye Regional
Thanks to all our alliance members!

Last edited by messer5740 : 20-08-2016 at 20:04.
Reply With Quote
  #4   Spotlight this post!  
Unread 29-08-2016, 21:35
solomondg solomondg is offline
Registered User
FRC #2898 (Flying Hedgehogs)
Team Role: Programmer
 
Join Date: Aug 2016
Rookie Year: 2016
Location: Portland, Oregon
Posts: 8
solomondg is an unknown quantity at this point
Re: FRCSim Install - Other Linux Distro

Gazebo's in the Arch AUR, and works on my (Arch-based) system
Reply With Quote
  #5   Spotlight this post!  
Unread 18-12-2016, 18:51
mrosen mrosen is offline
Registered User
FRC #4915
 
Join Date: Dec 2016
Location: Bainbridge Island, WA
Posts: 3
mrosen is an unknown quantity at this point
Re: FRCSim Install - Other Linux Distro

I got it working on Linux Mint 18. Not for the faint of heart, not ready for prime time. Good start though ... maybe in 2017 ? Here's my notes. HTH.


My Environment
I’m Linux Mint 18.
Must have Java8, both the JDK itself and a version of Eclipse that support this. I’m using Neon 4.6.1. I think a lot of my problems might have been avoided had I started with this.
FRCSim on Windows?
Should be feasible but isn’t. The simulator itself is the Gazebo robot simulation environment. To communicate with Gazebo, WPI provides a few plugins. In theory you should just install Gazebo, rebuild the plugins for that version of Gazebo and off you go. In practice, there is no Windows distribution for Gazebo and efforts to build from source failed. The reference for “Install Gazebo on Windows” says “This documentation describes how to set up a workspace for trying to compile Gazebo on Windows. It does not actually work yet.”
FRCSim on Linux
The references above are an incomplete description of how to get FRCSim working on an outdated version of Gazebo (v6) that is no longer available. If you’re running the version of Ubuntu that they have, give it a shot and maybe you’ll get lucky. Otherwise, use it as a guideline. Here’s what I did:
Install Gazebo using ‘apt’
Install the FRC C++ toolchain so that you can rebuild the plugins: https://launchpad.net/~wpilib/+archi...ntu/toolchain/ . this turns out to be not as easy as you would hope (ref: https://www.chiefdelphi.com/forums/s....php?t=141395).
Rebuild the plugins for the version of Gazebo you installed (v7 at this writing) and copy them into the simulation directory
Building WPILibJ / WPILibJSim
When you install the WPILib plugins for Eclipse, you get WPILibJ.jar which is the runtime that works on the Roborio HW. To run in the simulator you need the WPILibJSimulator.jar file which you need to build from source b/c (a) we need to upgrade the references to Gazebo 6 to Gazebo 7 and (b) there are classes missing (they’re in WPILib.jar but not WPILibJSimulator.jar) and we need to add them. Here’s what to do:

Install Gradle. This is what they use to build the library: sudo apt install gradle
Clone the repository (git://github.com/wpilibsuite/allwpilib.git)
cd into the directory it just created “allwpilib” and build it using gradle with the switch to build the simulation library also:
/gradlew build -PmakeSim
Verify the following:
/home/msr/allwpilib/simulation (note the install script and the install_resources dir)
/home/msr/allwpilib/build/install/simulation (plugins for your version of Gazebo)
/home/msr/allwpilib/wpilibj/build/libs (the simulation library itself)

So, now it’s built but we need to install it. Here’s what I do: Get the original zip archive (for Gazebo6) and unzip it into “wpilib/simulation” (which you’ll need to create -- it’s part of their install script). This includes some scripts like “frcsim” and “sim_ds” which you’ll need. But you’ll need to replace the binaries that reference the old version of Gazebo, so copy /home/msr/allwpilib/build/install/simulation into your new simulation directory and overwrite any conflicts.

You’ll also need the models that go into Gazebo. These are referenced from the manual instructions (ref above) and for convenience, here. Put them in the wpilib/simulations directory
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 14:02.

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