Go to Post I think all we need now is Jenny Craig for Robots. - ErichKeane [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 01-25-2013, 01:59 PM
IisMathwizard's Avatar
IisMathwizard IisMathwizard is offline
Programming Mentor
AKA: Mathwizard
FRC #1248 (Titanium Allies)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Berea-Midpark High school
Posts: 60
IisMathwizard is an unknown quantity at this point
jRIO

I was wondering... are there any teams using Java that are currently afflicted with the trouble of having to wait for the manufacturing or electrical team to finish with putting on appropriate motors, relays, camera, mounts, etc? Well I have your solution! Hopefully (a common phrase in release stage) I will post up a library to use that allow one to simulate the cRIO and all common hardware including live camera and still image support for public use. I decided that since I am in this waiting stage I might as well show coopertition and gracious professionalism and help out my fellow teammates... I'll put up screenshots soon of jRIO running a version of our current robot code.. what you will see, camera support isn't finished but joysticks, relays, all speedcontrollers, and robot framework is finished. Autonomous, teleop, and disabled modes supported and the cRIO updates at the documented rate of 50hz... anyway... Look for it tonight! (like 2 EST tomorrow lol)
__________________

jRIO 2013 Project

Last edited by IisMathwizard : 01-25-2013 at 02:47 PM.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-25-2013, 02:24 PM
IisMathwizard's Avatar
IisMathwizard IisMathwizard is offline
Programming Mentor
AKA: Mathwizard
FRC #1248 (Titanium Allies)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Berea-Midpark High school
Posts: 60
IisMathwizard is an unknown quantity at this point
Re: jRIO

Here's a poorly captured screenshot... thanks linux...
__________________

jRIO 2013 Project
Reply With Quote
  #3   Spotlight this post!  
Unread 01-25-2013, 05:03 PM
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: jRIO

If this ends up being less buggy than other solutions (not to mention better supported), this will make me very happy.
__________________
All opinions are my own.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-25-2013, 05:19 PM
jesusrambo jesusrambo is offline
Self-Proclaimed Programmer Messiah
AKA: JD Russo
FRC #2035 (Robo Rockin' Bots)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Carmel, CA
Posts: 114
jesusrambo is an unknown quantity at this point
Re: jRIO

I'd love this too, if you get it up and it works! Looking forward to the release
Reply With Quote
  #5   Spotlight this post!  
Unread 01-25-2013, 05:57 PM
wjbrauck wjbrauck is offline
Team Mentor
FRC #0768 (Techno Warriors)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Baltimore, Md
Posts: 4
wjbrauck is an unknown quantity at this point
Re: jRIO

We're plagued by this every year. I look forward to trying the simulator.
Reply With Quote
  #6   Spotlight this post!  
Unread 01-25-2013, 07:02 PM
IisMathwizard's Avatar
IisMathwizard IisMathwizard is offline
Programming Mentor
AKA: Mathwizard
FRC #1248 (Titanium Allies)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Berea-Midpark High school
Posts: 60
IisMathwizard is an unknown quantity at this point
Re: jRIO

I shall be making documentation on how to implement the library for testing code. Remember that this is just to test the expected hardware output, physical resistance due to slope, design, gearboxes, etc. are not taken into account.
__________________

jRIO 2013 Project
Reply With Quote
  #7   Spotlight this post!  
Unread 01-25-2013, 07:15 PM
IisMathwizard's Avatar
IisMathwizard IisMathwizard is offline
Programming Mentor
AKA: Mathwizard
FRC #1248 (Titanium Allies)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Berea-Midpark High school
Posts: 60
IisMathwizard is an unknown quantity at this point
Re: jRIO

I would also like to note that most of the API of each of the currently included classes are included... It is quite an endeavor and I have been working on it in my spare time for about a week now attempting to preserve the original code design of the FRC java API. If a team needs a certain method to be included or class or something like that, please shoot a message here and I will be more than happy to include it into the project for release. I do plan on keeping this alive for future years
__________________

jRIO 2013 Project

Last edited by IisMathwizard : 01-25-2013 at 07:33 PM.
Reply With Quote
  #8   Spotlight this post!  
Unread 01-25-2013, 11:16 PM
IisMathwizard's Avatar
IisMathwizard IisMathwizard is offline
Programming Mentor
AKA: Mathwizard
FRC #1248 (Titanium Allies)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Berea-Midpark High school
Posts: 60
IisMathwizard is an unknown quantity at this point
Re: jRIO

Well.... I'm tired xD so tomorrow, at our meeting I'll work on it and hopefully have the simulator minus camera support by the end of the day. Sorry! (Deadlines... am I right?)
__________________

jRIO 2013 Project
Reply With Quote
  #9   Spotlight this post!  
Unread 01-25-2013, 11:40 PM
BigJ BigJ is offline
Registered User
AKA: Josh P.
FRC #1675 (Ultimate Protection Squad)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Milwaukee, WI
Posts: 943
BigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond repute
Re: jRIO

Quote:
Originally Posted by IisMathwizard View Post
I would also like to note that most of the API of each of the currently included classes are included... It is quite an endeavor and I have been working on it in my spare time for about a week now attempting to preserve the original code design of the FRC java API. If a team needs a certain method to be included or class or something like that, please shoot a message here and I will be more than happy to include it into the project for release. I do plan on keeping this alive for future years
I haven't seen it but this is a keen application for open source communities like Github. Teams/people could make their own extensions to the codebase and submit them as pull requests to you for integration.
Reply With Quote
  #10   Spotlight this post!  
Unread 01-26-2013, 02:45 PM
IisMathwizard's Avatar
IisMathwizard IisMathwizard is offline
Programming Mentor
AKA: Mathwizard
FRC #1248 (Titanium Allies)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Berea-Midpark High school
Posts: 60
IisMathwizard is an unknown quantity at this point
Re: jRIO

Okay! I have the solenoid class left to make and then some minor documentation for people's use then I will put the library up for use!... this does not include camera support and unfortunately I did NOT include command based robots in here... yet.. only iterative and simple robot types are supported at the moment.
__________________

jRIO 2013 Project
Reply With Quote
  #11   Spotlight this post!  
Unread 01-26-2013, 04:01 PM
IisMathwizard's Avatar
IisMathwizard IisMathwizard is offline
Programming Mentor
AKA: Mathwizard
FRC #1248 (Titanium Allies)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Berea-Midpark High school
Posts: 60
IisMathwizard is an unknown quantity at this point
Re: jRIO

Alrightie! I have finished with the library! (excluding camera and command based robot support).. Now all i have to do is right some preliminary documentation..
__________________

jRIO 2013 Project
Reply With Quote
  #12   Spotlight this post!  
Unread 01-26-2013, 11:14 PM
IisMathwizard's Avatar
IisMathwizard IisMathwizard is offline
Programming Mentor
AKA: Mathwizard
FRC #1248 (Titanium Allies)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Berea-Midpark High school
Posts: 60
IisMathwizard is an unknown quantity at this point
Re: jRIO

Within the next 2 hours I will finally post the Library jar file and documentation on how to use the library, right here! I had work so I didn't have a lot of time to write this documentation but it should suffice.. If you have any questions I will be up working on the next update for the library, Realistic pressure sensing and CAMERA SUPPORT W00T
__________________

jRIO 2013 Project
Reply With Quote
  #13   Spotlight this post!  
Unread 01-27-2013, 02:26 AM
IisMathwizard's Avatar
IisMathwizard IisMathwizard is offline
Programming Mentor
AKA: Mathwizard
FRC #1248 (Titanium Allies)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Berea-Midpark High school
Posts: 60
IisMathwizard is an unknown quantity at this point
Re: jRIO

Here.... we.... go!

https://docs.google.com/file/d/0B3mO...owSU5LNU0/edit

just download this zip file and inside is the jRIO.jar file and the documentation in .html and .odt file formats...

(i run linux so i included the odt just in case anyone else would appreciate it)
__________________

jRIO 2013 Project
Reply With Quote
  #14   Spotlight this post!  
Unread 01-27-2013, 09:52 PM
IisMathwizard's Avatar
IisMathwizard IisMathwizard is offline
Programming Mentor
AKA: Mathwizard
FRC #1248 (Titanium Allies)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Berea-Midpark High school
Posts: 60
IisMathwizard is an unknown quantity at this point
Re: jRIO

I wish that teams that try this out please give some feedback as to some suggestions or changes they would like to see...

What changes are already on their way?
  • Command based robot support
  • Still image camera support
  • Live feed camera support
  • Compressor Pressure Emulation

Please inform me of some other things you want!
__________________

jRIO 2013 Project
Reply With Quote
  #15   Spotlight this post!  
Unread 01-27-2013, 10:18 PM
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: jRIO

Is there any reason this is necessary?
Quote:
Go through all newly copied source files and replace the import statements edu.wpi.first.wpilibj with org.jRIO . For example: edu.wpi.first.wpilibj.Relay => org.jRIO.Relay
It would be 100X easier without having to do this every time I port my code. I can't think of a good reason not to just use the same package names.
__________________
All opinions are my own.
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 08:16 AM.

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