Go to Post If all else fails, just ask the judges to turn off the gravity! :D - [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-05-2015, 19:24
Kristofer Rye's Avatar
Kristofer Rye Kristofer Rye is offline
Registered User
FRC #2503 (Brainerd Warrior Robotics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2008
Location: Baxter, Minnesota
Posts: 2
Kristofer Rye is an unknown quantity at this point
Using Vagrant/VirtualBox to virtualize the RoboRIO?

Just wondering if anyone has used Vagrant or VirtualBox to virtualize the RoboRIO. I ask this because my team only has one, and we'd like to be able to program it (and test it) without being connected to the real thing. Does anyone have any pointers that they can give? We'll probably also be installing the Java VM, which, if we have a FIRST system image properly installed and a correct network connection, should not be hard. If not, this'd make a good summer project

We could always build a test suite on top of our robot program, but that's just not as groovy as virtualization.
  #2   Spotlight this post!  
Unread 19-05-2015, 01:36
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,058
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: Using Vagrant/VirtualBox to virtualize the RoboRIO?

Quote:
Originally Posted by Kristofer Rye View Post
Just wondering if anyone has used Vagrant or VirtualBox to virtualize the RoboRIO. I ask this because my team only has one, and we'd like to be able to program it (and test it) without being connected to the real thing. Does anyone have any pointers that they can give? We'll probably also be installing the Java VM, which, if we have a FIRST system image properly installed and a correct network connection, should not be hard. If not, this'd make a good summer project

We could always build a test suite on top of our robot program, but that's just not as groovy as virtualization.
I think virtualbox only does x86/64 virtualization, and doesn't support ARM. QEMU should support ARM, but for it to be really useful you would need some sort of hardware interface that WPILib/etc could talk to. In that case, it'll be easier (and lighter) to build a simulator instead.

Speaking of which, you might check out frcsim, its robot simulation for WPILib built on gazebo, a 3d robot simulation framework. I've gotten it working in Linux/OSX, but they haven't released modeling tools to create your own 3d environment yet. There's also little/no documentation. I expect they'll be fixing it up more this summer. You can find some stuff about it in the WPILib repository (mirrored here), and there's a sample project or two that come with the Eclipse plugins.

If you're interested in other types of simulation, if you want to use python we have a Tk simulation interface and a new web based simulation interface that we're working on too, that users will be able to easily create custom animation widgets for. I'm hoping someone will build a Java/C++ backend for it too, as the web piece isn't python specific. Being able to run your code before you upload it to the robot is very nice and saves us lots of time.
__________________
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
  #3   Spotlight this post!  
Unread 19-05-2015, 01:48
connor.worley's Avatar
connor.worley connor.worley is offline
Registered User
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Berkeley/San Diego
Posts: 601
connor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond repute
Re: Using Vagrant/VirtualBox to virtualize the RoboRIO?

The test suite is definitely the way to go - why virtualize when your code will run on the JVM on any platform?
__________________
Team 973 (2016-???)
Team 5499 (2015-2016)
Team 254 (2014-2015)

Team 1538 (2011-2014)
2014 Driver (25W 17L 1T)
日本語でOK
  #4   Spotlight this post!  
Unread 19-05-2015, 07:11
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Using Vagrant/VirtualBox to virtualize the RoboRIO?

Both approaches have merit. The NI and WPI simulators that run the user code on a regular laptop or desktop against libraries that simulate the effects that would take place on the robot. This is much less intensive than running the entire linux OS and emulating an FPGA. And they give you physics engines to close the loop and let your code run with more fidelity.

Greg McKaskle
Closed Thread


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 01:40.

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